You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
950 B

3 months ago
  1. import { VueTemplateCompiler, VueTemplateCompilerOptions, ErrorWithRange } from './types';
  2. import { AssetURLOptions, TransformAssetUrlsOptions } from './templateCompilerModules/assetUrl';
  3. export interface TemplateCompileOptions {
  4. source: string;
  5. filename: string;
  6. compiler: VueTemplateCompiler;
  7. compilerOptions?: VueTemplateCompilerOptions;
  8. transformAssetUrls?: AssetURLOptions | boolean;
  9. transformAssetUrlsOptions?: TransformAssetUrlsOptions;
  10. preprocessLang?: string;
  11. preprocessOptions?: any;
  12. transpileOptions?: any;
  13. isProduction?: boolean;
  14. isFunctional?: boolean;
  15. optimizeSSR?: boolean;
  16. prettify?: boolean;
  17. }
  18. export interface TemplateCompileResult {
  19. ast: Object | undefined;
  20. code: string;
  21. source: string;
  22. tips: (string | ErrorWithRange)[];
  23. errors: (string | ErrorWithRange)[];
  24. }
  25. export declare function compileTemplate(options: TemplateCompileOptions): TemplateCompileResult;