@vue/compiler-core 3.5.0-beta.1 → 3.5.0-beta.2
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,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.0-beta.
|
|
2
|
+
* @vue/compiler-core v3.5.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
var shared = require('@vue/shared');
|
|
11
|
-
var decode_js = require('entities/
|
|
11
|
+
var decode_js = require('entities/lib/decode.js');
|
|
12
12
|
var parser = require('@babel/parser');
|
|
13
13
|
var estreeWalker = require('estree-walker');
|
|
14
14
|
var sourceMapJs = require('source-map-js');
|
|
@@ -1862,8 +1862,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
|
1862
1862
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
1863
1863
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
1864
1864
|
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
|
|
1865
|
-
const
|
|
1866
|
-
|
|
1865
|
+
const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
1866
|
+
const isMemberExpressionBrowser = (exp) => {
|
|
1867
|
+
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1867
1868
|
let state = 0 /* inMemberExp */;
|
|
1868
1869
|
let stateStack = [];
|
|
1869
1870
|
let currentOpenBracketCount = 0;
|
|
@@ -1924,10 +1925,10 @@ const isMemberExpressionBrowser = (path) => {
|
|
|
1924
1925
|
}
|
|
1925
1926
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
1926
1927
|
};
|
|
1927
|
-
const isMemberExpressionNode = (
|
|
1928
|
+
const isMemberExpressionNode = (exp, context) => {
|
|
1928
1929
|
try {
|
|
1929
|
-
let ret = parser.parseExpression(
|
|
1930
|
-
plugins: context.expressionPlugins
|
|
1930
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1931
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1931
1932
|
});
|
|
1932
1933
|
ret = unwrapTSNode(ret);
|
|
1933
1934
|
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier" && ret.name !== "undefined";
|
|
@@ -1936,6 +1937,26 @@ const isMemberExpressionNode = (path, context) => {
|
|
|
1936
1937
|
}
|
|
1937
1938
|
};
|
|
1938
1939
|
const isMemberExpression = isMemberExpressionNode;
|
|
1940
|
+
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
1941
|
+
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
1942
|
+
const isFnExpressionNode = (exp, context) => {
|
|
1943
|
+
try {
|
|
1944
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1945
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1946
|
+
});
|
|
1947
|
+
if (ret.type === "Program") {
|
|
1948
|
+
ret = ret.body[0];
|
|
1949
|
+
if (ret.type === "ExpressionStatement") {
|
|
1950
|
+
ret = ret.expression;
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
ret = unwrapTSNode(ret);
|
|
1954
|
+
return ret.type === "FunctionExpression" || ret.type === "ArrowFunctionExpression";
|
|
1955
|
+
} catch (e) {
|
|
1956
|
+
return false;
|
|
1957
|
+
}
|
|
1958
|
+
};
|
|
1959
|
+
const isFnExpression = isFnExpressionNode;
|
|
1939
1960
|
function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
|
|
1940
1961
|
return advancePositionWithMutation(
|
|
1941
1962
|
{
|
|
@@ -6037,7 +6058,6 @@ function processSlotOutlet(node, context) {
|
|
|
6037
6058
|
};
|
|
6038
6059
|
}
|
|
6039
6060
|
|
|
6040
|
-
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
6041
6061
|
const transformOn = (dir, node, context, augmentor) => {
|
|
6042
6062
|
const { loc, modifiers, arg } = dir;
|
|
6043
6063
|
if (!dir.exp && !modifiers.length) {
|
|
@@ -6081,8 +6101,8 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
6081
6101
|
}
|
|
6082
6102
|
let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
|
|
6083
6103
|
if (exp) {
|
|
6084
|
-
const isMemberExp = isMemberExpression(exp
|
|
6085
|
-
const isInlineStatement = !(isMemberExp ||
|
|
6104
|
+
const isMemberExp = isMemberExpression(exp, context);
|
|
6105
|
+
const isInlineStatement = !(isMemberExp || isFnExpression(exp, context));
|
|
6086
6106
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
6087
6107
|
if (context.prefixIdentifiers) {
|
|
6088
6108
|
isInlineStatement && context.addIdentifiers(`$event`);
|
|
@@ -6252,7 +6272,7 @@ const transformModel = (dir, node, context) => {
|
|
|
6252
6272
|
return createTransformProps();
|
|
6253
6273
|
}
|
|
6254
6274
|
const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
|
|
6255
|
-
if (!expString.trim() || !isMemberExpression(
|
|
6275
|
+
if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
|
|
6256
6276
|
context.onError(
|
|
6257
6277
|
createCompilerError(42, exp.loc)
|
|
6258
6278
|
);
|
|
@@ -6663,6 +6683,9 @@ exports.hasScopeRef = hasScopeRef;
|
|
|
6663
6683
|
exports.helperNameMap = helperNameMap;
|
|
6664
6684
|
exports.injectProp = injectProp;
|
|
6665
6685
|
exports.isCoreComponent = isCoreComponent;
|
|
6686
|
+
exports.isFnExpression = isFnExpression;
|
|
6687
|
+
exports.isFnExpressionBrowser = isFnExpressionBrowser;
|
|
6688
|
+
exports.isFnExpressionNode = isFnExpressionNode;
|
|
6666
6689
|
exports.isFunctionType = isFunctionType;
|
|
6667
6690
|
exports.isInDestructureAssignment = isInDestructureAssignment;
|
|
6668
6691
|
exports.isInNewExpression = isInNewExpression;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.0-beta.
|
|
2
|
+
* @vue/compiler-core v3.5.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
10
|
var shared = require('@vue/shared');
|
|
11
|
-
var decode_js = require('entities/
|
|
11
|
+
var decode_js = require('entities/lib/decode.js');
|
|
12
12
|
var parser = require('@babel/parser');
|
|
13
13
|
var estreeWalker = require('estree-walker');
|
|
14
14
|
var sourceMapJs = require('source-map-js');
|
|
@@ -1858,8 +1858,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
|
1858
1858
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
1859
1859
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
1860
1860
|
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1861
|
+
const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
1862
|
+
const isMemberExpressionBrowser = (exp) => {
|
|
1863
|
+
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1863
1864
|
let state = 0 /* inMemberExp */;
|
|
1864
1865
|
let stateStack = [];
|
|
1865
1866
|
let currentOpenBracketCount = 0;
|
|
@@ -1920,10 +1921,10 @@ const isMemberExpressionBrowser = (path) => {
|
|
|
1920
1921
|
}
|
|
1921
1922
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
1922
1923
|
};
|
|
1923
|
-
const isMemberExpressionNode = (
|
|
1924
|
+
const isMemberExpressionNode = (exp, context) => {
|
|
1924
1925
|
try {
|
|
1925
|
-
let ret = parser.parseExpression(
|
|
1926
|
-
plugins: context.expressionPlugins
|
|
1926
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1927
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1927
1928
|
});
|
|
1928
1929
|
ret = unwrapTSNode(ret);
|
|
1929
1930
|
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier" && ret.name !== "undefined";
|
|
@@ -1932,6 +1933,26 @@ const isMemberExpressionNode = (path, context) => {
|
|
|
1932
1933
|
}
|
|
1933
1934
|
};
|
|
1934
1935
|
const isMemberExpression = isMemberExpressionNode;
|
|
1936
|
+
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
1937
|
+
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
1938
|
+
const isFnExpressionNode = (exp, context) => {
|
|
1939
|
+
try {
|
|
1940
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1941
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1942
|
+
});
|
|
1943
|
+
if (ret.type === "Program") {
|
|
1944
|
+
ret = ret.body[0];
|
|
1945
|
+
if (ret.type === "ExpressionStatement") {
|
|
1946
|
+
ret = ret.expression;
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
ret = unwrapTSNode(ret);
|
|
1950
|
+
return ret.type === "FunctionExpression" || ret.type === "ArrowFunctionExpression";
|
|
1951
|
+
} catch (e) {
|
|
1952
|
+
return false;
|
|
1953
|
+
}
|
|
1954
|
+
};
|
|
1955
|
+
const isFnExpression = isFnExpressionNode;
|
|
1935
1956
|
function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
|
|
1936
1957
|
return advancePositionWithMutation(
|
|
1937
1958
|
{
|
|
@@ -5921,7 +5942,6 @@ function processSlotOutlet(node, context) {
|
|
|
5921
5942
|
};
|
|
5922
5943
|
}
|
|
5923
5944
|
|
|
5924
|
-
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
5925
5945
|
const transformOn = (dir, node, context, augmentor) => {
|
|
5926
5946
|
const { loc, modifiers, arg } = dir;
|
|
5927
5947
|
if (!dir.exp && !modifiers.length) {
|
|
@@ -5962,8 +5982,8 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
5962
5982
|
}
|
|
5963
5983
|
let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
|
|
5964
5984
|
if (exp) {
|
|
5965
|
-
const isMemberExp = isMemberExpression(exp
|
|
5966
|
-
const isInlineStatement = !(isMemberExp ||
|
|
5985
|
+
const isMemberExp = isMemberExpression(exp, context);
|
|
5986
|
+
const isInlineStatement = !(isMemberExp || isFnExpression(exp, context));
|
|
5967
5987
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
5968
5988
|
if (context.prefixIdentifiers) {
|
|
5969
5989
|
isInlineStatement && context.addIdentifiers(`$event`);
|
|
@@ -6133,7 +6153,7 @@ const transformModel = (dir, node, context) => {
|
|
|
6133
6153
|
return createTransformProps();
|
|
6134
6154
|
}
|
|
6135
6155
|
const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
|
|
6136
|
-
if (!expString.trim() || !isMemberExpression(
|
|
6156
|
+
if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
|
|
6137
6157
|
context.onError(
|
|
6138
6158
|
createCompilerError(42, exp.loc)
|
|
6139
6159
|
);
|
|
@@ -6539,6 +6559,9 @@ exports.hasScopeRef = hasScopeRef;
|
|
|
6539
6559
|
exports.helperNameMap = helperNameMap;
|
|
6540
6560
|
exports.injectProp = injectProp;
|
|
6541
6561
|
exports.isCoreComponent = isCoreComponent;
|
|
6562
|
+
exports.isFnExpression = isFnExpression;
|
|
6563
|
+
exports.isFnExpressionBrowser = isFnExpressionBrowser;
|
|
6564
|
+
exports.isFnExpressionNode = isFnExpressionNode;
|
|
6542
6565
|
exports.isFunctionType = isFunctionType;
|
|
6543
6566
|
exports.isInDestructureAssignment = isInDestructureAssignment;
|
|
6544
6567
|
exports.isInNewExpression = isInNewExpression;
|
package/dist/compiler-core.d.ts
CHANGED
|
@@ -1011,9 +1011,12 @@ export declare const isSimpleIdentifier: (name: string) => boolean;
|
|
|
1011
1011
|
* inside square brackets), but it's ok since these are only used on template
|
|
1012
1012
|
* expressions and false positives are invalid expressions in the first place.
|
|
1013
1013
|
*/
|
|
1014
|
-
export declare const isMemberExpressionBrowser: (
|
|
1015
|
-
export declare const isMemberExpressionNode: (
|
|
1016
|
-
export declare const isMemberExpression: (
|
|
1014
|
+
export declare const isMemberExpressionBrowser: (exp: ExpressionNode) => boolean;
|
|
1015
|
+
export declare const isMemberExpressionNode: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1016
|
+
export declare const isMemberExpression: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1017
|
+
export declare const isFnExpressionBrowser: (exp: ExpressionNode) => boolean;
|
|
1018
|
+
export declare const isFnExpressionNode: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1019
|
+
export declare const isFnExpression: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1017
1020
|
export declare function advancePositionWithClone(pos: Position, source: string, numberOfCharacters?: number): Position;
|
|
1018
1021
|
export declare function advancePositionWithMutation(pos: Position, source: string, numberOfCharacters?: number): Position;
|
|
1019
1022
|
export declare function assert(condition: boolean, msg?: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.0-beta.
|
|
2
|
+
* @vue/compiler-core v3.5.0-beta.2
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1624,8 +1624,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
|
1624
1624
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
1625
1625
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
1626
1626
|
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1627
|
+
const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
1628
|
+
const isMemberExpressionBrowser = (exp) => {
|
|
1629
|
+
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1629
1630
|
let state = 0 /* inMemberExp */;
|
|
1630
1631
|
let stateStack = [];
|
|
1631
1632
|
let currentOpenBracketCount = 0;
|
|
@@ -1688,6 +1689,10 @@ const isMemberExpressionBrowser = (path) => {
|
|
|
1688
1689
|
};
|
|
1689
1690
|
const isMemberExpressionNode = NOOP ;
|
|
1690
1691
|
const isMemberExpression = isMemberExpressionBrowser ;
|
|
1692
|
+
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
1693
|
+
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
1694
|
+
const isFnExpressionNode = NOOP ;
|
|
1695
|
+
const isFnExpression = isFnExpressionBrowser ;
|
|
1691
1696
|
function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
|
|
1692
1697
|
return advancePositionWithMutation(
|
|
1693
1698
|
{
|
|
@@ -5279,7 +5284,6 @@ function processSlotOutlet(node, context) {
|
|
|
5279
5284
|
};
|
|
5280
5285
|
}
|
|
5281
5286
|
|
|
5282
|
-
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
5283
5287
|
const transformOn = (dir, node, context, augmentor) => {
|
|
5284
5288
|
const { loc, modifiers, arg } = dir;
|
|
5285
5289
|
if (!dir.exp && !modifiers.length) {
|
|
@@ -5323,8 +5327,8 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
5323
5327
|
}
|
|
5324
5328
|
let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
|
|
5325
5329
|
if (exp) {
|
|
5326
|
-
const isMemberExp = isMemberExpression(exp
|
|
5327
|
-
const isInlineStatement = !(isMemberExp ||
|
|
5330
|
+
const isMemberExp = isMemberExpression(exp);
|
|
5331
|
+
const isInlineStatement = !(isMemberExp || isFnExpression(exp));
|
|
5328
5332
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
5329
5333
|
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
5330
5334
|
validateBrowserExpression(
|
|
@@ -5472,7 +5476,7 @@ const transformModel = (dir, node, context) => {
|
|
|
5472
5476
|
return createTransformProps();
|
|
5473
5477
|
}
|
|
5474
5478
|
const maybeRef = false;
|
|
5475
|
-
if (!expString.trim() || !isMemberExpression(
|
|
5479
|
+
if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
|
|
5476
5480
|
context.onError(
|
|
5477
5481
|
createCompilerError(42, exp.loc)
|
|
5478
5482
|
);
|
|
@@ -5760,4 +5764,4 @@ const BindingTypes = {
|
|
|
5760
5764
|
|
|
5761
5765
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
5762
5766
|
|
|
5763
|
-
export { BASE_TRANSITION, BindingTypes, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, CompilerDeprecationTypes, ConstantTypes, ElementTypes, ErrorCodes, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, Namespaces, NodeTypes, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, TS_NODE_TYPES, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, errorMessages, extractIdentifiers, findDir, findProp, forAliasRE, generate, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isCoreComponent, isFunctionType, isInDestructureAssignment, isInNewExpression, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText$1 as isText, isVSlot, locStub, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, traverseNode, unwrapTSNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|
|
5767
|
+
export { BASE_TRANSITION, BindingTypes, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, CompilerDeprecationTypes, ConstantTypes, ElementTypes, ErrorCodes, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, Namespaces, NodeTypes, OPEN_BLOCK, POP_SCOPE_ID, PUSH_SCOPE_ID, RENDER_LIST, RENDER_SLOT, RESOLVE_COMPONENT, RESOLVE_DIRECTIVE, RESOLVE_DYNAMIC_COMPONENT, RESOLVE_FILTER, SET_BLOCK_TRACKING, SUSPENSE, TELEPORT, TO_DISPLAY_STRING, TO_HANDLERS, TO_HANDLER_KEY, TS_NODE_TYPES, UNREF, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, errorMessages, extractIdentifiers, findDir, findProp, forAliasRE, generate, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isCoreComponent, isFnExpression, isFnExpressionBrowser, isFnExpressionNode, isFunctionType, isInDestructureAssignment, isInNewExpression, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText$1 as isText, isVSlot, locStub, noopDirectiveTransform, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel, transformOn, traverseNode, unwrapTSNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.5.0-beta.
|
|
3
|
+
"version": "3.5.0-beta.2",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@babel/parser": "^7.25.3",
|
|
50
|
-
"entities": "^5.0
|
|
50
|
+
"entities": "^4.5.0",
|
|
51
51
|
"estree-walker": "^2.0.2",
|
|
52
52
|
"source-map-js": "^1.2.0",
|
|
53
|
-
"@vue/shared": "3.5.0-beta.
|
|
53
|
+
"@vue/shared": "3.5.0-beta.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.25.2"
|