@vue/compiler-core 3.4.37 → 3.4.38
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.4.
|
|
2
|
+
* @vue/compiler-core v3.4.38
|
|
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');
|
|
@@ -1827,8 +1827,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
|
1827
1827
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
1828
1828
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
1829
1829
|
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1830
|
+
const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
1831
|
+
const isMemberExpressionBrowser = (exp) => {
|
|
1832
|
+
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1832
1833
|
let state = 0 /* inMemberExp */;
|
|
1833
1834
|
let stateStack = [];
|
|
1834
1835
|
let currentOpenBracketCount = 0;
|
|
@@ -1889,10 +1890,10 @@ const isMemberExpressionBrowser = (path) => {
|
|
|
1889
1890
|
}
|
|
1890
1891
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
1891
1892
|
};
|
|
1892
|
-
const isMemberExpressionNode = (
|
|
1893
|
+
const isMemberExpressionNode = (exp, context) => {
|
|
1893
1894
|
try {
|
|
1894
|
-
let ret = parser.parseExpression(
|
|
1895
|
-
plugins: context.expressionPlugins
|
|
1895
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1896
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1896
1897
|
});
|
|
1897
1898
|
ret = unwrapTSNode(ret);
|
|
1898
1899
|
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier" && ret.name !== "undefined";
|
|
@@ -1901,6 +1902,26 @@ const isMemberExpressionNode = (path, context) => {
|
|
|
1901
1902
|
}
|
|
1902
1903
|
};
|
|
1903
1904
|
const isMemberExpression = isMemberExpressionNode;
|
|
1905
|
+
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
1906
|
+
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
1907
|
+
const isFnExpressionNode = (exp, context) => {
|
|
1908
|
+
try {
|
|
1909
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1910
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1911
|
+
});
|
|
1912
|
+
if (ret.type === "Program") {
|
|
1913
|
+
ret = ret.body[0];
|
|
1914
|
+
if (ret.type === "ExpressionStatement") {
|
|
1915
|
+
ret = ret.expression;
|
|
1916
|
+
}
|
|
1917
|
+
}
|
|
1918
|
+
ret = unwrapTSNode(ret);
|
|
1919
|
+
return ret.type === "FunctionExpression" || ret.type === "ArrowFunctionExpression";
|
|
1920
|
+
} catch (e) {
|
|
1921
|
+
return false;
|
|
1922
|
+
}
|
|
1923
|
+
};
|
|
1924
|
+
const isFnExpression = isFnExpressionNode;
|
|
1904
1925
|
function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
|
|
1905
1926
|
return advancePositionWithMutation(
|
|
1906
1927
|
{
|
|
@@ -5961,7 +5982,6 @@ function processSlotOutlet(node, context) {
|
|
|
5961
5982
|
};
|
|
5962
5983
|
}
|
|
5963
5984
|
|
|
5964
|
-
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
5965
5985
|
const transformOn = (dir, node, context, augmentor) => {
|
|
5966
5986
|
const { loc, modifiers, arg } = dir;
|
|
5967
5987
|
if (!dir.exp && !modifiers.length) {
|
|
@@ -6005,8 +6025,8 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
6005
6025
|
}
|
|
6006
6026
|
let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
|
|
6007
6027
|
if (exp) {
|
|
6008
|
-
const isMemberExp = isMemberExpression(exp
|
|
6009
|
-
const isInlineStatement = !(isMemberExp ||
|
|
6028
|
+
const isMemberExp = isMemberExpression(exp, context);
|
|
6029
|
+
const isInlineStatement = !(isMemberExp || isFnExpression(exp, context));
|
|
6010
6030
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
6011
6031
|
if (context.prefixIdentifiers) {
|
|
6012
6032
|
isInlineStatement && context.addIdentifiers(`$event`);
|
|
@@ -6176,7 +6196,7 @@ const transformModel = (dir, node, context) => {
|
|
|
6176
6196
|
return createTransformProps();
|
|
6177
6197
|
}
|
|
6178
6198
|
const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
|
|
6179
|
-
if (!expString.trim() || !isMemberExpression(
|
|
6199
|
+
if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
|
|
6180
6200
|
context.onError(
|
|
6181
6201
|
createCompilerError(42, exp.loc)
|
|
6182
6202
|
);
|
|
@@ -6586,6 +6606,9 @@ exports.hasScopeRef = hasScopeRef;
|
|
|
6586
6606
|
exports.helperNameMap = helperNameMap;
|
|
6587
6607
|
exports.injectProp = injectProp;
|
|
6588
6608
|
exports.isCoreComponent = isCoreComponent;
|
|
6609
|
+
exports.isFnExpression = isFnExpression;
|
|
6610
|
+
exports.isFnExpressionBrowser = isFnExpressionBrowser;
|
|
6611
|
+
exports.isFnExpressionNode = isFnExpressionNode;
|
|
6589
6612
|
exports.isFunctionType = isFunctionType;
|
|
6590
6613
|
exports.isInDestructureAssignment = isInDestructureAssignment;
|
|
6591
6614
|
exports.isInNewExpression = isInNewExpression;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.4.
|
|
2
|
+
* @vue/compiler-core v3.4.38
|
|
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');
|
|
@@ -1823,8 +1823,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
|
1823
1823
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
1824
1824
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
1825
1825
|
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
|
|
1826
|
-
const
|
|
1827
|
-
|
|
1826
|
+
const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
1827
|
+
const isMemberExpressionBrowser = (exp) => {
|
|
1828
|
+
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1828
1829
|
let state = 0 /* inMemberExp */;
|
|
1829
1830
|
let stateStack = [];
|
|
1830
1831
|
let currentOpenBracketCount = 0;
|
|
@@ -1885,10 +1886,10 @@ const isMemberExpressionBrowser = (path) => {
|
|
|
1885
1886
|
}
|
|
1886
1887
|
return !currentOpenBracketCount && !currentOpenParensCount;
|
|
1887
1888
|
};
|
|
1888
|
-
const isMemberExpressionNode = (
|
|
1889
|
+
const isMemberExpressionNode = (exp, context) => {
|
|
1889
1890
|
try {
|
|
1890
|
-
let ret = parser.parseExpression(
|
|
1891
|
-
plugins: context.expressionPlugins
|
|
1891
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1892
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1892
1893
|
});
|
|
1893
1894
|
ret = unwrapTSNode(ret);
|
|
1894
1895
|
return ret.type === "MemberExpression" || ret.type === "OptionalMemberExpression" || ret.type === "Identifier" && ret.name !== "undefined";
|
|
@@ -1897,6 +1898,26 @@ const isMemberExpressionNode = (path, context) => {
|
|
|
1897
1898
|
}
|
|
1898
1899
|
};
|
|
1899
1900
|
const isMemberExpression = isMemberExpressionNode;
|
|
1901
|
+
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
1902
|
+
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
1903
|
+
const isFnExpressionNode = (exp, context) => {
|
|
1904
|
+
try {
|
|
1905
|
+
let ret = exp.ast || parser.parseExpression(getExpSource(exp), {
|
|
1906
|
+
plugins: context.expressionPlugins ? [...context.expressionPlugins, "typescript"] : ["typescript"]
|
|
1907
|
+
});
|
|
1908
|
+
if (ret.type === "Program") {
|
|
1909
|
+
ret = ret.body[0];
|
|
1910
|
+
if (ret.type === "ExpressionStatement") {
|
|
1911
|
+
ret = ret.expression;
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
ret = unwrapTSNode(ret);
|
|
1915
|
+
return ret.type === "FunctionExpression" || ret.type === "ArrowFunctionExpression";
|
|
1916
|
+
} catch (e) {
|
|
1917
|
+
return false;
|
|
1918
|
+
}
|
|
1919
|
+
};
|
|
1920
|
+
const isFnExpression = isFnExpressionNode;
|
|
1900
1921
|
function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
|
|
1901
1922
|
return advancePositionWithMutation(
|
|
1902
1923
|
{
|
|
@@ -5845,7 +5866,6 @@ function processSlotOutlet(node, context) {
|
|
|
5845
5866
|
};
|
|
5846
5867
|
}
|
|
5847
5868
|
|
|
5848
|
-
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
5849
5869
|
const transformOn = (dir, node, context, augmentor) => {
|
|
5850
5870
|
const { loc, modifiers, arg } = dir;
|
|
5851
5871
|
if (!dir.exp && !modifiers.length) {
|
|
@@ -5886,8 +5906,8 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
5886
5906
|
}
|
|
5887
5907
|
let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
|
|
5888
5908
|
if (exp) {
|
|
5889
|
-
const isMemberExp = isMemberExpression(exp
|
|
5890
|
-
const isInlineStatement = !(isMemberExp ||
|
|
5909
|
+
const isMemberExp = isMemberExpression(exp, context);
|
|
5910
|
+
const isInlineStatement = !(isMemberExp || isFnExpression(exp, context));
|
|
5891
5911
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
5892
5912
|
if (context.prefixIdentifiers) {
|
|
5893
5913
|
isInlineStatement && context.addIdentifiers(`$event`);
|
|
@@ -6057,7 +6077,7 @@ const transformModel = (dir, node, context) => {
|
|
|
6057
6077
|
return createTransformProps();
|
|
6058
6078
|
}
|
|
6059
6079
|
const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
|
|
6060
|
-
if (!expString.trim() || !isMemberExpression(
|
|
6080
|
+
if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
|
|
6061
6081
|
context.onError(
|
|
6062
6082
|
createCompilerError(42, exp.loc)
|
|
6063
6083
|
);
|
|
@@ -6462,6 +6482,9 @@ exports.hasScopeRef = hasScopeRef;
|
|
|
6462
6482
|
exports.helperNameMap = helperNameMap;
|
|
6463
6483
|
exports.injectProp = injectProp;
|
|
6464
6484
|
exports.isCoreComponent = isCoreComponent;
|
|
6485
|
+
exports.isFnExpression = isFnExpression;
|
|
6486
|
+
exports.isFnExpressionBrowser = isFnExpressionBrowser;
|
|
6487
|
+
exports.isFnExpressionNode = isFnExpressionNode;
|
|
6465
6488
|
exports.isFunctionType = isFunctionType;
|
|
6466
6489
|
exports.isInDestructureAssignment = isInDestructureAssignment;
|
|
6467
6490
|
exports.isInNewExpression = isInNewExpression;
|
package/dist/compiler-core.d.ts
CHANGED
|
@@ -1003,9 +1003,12 @@ export declare const isSimpleIdentifier: (name: string) => boolean;
|
|
|
1003
1003
|
* inside square brackets), but it's ok since these are only used on template
|
|
1004
1004
|
* expressions and false positives are invalid expressions in the first place.
|
|
1005
1005
|
*/
|
|
1006
|
-
export declare const isMemberExpressionBrowser: (
|
|
1007
|
-
export declare const isMemberExpressionNode: (
|
|
1008
|
-
export declare const isMemberExpression: (
|
|
1006
|
+
export declare const isMemberExpressionBrowser: (exp: ExpressionNode) => boolean;
|
|
1007
|
+
export declare const isMemberExpressionNode: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1008
|
+
export declare const isMemberExpression: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1009
|
+
export declare const isFnExpressionBrowser: (exp: ExpressionNode) => boolean;
|
|
1010
|
+
export declare const isFnExpressionNode: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1011
|
+
export declare const isFnExpression: (exp: ExpressionNode, context: TransformContext) => boolean;
|
|
1009
1012
|
export declare function advancePositionWithClone(pos: Position, source: string, numberOfCharacters?: number): Position;
|
|
1010
1013
|
export declare function advancePositionWithMutation(pos: Position, source: string, numberOfCharacters?: number): Position;
|
|
1011
1014
|
export declare function assert(condition: boolean, msg?: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.4.
|
|
2
|
+
* @vue/compiler-core v3.4.38
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -1589,8 +1589,9 @@ const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
|
|
1589
1589
|
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
|
1590
1590
|
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
|
1591
1591
|
const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
|
|
1592
|
-
const
|
|
1593
|
-
|
|
1592
|
+
const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
|
|
1593
|
+
const isMemberExpressionBrowser = (exp) => {
|
|
1594
|
+
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1594
1595
|
let state = 0 /* inMemberExp */;
|
|
1595
1596
|
let stateStack = [];
|
|
1596
1597
|
let currentOpenBracketCount = 0;
|
|
@@ -1653,6 +1654,10 @@ const isMemberExpressionBrowser = (path) => {
|
|
|
1653
1654
|
};
|
|
1654
1655
|
const isMemberExpressionNode = NOOP ;
|
|
1655
1656
|
const isMemberExpression = isMemberExpressionBrowser ;
|
|
1657
|
+
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
1658
|
+
const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
|
|
1659
|
+
const isFnExpressionNode = NOOP ;
|
|
1660
|
+
const isFnExpression = isFnExpressionBrowser ;
|
|
1656
1661
|
function advancePositionWithClone(pos, source, numberOfCharacters = source.length) {
|
|
1657
1662
|
return advancePositionWithMutation(
|
|
1658
1663
|
{
|
|
@@ -5185,7 +5190,6 @@ function processSlotOutlet(node, context) {
|
|
|
5185
5190
|
};
|
|
5186
5191
|
}
|
|
5187
5192
|
|
|
5188
|
-
const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
|
|
5189
5193
|
const transformOn = (dir, node, context, augmentor) => {
|
|
5190
5194
|
const { loc, modifiers, arg } = dir;
|
|
5191
5195
|
if (!dir.exp && !modifiers.length) {
|
|
@@ -5229,8 +5233,8 @@ const transformOn = (dir, node, context, augmentor) => {
|
|
|
5229
5233
|
}
|
|
5230
5234
|
let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
|
|
5231
5235
|
if (exp) {
|
|
5232
|
-
const isMemberExp = isMemberExpression(exp
|
|
5233
|
-
const isInlineStatement = !(isMemberExp ||
|
|
5236
|
+
const isMemberExp = isMemberExpression(exp);
|
|
5237
|
+
const isInlineStatement = !(isMemberExp || isFnExpression(exp));
|
|
5234
5238
|
const hasMultipleStatements = exp.content.includes(`;`);
|
|
5235
5239
|
if (!!(process.env.NODE_ENV !== "production") && true) {
|
|
5236
5240
|
validateBrowserExpression(
|
|
@@ -5378,7 +5382,7 @@ const transformModel = (dir, node, context) => {
|
|
|
5378
5382
|
return createTransformProps();
|
|
5379
5383
|
}
|
|
5380
5384
|
const maybeRef = false;
|
|
5381
|
-
if (!expString.trim() || !isMemberExpression(
|
|
5385
|
+
if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
|
|
5382
5386
|
context.onError(
|
|
5383
5387
|
createCompilerError(42, exp.loc)
|
|
5384
5388
|
);
|
|
@@ -5665,4 +5669,4 @@ const BindingTypes = {
|
|
|
5665
5669
|
|
|
5666
5670
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
5667
5671
|
|
|
5668
|
-
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 };
|
|
5672
|
+
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.4.
|
|
3
|
+
"version": "3.4.38",
|
|
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.24.7",
|
|
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.4.
|
|
53
|
+
"@vue/shared": "3.4.38"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.24.7"
|