index.d.ts 808 B

123456789101112131415161718
  1. import webpack = require('webpack');
  2. import type { TemplateCompiler, CompilerOptions, SFCTemplateCompileOptions, SFCScriptCompileOptions } from '@vue/compiler-sfc';
  3. import VueLoaderPlugin from './plugin';
  4. export { VueLoaderPlugin };
  5. export interface VueLoaderOptions {
  6. babelParserPlugins?: SFCScriptCompileOptions['babelParserPlugins'];
  7. transformAssetUrls?: SFCTemplateCompileOptions['transformAssetUrls'];
  8. compiler?: TemplateCompiler | string;
  9. compilerOptions?: CompilerOptions;
  10. refSugar?: boolean;
  11. customElement?: boolean | RegExp;
  12. hotReload?: boolean;
  13. exposeFilename?: boolean;
  14. appendExtension?: boolean;
  15. enableTsInTemplate?: boolean;
  16. isServerBuild?: boolean;
  17. }
  18. export default function loader(this: webpack.loader.LoaderContext, source: string): string | void;