@vue/compiler-sfc 3.3.4 → 3.3.5
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.
- package/dist/compiler-sfc.cjs.js +1870 -2070
- package/dist/compiler-sfc.d.ts +8 -7
- package/dist/compiler-sfc.esm-browser.js +3917 -4508
- package/package.json +17 -18
package/dist/compiler-sfc.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as lru_cache_min from 'lru-cache/min';
|
|
1
2
|
import * as _babel_types from '@babel/types';
|
|
2
|
-
import { Statement, Expression, TSType, Program, Node, ObjectPattern, TSModuleDeclaration, TSPropertySignature, TSMethodSignature, TSCallSignatureDeclaration, TSFunctionType } from '@babel/types';
|
|
3
|
+
import { Statement, Expression, TSType, Program, CallExpression, Node, ObjectPattern, TSModuleDeclaration, TSPropertySignature, TSMethodSignature, TSCallSignatureDeclaration, TSFunctionType } from '@babel/types';
|
|
3
4
|
import { CompilerOptions, CodegenResult, ParserOptions, RootNode, CompilerError, SourceLocation, ElementNode, BindingMetadata as BindingMetadata$1 } from '@vue/compiler-core';
|
|
4
5
|
export { BindingMetadata, CompilerError, CompilerOptions, extractIdentifiers, generateCodeFrame, isInDestructureAssignment, isStaticProperty, walkIdentifiers } from '@vue/compiler-core';
|
|
5
6
|
import { RawSourceMap } from 'source-map-js';
|
|
@@ -8,6 +9,7 @@ export { parse as babelParse } from '@babel/parser';
|
|
|
8
9
|
import { Result, LazyResult } from 'postcss';
|
|
9
10
|
import MagicString from 'magic-string';
|
|
10
11
|
export { default as MagicString } from 'magic-string';
|
|
12
|
+
import TS from 'typescript';
|
|
11
13
|
export { shouldTransform as shouldTransformRef, transform as transformRef, transformAST as transformRefAST } from '@vue/reactivity-transform';
|
|
12
14
|
|
|
13
15
|
export interface AssetURLTagConfig {
|
|
@@ -228,9 +230,7 @@ export interface SFCParseResult {
|
|
|
228
230
|
descriptor: SFCDescriptor;
|
|
229
231
|
errors: (CompilerError | SyntaxError)[];
|
|
230
232
|
}
|
|
231
|
-
export declare const parseCache: Map<string, SFCParseResult>
|
|
232
|
-
max?: number | undefined;
|
|
233
|
-
};
|
|
233
|
+
export declare const parseCache: Map<string, SFCParseResult> | lru_cache_min.LRUCache<string, SFCParseResult, unknown>;
|
|
234
234
|
export declare function parse(source: string, { sourceMap, filename, sourceRoot, pad, ignoreEmpty, compiler }?: SFCParseOptions): SFCParseResult;
|
|
235
235
|
|
|
236
236
|
type PreprocessLang = 'less' | 'sass' | 'scss' | 'styl' | 'stylus';
|
|
@@ -375,7 +375,8 @@ export declare class ScriptCompileContext {
|
|
|
375
375
|
hasDefineOptionsCall: boolean;
|
|
376
376
|
hasDefineSlotsCall: boolean;
|
|
377
377
|
hasDefineModelCall: boolean;
|
|
378
|
-
|
|
378
|
+
propsCall: CallExpression | undefined;
|
|
379
|
+
propsDecl: Node | undefined;
|
|
379
380
|
propsRuntimeDecl: Node | undefined;
|
|
380
381
|
propsTypeDecl: Node | undefined;
|
|
381
382
|
propsDestructureDecl: ObjectPattern | undefined;
|
|
@@ -384,7 +385,7 @@ export declare class ScriptCompileContext {
|
|
|
384
385
|
propsRuntimeDefaults: Node | undefined;
|
|
385
386
|
emitsRuntimeDecl: Node | undefined;
|
|
386
387
|
emitsTypeDecl: Node | undefined;
|
|
387
|
-
|
|
388
|
+
emitDecl: Node | undefined;
|
|
388
389
|
modelDecls: Record<string, ModelDecl>;
|
|
389
390
|
optionsRuntimeDecl: Node | undefined;
|
|
390
391
|
bindingMetadata: BindingMetadata;
|
|
@@ -460,7 +461,7 @@ export declare function resolveTypeElements(ctx: TypeResolveContext, node: Node
|
|
|
460
461
|
/**
|
|
461
462
|
* @private
|
|
462
463
|
*/
|
|
463
|
-
export declare function registerTS(
|
|
464
|
+
export declare function registerTS(_loadTS: () => typeof TS): void;
|
|
464
465
|
/**
|
|
465
466
|
* @private
|
|
466
467
|
*/
|