8000
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.
1 parent 98d95ee commit 893d208Copy full SHA for 893d208
src/index.ts
@@ -47,6 +47,12 @@ export interface VueLoaderOptions {
47
appendExtension?: boolean
48
49
isServerBuild?: boolean
50
+
51
+ fs?: {
52
+ fileExists(file: string): boolean
53
+ readFile(file: string): string | undefined
54
+ realpath?(file: string): string
55
+ }
56
}
57
58
let errorEmitted = false
src/resolveScript.ts
@@ -66,6 +66,7 @@ export function resolveScript(
66
compilerOptions: options.compilerOptions,
67
transformAssetUrls: options.transformAssetUrls || true,
68
},
69
+ fs: options.fs
70
})
71
} catch (e) {
72
loaderContext.emitError(e)
0 commit comments