index.d.ts 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. import type { LoaderContext } from '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. /**
  11. * TODO remove in 3.4
  12. * @deprecated
  13. */
  14. reactivityTransform?: boolean;
  15. /**
  16. * @experimental
  17. */
  18. propsDestructure?: boolean;
  19. /**
  20. * @experimental
  21. */
  22. defineModel?: boolean;
  23. customElement?: boolean | RegExp;
  24. hotReload?: boolean;
  25. exposeFilename?: boolean;
  26. appendExtension?: boolean;
  27. enableTsInTemplate?: boolean;
  28. experimentalInlineMatchResource?: boolean;
  29. isServerBuild?: boolean;
  30. }
  31. export default function loader(this: LoaderContext<VueLoaderOptions>, source: string): string | void;