@vue/compiler-core 3.2.7 → 3.2.11
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-core.cjs.js +239 -63
- package/dist/compiler-core.cjs.prod.js +238 -62
- package/dist/compiler-core.d.ts +33 -32
- package/dist/compiler-core.esm-bundler.js +70 -55
- package/package.json +2 -2
|
@@ -45,37 +45,38 @@ const errorMessages = {
|
|
|
45
45
|
[23 /* X_INVALID_END_TAG */]: 'Invalid end tag.',
|
|
46
46
|
[24 /* X_MISSING_END_TAG */]: 'Element is missing end tag.',
|
|
47
47
|
[25 /* X_MISSING_INTERPOLATION_END */]: 'Interpolation end sign was not found.',
|
|
48
|
-
[
|
|
48
|
+
[27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */]: 'End bracket for dynamic directive argument was not found. ' +
|
|
49
49
|
'Note that dynamic directive argument cannot contain spaces.',
|
|
50
|
+
[26 /* X_MISSING_DIRECTIVE_NAME */]: 'Legal directive name was expected.',
|
|
50
51
|
// transform errors
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
54
|
-
[
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
52
|
+
[28 /* X_V_IF_NO_EXPRESSION */]: `v-if/v-else-if is missing expression.`,
|
|
53
|
+
[29 /* X_V_IF_SAME_KEY */]: `v-if/else branches must use unique keys.`,
|
|
54
|
+
[30 /* X_V_ELSE_NO_ADJACENT_IF */]: `v-else/v-else-if has no adjacent v-if.`,
|
|
55
|
+
[31 /* X_V_FOR_NO_EXPRESSION */]: `v-for is missing expression.`,
|
|
56
|
+
[32 /* X_V_FOR_MALFORMED_EXPRESSION */]: `v-for has invalid expression.`,
|
|
57
|
+
[33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */]: `<template v-for> key should be placed on the <template> tag.`,
|
|
58
|
+
[34 /* X_V_BIND_NO_EXPRESSION */]: `v-bind is missing expression.`,
|
|
59
|
+
[35 /* X_V_ON_NO_EXPRESSION */]: `v-on is missing expression.`,
|
|
60
|
+
[36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */]: `Unexpected custom directive on <slot> outlet.`,
|
|
61
|
+
[37 /* X_V_SLOT_MIXED_SLOT_USAGE */]: `Mixed v-slot usage on both the component and nested <template>.` +
|
|
61
62
|
`When there are multiple named slots, all slots should use <template> ` +
|
|
62
63
|
`syntax to avoid scope ambiguity.`,
|
|
63
|
-
[
|
|
64
|
-
[
|
|
64
|
+
[38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */]: `Duplicate slot names found. `,
|
|
65
|
+
[39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */]: `Extraneous children found when component already has explicitly named ` +
|
|
65
66
|
`default slot. These children will be ignored.`,
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
67
|
+
[40 /* X_V_SLOT_MISPLACED */]: `v-slot can only be used on components or <template> tags.`,
|
|
68
|
+
[41 /* X_V_MODEL_NO_EXPRESSION */]: `v-model is missing expression.`,
|
|
69
|
+
[42 /* X_V_MODEL_MALFORMED_EXPRESSION */]: `v-model value must be a valid JavaScript member expression.`,
|
|
70
|
+
[43 /* X_V_MODEL_ON_SCOPE_VARIABLE */]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
|
|
71
|
+
[44 /* X_INVALID_EXPRESSION */]: `Error parsing JavaScript expression: `,
|
|
72
|
+
[45 /* X_KEEP_ALIVE_INVALID_CHILDREN */]: `<KeepAlive> expects exactly one child component.`,
|
|
72
73
|
// generic errors
|
|
73
|
-
[
|
|
74
|
-
[
|
|
75
|
-
[
|
|
76
|
-
[
|
|
74
|
+
[46 /* X_PREFIX_ID_NOT_SUPPORTED */]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
75
|
+
[47 /* X_MODULE_MODE_NOT_SUPPORTED */]: `ES module mode is not supported in this build of compiler.`,
|
|
76
|
+
[48 /* X_CACHE_HANDLER_NOT_SUPPORTED */]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
77
|
+
[49 /* X_SCOPE_ID_NOT_SUPPORTED */]: `"scopeId" option is only supported in module mode.`,
|
|
77
78
|
// just to fullfill types
|
|
78
|
-
[
|
|
79
|
+
[50 /* __EXTEND_POINT__ */]: ``
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
const FRAGMENT = Symbol((process.env.NODE_ENV !== 'production') ? `Fragment` : ``);
|
|
@@ -1294,6 +1295,13 @@ function parseAttributes(context, type) {
|
|
|
1294
1295
|
emitError(context, 3 /* END_TAG_WITH_ATTRIBUTES */);
|
|
1295
1296
|
}
|
|
1296
1297
|
const attr = parseAttribute(context, attributeNames);
|
|
1298
|
+
// Trim whitespace between class
|
|
1299
|
+
// https://github.com/vuejs/vue-next/issues/4251
|
|
1300
|
+
if (attr.type === 6 /* ATTRIBUTE */ &&
|
|
1301
|
+
attr.value &&
|
|
1302
|
+
attr.name === 'class') {
|
|
1303
|
+
attr.value.content = attr.value.content.replace(/\s+/g, ' ').trim();
|
|
1304
|
+
}
|
|
1297
1305
|
if (type === 0 /* Start */) {
|
|
1298
1306
|
props.push(attr);
|
|
1299
1307
|
}
|
|
@@ -1336,7 +1344,7 @@ function parseAttribute(context, nameSet) {
|
|
|
1336
1344
|
}
|
|
1337
1345
|
}
|
|
1338
1346
|
const loc = getSelection(context, start);
|
|
1339
|
-
if (!context.inVPre && /^(v
|
|
1347
|
+
if (!context.inVPre && /^(v-[A-Za-z0-9-]|:|\.|@|#)/.test(name)) {
|
|
1340
1348
|
const match = /(?:^v-([a-z0-9-]+))?(?:(?::|^\.|^@|^#)(\[[^\]]+\]|[^\.]+))?(.+)?$/i.exec(name);
|
|
1341
1349
|
let isPropShorthand = startsWith(name, '.');
|
|
1342
1350
|
let dirName = match[1] ||
|
|
@@ -1355,9 +1363,12 @@ function parseAttribute(context, nameSet) {
|
|
|
1355
1363
|
if (content.startsWith('[')) {
|
|
1356
1364
|
isStatic = false;
|
|
1357
1365
|
if (!content.endsWith(']')) {
|
|
1358
|
-
emitError(context,
|
|
1366
|
+
emitError(context, 27 /* X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END */);
|
|
1367
|
+
content = content.substr(1);
|
|
1368
|
+
}
|
|
1369
|
+
else {
|
|
1370
|
+
content = content.substr(1, content.length - 2);
|
|
1359
1371
|
}
|
|
1360
|
-
content = content.substr(1, content.length - 2);
|
|
1361
1372
|
}
|
|
1362
1373
|
else if (isSlot) {
|
|
1363
1374
|
// #1241 special case for v-slot: vuetify relies extensively on slot
|
|
@@ -1413,6 +1424,10 @@ function parseAttribute(context, nameSet) {
|
|
|
1413
1424
|
loc
|
|
1414
1425
|
};
|
|
1415
1426
|
}
|
|
1427
|
+
// missing directive name or illegal directive name
|
|
1428
|
+
if (!context.inVPre && startsWith(name, 'v-')) {
|
|
1429
|
+
emitError(context, 26 /* X_MISSING_DIRECTIVE_NAME */);
|
|
1430
|
+
}
|
|
1416
1431
|
return {
|
|
1417
1432
|
type: 6 /* ATTRIBUTE */,
|
|
1418
1433
|
name,
|
|
@@ -2876,7 +2891,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
2876
2891
|
if (keywordMatch) {
|
|
2877
2892
|
message = `avoid using JavaScript keyword as property name: "${keywordMatch[0]}"`;
|
|
2878
2893
|
}
|
|
2879
|
-
context.onError(createCompilerError(
|
|
2894
|
+
context.onError(createCompilerError(44 /* X_INVALID_EXPRESSION */, node.loc, undefined, message));
|
|
2880
2895
|
}
|
|
2881
2896
|
}
|
|
2882
2897
|
|
|
@@ -2916,7 +2931,7 @@ function processExpression(node, context,
|
|
|
2916
2931
|
// function params
|
|
2917
2932
|
asParams = false,
|
|
2918
2933
|
// v-on handler values may contain multiple statements
|
|
2919
|
-
asRawStatements = false) {
|
|
2934
|
+
asRawStatements = false, localVars = Object.create(context.identifiers)) {
|
|
2920
2935
|
{
|
|
2921
2936
|
if ((process.env.NODE_ENV !== 'production')) {
|
|
2922
2937
|
// simple in-browser validation (same logic in 2.x)
|
|
@@ -2959,7 +2974,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
2959
2974
|
if (dir.name !== 'else' &&
|
|
2960
2975
|
(!dir.exp || !dir.exp.content.trim())) {
|
|
2961
2976
|
const loc = dir.exp ? dir.exp.loc : node.loc;
|
|
2962
|
-
context.onError(createCompilerError(
|
|
2977
|
+
context.onError(createCompilerError(28 /* X_V_IF_NO_EXPRESSION */, dir.loc));
|
|
2963
2978
|
dir.exp = createSimpleExpression(`true`, false, loc);
|
|
2964
2979
|
}
|
|
2965
2980
|
if ((process.env.NODE_ENV !== 'production') && true && dir.exp) {
|
|
@@ -3013,7 +3028,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
3013
3028
|
if (key) {
|
|
3014
3029
|
sibling.branches.forEach(({ userKey }) => {
|
|
3015
3030
|
if (isSameKey(userKey, key)) {
|
|
3016
|
-
context.onError(createCompilerError(
|
|
3031
|
+
context.onError(createCompilerError(29 /* X_V_IF_SAME_KEY */, branch.userKey.loc));
|
|
3017
3032
|
}
|
|
3018
3033
|
});
|
|
3019
3034
|
}
|
|
@@ -3031,7 +3046,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
3031
3046
|
context.currentNode = null;
|
|
3032
3047
|
}
|
|
3033
3048
|
else {
|
|
3034
|
-
context.onError(createCompilerError(
|
|
3049
|
+
context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, node.loc));
|
|
3035
3050
|
}
|
|
3036
3051
|
break;
|
|
3037
3052
|
}
|
|
@@ -3175,7 +3190,7 @@ const transformFor = createStructuralDirectiveTransform('for', (node, dir, conte
|
|
|
3175
3190
|
if (c.type === 1 /* ELEMENT */) {
|
|
3176
3191
|
const key = findProp(c, 'key');
|
|
3177
3192
|
if (key) {
|
|
3178
|
-
context.onError(createCompilerError(
|
|
3193
|
+
context.onError(createCompilerError(33 /* X_V_FOR_TEMPLATE_KEY_PLACEMENT */, key.loc));
|
|
3179
3194
|
return true;
|
|
3180
3195
|
}
|
|
3181
3196
|
}
|
|
@@ -3261,7 +3276,7 @@ const transformFor = createStructuralDirectiveTransform('for', (node, dir, conte
|
|
|
3261
3276
|
// target-agnostic transform used for both Client and SSR
|
|
3262
3277
|
function processFor(node, dir, context, processCodegen) {
|
|
3263
3278
|
if (!dir.exp) {
|
|
3264
|
-
context.onError(createCompilerError(
|
|
3279
|
+
context.onError(createCompilerError(31 /* X_V_FOR_NO_EXPRESSION */, dir.loc));
|
|
3265
3280
|
return;
|
|
3266
3281
|
}
|
|
3267
3282
|
const parseResult = parseForExpression(
|
|
@@ -3269,7 +3284,7 @@ function processFor(node, dir, context, processCodegen) {
|
|
|
3269
3284
|
// before expression transform.
|
|
3270
3285
|
dir.exp, context);
|
|
3271
3286
|
if (!parseResult) {
|
|
3272
|
-
context.onError(createCompilerError(
|
|
3287
|
+
context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, dir.loc));
|
|
3273
3288
|
return;
|
|
3274
3289
|
}
|
|
3275
3290
|
const { addIdentifiers, removeIdentifiers, scopes } = context;
|
|
@@ -3452,7 +3467,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
3452
3467
|
}
|
|
3453
3468
|
if (onComponentSlot) {
|
|
3454
3469
|
// already has on-component slot - this is incorrect usage.
|
|
3455
|
-
context.onError(createCompilerError(
|
|
3470
|
+
context.onError(createCompilerError(37 /* X_V_SLOT_MIXED_SLOT_USAGE */, slotDir.loc));
|
|
3456
3471
|
break;
|
|
3457
3472
|
}
|
|
3458
3473
|
hasTemplateSlots = true;
|
|
@@ -3499,7 +3514,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
3499
3514
|
: buildDynamicSlot(slotName, slotFunction);
|
|
3500
3515
|
}
|
|
3501
3516
|
else {
|
|
3502
|
-
context.onError(createCompilerError(
|
|
3517
|
+
context.onError(createCompilerError(30 /* X_V_ELSE_NO_ADJACENT_IF */, vElse.loc));
|
|
3503
3518
|
}
|
|
3504
3519
|
}
|
|
3505
3520
|
else if ((vFor = findDir(slotElement, 'for'))) {
|
|
@@ -3515,14 +3530,14 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
3515
3530
|
]));
|
|
3516
3531
|
}
|
|
3517
3532
|
else {
|
|
3518
|
-
context.onError(createCompilerError(
|
|
3533
|
+
context.onError(createCompilerError(32 /* X_V_FOR_MALFORMED_EXPRESSION */, vFor.loc));
|
|
3519
3534
|
}
|
|
3520
3535
|
}
|
|
3521
3536
|
else {
|
|
3522
3537
|
// check duplicate static names
|
|
3523
3538
|
if (staticSlotName) {
|
|
3524
3539
|
if (seenSlotNames.has(staticSlotName)) {
|
|
3525
|
-
context.onError(createCompilerError(
|
|
3540
|
+
context.onError(createCompilerError(38 /* X_V_SLOT_DUPLICATE_SLOT_NAMES */, dirLoc));
|
|
3526
3541
|
continue;
|
|
3527
3542
|
}
|
|
3528
3543
|
seenSlotNames.add(staticSlotName);
|
|
@@ -3552,7 +3567,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
3552
3567
|
implicitDefaultChildren.some(node => isNonWhitespaceContent(node))) {
|
|
3553
3568
|
// implicit default slot (mixed with named slots)
|
|
3554
3569
|
if (hasNamedDefaultSlot) {
|
|
3555
|
-
context.onError(createCompilerError(
|
|
3570
|
+
context.onError(createCompilerError(39 /* X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN */, implicitDefaultChildren[0].loc));
|
|
3556
3571
|
}
|
|
3557
3572
|
else {
|
|
3558
3573
|
slotsProperties.push(buildDefaultSlotProperty(undefined, implicitDefaultChildren));
|
|
@@ -3684,7 +3699,7 @@ const transformElement = (node, context) => {
|
|
|
3684
3699
|
// 2. Force keep-alive to always be updated, since it uses raw children.
|
|
3685
3700
|
patchFlag |= 1024 /* DYNAMIC_SLOTS */;
|
|
3686
3701
|
if ((process.env.NODE_ENV !== 'production') && node.children.length > 1) {
|
|
3687
|
-
context.onError(createCompilerError(
|
|
3702
|
+
context.onError(createCompilerError(45 /* X_KEEP_ALIVE_INVALID_CHILDREN */, {
|
|
3688
3703
|
start: node.children[0].loc.start,
|
|
3689
3704
|
end: node.children[node.children.length - 1].loc.end,
|
|
3690
3705
|
source: ''
|
|
@@ -3868,7 +3883,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
|
|
|
3868
3883
|
const prop = props[i];
|
|
3869
3884
|
if (prop.type === 6 /* ATTRIBUTE */) {
|
|
3870
3885
|
const { loc, name, value } = prop;
|
|
3871
|
-
let
|
|
3886
|
+
let valueNode = createSimpleExpression(value ? value.content : '', true, value ? value.loc : loc);
|
|
3872
3887
|
if (name === 'ref') {
|
|
3873
3888
|
hasRef = true;
|
|
3874
3889
|
}
|
|
@@ -3879,7 +3894,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
|
|
|
3879
3894
|
(isCompatEnabled("COMPILER_IS_ON_ELEMENT" /* COMPILER_IS_ON_ELEMENT */, context)))) {
|
|
3880
3895
|
continue;
|
|
3881
3896
|
}
|
|
3882
|
-
properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)),
|
|
3897
|
+
properties.push(createObjectProperty(createSimpleExpression(name, true, getInnerRange(loc, 0, name.length)), valueNode));
|
|
3883
3898
|
}
|
|
3884
3899
|
else {
|
|
3885
3900
|
// directives
|
|
@@ -3889,7 +3904,7 @@ function buildProps(node, context, props = node.props, ssr = false) {
|
|
|
3889
3904
|
// skip v-slot - it is handled by its dedicated transform.
|
|
3890
3905
|
if (name === 'slot') {
|
|
3891
3906
|
if (!isComponent) {
|
|
3892
|
-
context.onError(createCompilerError(
|
|
3907
|
+
context.onError(createCompilerError(40 /* X_V_SLOT_MISPLACED */, loc));
|
|
3893
3908
|
}
|
|
3894
3909
|
continue;
|
|
3895
3910
|
}
|
|
@@ -3961,8 +3976,8 @@ function buildProps(node, context, props = node.props, ssr = false) {
|
|
|
3961
3976
|
}
|
|
3962
3977
|
else {
|
|
3963
3978
|
context.onError(createCompilerError(isVBind
|
|
3964
|
-
?
|
|
3965
|
-
:
|
|
3979
|
+
? 34 /* X_V_BIND_NO_EXPRESSION */
|
|
3980
|
+
: 35 /* X_V_ON_NO_EXPRESSION */, loc));
|
|
3966
3981
|
}
|
|
3967
3982
|
continue;
|
|
3968
3983
|
}
|
|
@@ -4266,7 +4281,7 @@ function processSlotOutlet(node, context) {
|
|
|
4266
4281
|
const { props, directives } = buildProps(node, context, nonNameProps);
|
|
4267
4282
|
slotProps = props;
|
|
4268
4283
|
if (directives.length) {
|
|
4269
|
-
context.onError(createCompilerError(
|
|
4284
|
+
context.onError(createCompilerError(36 /* X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET */, directives[0].loc));
|
|
4270
4285
|
}
|
|
4271
4286
|
}
|
|
4272
4287
|
return {
|
|
@@ -4279,7 +4294,7 @@ const fnExpRE = /^\s*([\w$_]+|\([^)]*?\))\s*=>|^\s*function(?:\s+[\w$]+)?\s*\(/;
|
|
|
4279
4294
|
const transformOn = (dir, node, context, augmentor) => {
|
|
4280
4295
|
const { loc, modifiers, arg } = dir;
|
|
4281
4296
|
if (!dir.exp && !modifiers.length) {
|
|
4282
|
-
context.onError(createCompilerError(
|
|
4297
|
+
context.onError(createCompilerError(35 /* X_V_ON_NO_EXPRESSION */, loc));
|
|
4283
4298
|
}
|
|
4284
4299
|
let eventName;
|
|
4285
4300
|
if (arg.type === 4 /* SIMPLE_EXPRESSION */) {
|
|
@@ -4385,7 +4400,7 @@ const transformBind = (dir, _node, context) => {
|
|
|
4385
4400
|
}
|
|
4386
4401
|
if (!exp ||
|
|
4387
4402
|
(exp.type === 4 /* SIMPLE_EXPRESSION */ && !exp.content.trim())) {
|
|
4388
|
-
context.onError(createCompilerError(
|
|
4403
|
+
context.onError(createCompilerError(34 /* X_V_BIND_NO_EXPRESSION */, loc));
|
|
4389
4404
|
return {
|
|
4390
4405
|
props: [createObjectProperty(arg, createSimpleExpression('', true, loc))]
|
|
4391
4406
|
};
|
|
@@ -4521,7 +4536,7 @@ const transformOnce = (node, context) => {
|
|
|
4521
4536
|
const transformModel = (dir, node, context) => {
|
|
4522
4537
|
const { exp, arg } = dir;
|
|
4523
4538
|
if (!exp) {
|
|
4524
|
-
context.onError(createCompilerError(
|
|
4539
|
+
context.onError(createCompilerError(41 /* X_V_MODEL_NO_EXPRESSION */, dir.loc));
|
|
4525
4540
|
return createTransformProps();
|
|
4526
4541
|
}
|
|
4527
4542
|
const rawExp = exp.loc.source;
|
|
@@ -4531,7 +4546,7 @@ const transformModel = (dir, node, context) => {
|
|
|
4531
4546
|
context.bindingMetadata[rawExp];
|
|
4532
4547
|
const maybeRef = !true /* SETUP_CONST */;
|
|
4533
4548
|
if (!expString.trim() || (!isMemberExpression(expString) && !maybeRef)) {
|
|
4534
|
-
context.onError(createCompilerError(
|
|
4549
|
+
context.onError(createCompilerError(42 /* X_V_MODEL_MALFORMED_EXPRESSION */, exp.loc));
|
|
4535
4550
|
return createTransformProps();
|
|
4536
4551
|
}
|
|
4537
4552
|
const propName = arg ? arg : createSimpleExpression('modelValue', true);
|
|
@@ -4797,18 +4812,18 @@ function baseCompile(template, options = {}) {
|
|
|
4797
4812
|
/* istanbul ignore if */
|
|
4798
4813
|
{
|
|
4799
4814
|
if (options.prefixIdentifiers === true) {
|
|
4800
|
-
onError(createCompilerError(
|
|
4815
|
+
onError(createCompilerError(46 /* X_PREFIX_ID_NOT_SUPPORTED */));
|
|
4801
4816
|
}
|
|
4802
4817
|
else if (isModuleMode) {
|
|
4803
|
-
onError(createCompilerError(
|
|
4818
|
+
onError(createCompilerError(47 /* X_MODULE_MODE_NOT_SUPPORTED */));
|
|
4804
4819
|
}
|
|
4805
4820
|
}
|
|
4806
4821
|
const prefixIdentifiers = !true ;
|
|
4807
4822
|
if (options.cacheHandlers) {
|
|
4808
|
-
onError(createCompilerError(
|
|
4823
|
+
onError(createCompilerError(48 /* X_CACHE_HANDLER_NOT_SUPPORTED */));
|
|
4809
4824
|
}
|
|
4810
4825
|
if (options.scopeId && !isModuleMode) {
|
|
4811
|
-
onError(createCompilerError(
|
|
4826
|
+
onError(createCompilerError(49 /* X_SCOPE_ID_NOT_SUPPORTED */));
|
|
4812
4827
|
}
|
|
4813
4828
|
const ast = isString(template) ? baseParse(template, options) : template;
|
|
4814
4829
|
const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.11",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/compiler-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@vue/shared": "3.2.
|
|
35
|
+
"@vue/shared": "3.2.11",
|
|
36
36
|
"@babel/parser": "^7.15.0",
|
|
37
37
|
"@babel/types": "^7.15.0",
|
|
38
38
|
"estree-walker": "^2.0.2",
|