Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jiti
moduleCache
1 parent 9153dd3 commit eb4046fCopy full SHA for eb4046f
packages/slidev/node/utils.ts
@@ -10,7 +10,10 @@ type Token = ReturnType<MarkdownIt['parseInline']>[number]
10
type Jiti = ReturnType<typeof createJiti>
11
let jiti: Jiti | undefined
12
export function loadModule<T = unknown>(absolutePath: string): Promise<T> {
13
- jiti ??= createJiti(fileURLToPath(import.meta.url))
+ jiti ??= createJiti(fileURLToPath(import.meta.url), {
14
+ // Allows changes to take effect
15
+ moduleCache: false,
16
+ })
17
return jiti.import(absolutePath) as Promise<T>
18
}
19
0 commit comments