This commit is contained in:
@@ -25,20 +25,26 @@ type GameMap = Record<
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
||||||
const globEager = (pattern: string) =>
|
|
||||||
(import.meta.glob(pattern, { eager: true, import: 'default' } as any) as unknown) as Record<
|
|
||||||
string,
|
|
||||||
string
|
|
||||||
>
|
|
||||||
|
|
||||||
const songFiles = {
|
const songFiles = {
|
||||||
...globEager('./Data/*/*/Songs/*.mp3'),
|
...(import.meta.glob('./Data/*/*/Songs/*.mp3', {
|
||||||
...globEager('./Data/*/*/songs/*.mp3')
|
eager: true,
|
||||||
|
import: 'default'
|
||||||
|
} as any) as unknown as Record<string, string>),
|
||||||
|
...(import.meta.glob('./Data/*/*/songs/*.mp3', {
|
||||||
|
eager: true,
|
||||||
|
import: 'default'
|
||||||
|
} as any) as unknown as Record<string, string>)
|
||||||
}
|
}
|
||||||
|
|
||||||
const answerFiles = {
|
const answerFiles = {
|
||||||
...globEager('./Data/*/*/Answers/*.mp3'),
|
...(import.meta.glob('./Data/*/*/Answers/*.mp3', {
|
||||||
...globEager('./Data/*/*/answers/*.mp3')
|
eager: true,
|
||||||
|
import: 'default'
|
||||||
|
} as any) as unknown as Record<string, string>),
|
||||||
|
...(import.meta.glob('./Data/*/*/answers/*.mp3', {
|
||||||
|
eager: true,
|
||||||
|
import: 'default'
|
||||||
|
} as any) as unknown as Record<string, string>)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getParts = (path: string) => {
|
const getParts = (path: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user