@vue/compiler-sfc 3.5.16 → 3.6.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as _babel_types from '@babel/types';
2
2
  import { Statement, Expression, TSType, Node, Program, CallExpression, ObjectPattern, TSModuleDeclaration, TSPropertySignature, TSMethodSignature, TSCallSignatureDeclaration, TSFunctionType } from '@babel/types';
3
- import { RootNode, CompilerOptions, CodegenResult, ParserOptions, RawSourceMap, CompilerError, SourceLocation, BindingMetadata as BindingMetadata$1 } from '@vue/compiler-core';
3
+ import { RootNode, CompilerOptions, BaseCodegenResult, ParserOptions, RawSourceMap, CompilerError, SourceLocation, BindingMetadata as BindingMetadata$1 } from '@vue/compiler-core';
4
4
  export { BindingMetadata, CompilerError, CompilerOptions, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers } from '@vue/compiler-core';
5
5
  import { ParserPlugin } from '@babel/parser';
6
6
  export { parse as babelParse } from '@babel/parser';
@@ -26,17 +26,18 @@ export interface AssetURLOptions {
26
26
  }
27
27
 
28
28
  export interface TemplateCompiler {
29
- compile(source: string | RootNode, options: CompilerOptions): CodegenResult;
29
+ compile(source: string | RootNode, options: CompilerOptions): BaseCodegenResult;
30
30
  parse(template: string, options: ParserOptions): RootNode;
31
31
  }
32
32
  export interface SFCTemplateCompileResults {
33
33
  code: string;
34
- ast?: RootNode;
34
+ ast?: unknown;
35
35
  preamble?: string;
36
36
  source: string;
37
37
  tips: string[];
38
38
  errors: (string | CompilerError)[];
39
39
  map?: RawSourceMap;
40
+ helpers?: Set<string | symbol>;
40
41
  }
41
42
  export interface SFCTemplateCompileOptions {
42
43
  source: string;
@@ -46,6 +47,7 @@ export interface SFCTemplateCompileOptions {
46
47
  scoped?: boolean;
47
48
  slotted?: boolean;
48
49
  isProd?: boolean;
50
+ vapor?: boolean;
49
51
  ssr?: boolean;
50
52
  ssrCssVars?: string[];
51
53
  inMap?: RawSourceMap;
@@ -136,6 +138,10 @@ export interface SFCScriptCompileOptions {
136
138
  * Transform Vue SFCs into custom elements.
137
139
  */
138
140
  customElement?: boolean | ((filename: string) => boolean);
141
+ /**
142
+ * Force to use of Vapor mode.
143
+ */
144
+ vapor?: boolean;
139
145
  }
140
146
  interface ImportBinding {
141
147
  isType: boolean;
@@ -208,6 +214,7 @@ export interface SFCDescriptor {
208
214
  * this is used as a compiler optimization hint.
209
215
  */
210
216
  slotted: boolean;
217
+ vapor?: boolean;
211
218
  /**
212
219
  * compare with an existing descriptor to determine whether HMR should perform
213
220
  * a reload vs. re-render.