index.d.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { SFCScriptCompileOptions, SFCStyleCompileOptions, SFCTemplateCompileOptions } from '@vue/compiler-sfc';
  2. import type * as _compiler from '@vue/compiler-sfc';
  3. export interface Options {
  4. include?: string | RegExp | (string | RegExp)[];
  5. exclude?: string | RegExp | (string | RegExp)[];
  6. isProduction?: boolean;
  7. script?: Partial<Pick<SFCScriptCompileOptions, 'babelParserPlugins'>> & {
  8. /**
  9. * @deprecated defineModel is now a stable feature and always enabled if
  10. * using Vue 3.4 or above.
  11. */
  12. defineModel?: boolean;
  13. };
  14. template?: Partial<Pick<SFCTemplateCompileOptions, 'compiler' | 'compilerOptions' | 'preprocessOptions' | 'preprocessCustomRequire' | 'transformAssetUrls'>>;
  15. style?: Partial<Pick<SFCStyleCompileOptions, 'trim'>>;
  16. /**
  17. * Transform Vue SFCs into custom elements.
  18. * - `true`: all `*.vue` imports are converted into custom elements
  19. * - `string | RegExp`: matched files are converted into custom elements
  20. *
  21. * @default /\.ce\.vue$/
  22. */
  23. customElement?: boolean | string | RegExp | (string | RegExp)[];
  24. /**
  25. * Use custom compiler-sfc instance. Can be used to force a specific version.
  26. */
  27. compiler?: typeof _compiler;
  28. }
  29. export interface ResolvedOptions extends Options {
  30. compiler: typeof _compiler;
  31. root: string;
  32. sourceMap: boolean;
  33. cssDevSourcemap?: boolean;
  34. targetLanguage?: 'kotlin';
  35. className?: string;
  36. classNamePrefix?: string;
  37. }