diff --git a/src/index.ts b/src/index.ts index 890dc1cb..c52aaccb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,6 +31,7 @@ export { VueLoaderPlugin } export interface VueLoaderOptions { // https://babeljs.io/docs/en/next/babel-parser#plugins babelParserPlugins?: SFCScriptCompileOptions['babelParserPlugins'] + globalTypeFiles?: SFCScriptCompileOptions['globalTypeFiles'] transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls'] compiler?: TemplateCompiler | string compilerOptions?: CompilerOptions diff --git a/src/resolveScript.ts b/src/resolveScript.ts index 5215a246..f37bc504 100644 --- a/src/resolveScript.ts +++ b/src/resolveScript.ts @@ -75,6 +75,7 @@ export function resolveScript( }, transformAssetUrls: options.transformAssetUrls || true, }, + globalTypeFiles: options.globalTypeFiles, }) } catch (e) { loaderContext.emitError(e)