@vue/compiler-core 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.
- package/dist/compiler-core.cjs.js +118 -44
- package/dist/compiler-core.cjs.prod.js +118 -44
- package/dist/compiler-core.d.ts +38 -15
- package/dist/compiler-core.esm-bundler.js +105 -37
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.
|
|
2
|
+
* @vue/compiler-core v3.6.0-alpha.1
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
|
-
import { isString, NOOP, isObject, extend, NO, isSymbol, isArray, capitalize, camelize,
|
|
6
|
+
import { isString, NOOP, isObject, extend, NO, isSymbol, isArray, EMPTY_OBJ, capitalize, camelize, PatchFlagNames, makeMap, slotFlagsText, isOn, isBuiltInDirective, isReservedProp, toHandlerKey } from '@vue/shared';
|
|
7
7
|
export { generateCodeFrame } from '@vue/shared';
|
|
8
8
|
|
|
9
9
|
const FRAGMENT = Symbol(!!(process.env.NODE_ENV !== "production") ? `Fragment` : ``);
|
|
@@ -1023,7 +1023,7 @@ class Tokenizer {
|
|
|
1023
1023
|
this.buffer = input;
|
|
1024
1024
|
while (this.index < this.buffer.length) {
|
|
1025
1025
|
const c = this.buffer.charCodeAt(this.index);
|
|
1026
|
-
if (c === 10) {
|
|
1026
|
+
if (c === 10 && this.state !== 33) {
|
|
1027
1027
|
this.newlines.push(this.index);
|
|
1028
1028
|
}
|
|
1029
1029
|
switch (this.state) {
|
|
@@ -1535,7 +1535,7 @@ function isForStatement(stmt) {
|
|
|
1535
1535
|
}
|
|
1536
1536
|
function walkForStatement(stmt, isVar, onIdent) {
|
|
1537
1537
|
const variable = stmt.type === "ForStatement" ? stmt.init : stmt.left;
|
|
1538
|
-
if (variable && variable.type === "VariableDeclaration" && (variable.kind === "var" ? isVar :
|
|
1538
|
+
if (variable && variable.type === "VariableDeclaration" && (variable.kind === "var" ? isVar : !isVar)) {
|
|
1539
1539
|
for (const decl of variable.declarations) {
|
|
1540
1540
|
for (const id of extractIdentifiers(decl.id)) {
|
|
1541
1541
|
onIdent(id);
|
|
@@ -1581,7 +1581,7 @@ function extractIdentifiers(param, nodes = []) {
|
|
|
1581
1581
|
const isFunctionType = (node) => {
|
|
1582
1582
|
return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
|
|
1583
1583
|
};
|
|
1584
|
-
const isStaticProperty = (node) => node && (node.type === "ObjectProperty" || node.type === "ObjectMethod") && !node.computed;
|
|
1584
|
+
const isStaticProperty = (node) => !!node && (node.type === "ObjectProperty" || node.type === "ObjectMethod") && !node.computed;
|
|
1585
1585
|
const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
|
|
1586
1586
|
const TS_NODE_TYPES = [
|
|
1587
1587
|
"TSAsExpression",
|
|
@@ -1602,6 +1602,59 @@ function unwrapTSNode(node) {
|
|
|
1602
1602
|
return node;
|
|
1603
1603
|
}
|
|
1604
1604
|
}
|
|
1605
|
+
function isStaticNode(node) {
|
|
1606
|
+
node = unwrapTSNode(node);
|
|
1607
|
+
switch (node.type) {
|
|
1608
|
+
case "UnaryExpression":
|
|
1609
|
+
return isStaticNode(node.argument);
|
|
1610
|
+
case "LogicalExpression":
|
|
1611
|
+
// 1 > 2
|
|
1612
|
+
case "BinaryExpression":
|
|
1613
|
+
return isStaticNode(node.left) && isStaticNode(node.right);
|
|
1614
|
+
case "ConditionalExpression": {
|
|
1615
|
+
return isStaticNode(node.test) && isStaticNode(node.consequent) && isStaticNode(node.alternate);
|
|
1616
|
+
}
|
|
1617
|
+
case "SequenceExpression":
|
|
1618
|
+
// (1, 2)
|
|
1619
|
+
case "TemplateLiteral":
|
|
1620
|
+
return node.expressions.every((expr) => isStaticNode(expr));
|
|
1621
|
+
case "ParenthesizedExpression":
|
|
1622
|
+
return isStaticNode(node.expression);
|
|
1623
|
+
case "StringLiteral":
|
|
1624
|
+
case "NumericLiteral":
|
|
1625
|
+
case "BooleanLiteral":
|
|
1626
|
+
case "NullLiteral":
|
|
1627
|
+
case "BigIntLiteral":
|
|
1628
|
+
return true;
|
|
1629
|
+
}
|
|
1630
|
+
return false;
|
|
1631
|
+
}
|
|
1632
|
+
function isConstantNode(node, bindings) {
|
|
1633
|
+
if (isStaticNode(node)) return true;
|
|
1634
|
+
node = unwrapTSNode(node);
|
|
1635
|
+
switch (node.type) {
|
|
1636
|
+
case "Identifier":
|
|
1637
|
+
const type = bindings[node.name];
|
|
1638
|
+
return type === "literal-const";
|
|
1639
|
+
case "RegExpLiteral":
|
|
1640
|
+
return true;
|
|
1641
|
+
case "ObjectExpression":
|
|
1642
|
+
return node.properties.every((prop) => {
|
|
1643
|
+
if (prop.type === "ObjectMethod") return false;
|
|
1644
|
+
if (prop.type === "SpreadElement")
|
|
1645
|
+
return isConstantNode(prop.argument, bindings);
|
|
1646
|
+
return (!prop.computed || isConstantNode(prop.key, bindings)) && isConstantNode(prop.value, bindings);
|
|
1647
|
+
});
|
|
1648
|
+
case "ArrayExpression":
|
|
1649
|
+
return node.elements.every((element) => {
|
|
1650
|
+
if (element === null) return true;
|
|
1651
|
+
if (element.type === "SpreadElement")
|
|
1652
|
+
return isConstantNode(element.argument, bindings);
|
|
1653
|
+
return isConstantNode(element, bindings);
|
|
1654
|
+
});
|
|
1655
|
+
}
|
|
1656
|
+
return false;
|
|
1657
|
+
}
|
|
1605
1658
|
|
|
1606
1659
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
1607
1660
|
function isCoreComponent(tag) {
|
|
@@ -2499,7 +2552,7 @@ function isUpperCase(c) {
|
|
|
2499
2552
|
return c > 64 && c < 91;
|
|
2500
2553
|
}
|
|
2501
2554
|
const windowsNewlineRE = /\r\n/g;
|
|
2502
|
-
function condenseWhitespace(nodes
|
|
2555
|
+
function condenseWhitespace(nodes) {
|
|
2503
2556
|
const shouldCondense = currentOptions.whitespace !== "preserve";
|
|
2504
2557
|
let removedWhitespace = false;
|
|
2505
2558
|
for (let i = 0; i < nodes.length; i++) {
|
|
@@ -2663,12 +2716,12 @@ function cacheStatic(root, context) {
|
|
|
2663
2716
|
context,
|
|
2664
2717
|
// Root node is unfortunately non-hoistable due to potential parent
|
|
2665
2718
|
// fallthrough attributes.
|
|
2666
|
-
|
|
2719
|
+
!!getSingleElementRoot(root)
|
|
2667
2720
|
);
|
|
2668
2721
|
}
|
|
2669
|
-
function
|
|
2670
|
-
const
|
|
2671
|
-
return children.length === 1 &&
|
|
2722
|
+
function getSingleElementRoot(root) {
|
|
2723
|
+
const children = root.children.filter((x) => x.type !== 3);
|
|
2724
|
+
return children.length === 1 && children[0].type === 1 && !isSlotOutlet(children[0]) ? children[0] : null;
|
|
2672
2725
|
}
|
|
2673
2726
|
function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
|
2674
2727
|
const { children } = node;
|
|
@@ -2954,6 +3007,10 @@ function getNodeProps(node) {
|
|
|
2954
3007
|
}
|
|
2955
3008
|
}
|
|
2956
3009
|
|
|
3010
|
+
function getSelfName(filename) {
|
|
3011
|
+
const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/);
|
|
3012
|
+
return nameMatch ? capitalize(camelize(nameMatch[1])) : null;
|
|
3013
|
+
}
|
|
2957
3014
|
function createTransformContext(root, {
|
|
2958
3015
|
filename = "",
|
|
2959
3016
|
prefixIdentifiers = false,
|
|
@@ -2978,11 +3035,10 @@ function createTransformContext(root, {
|
|
|
2978
3035
|
onWarn = defaultOnWarn,
|
|
2979
3036
|
compatConfig
|
|
2980
3037
|
}) {
|
|
2981
|
-
const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/);
|
|
2982
3038
|
const context = {
|
|
2983
3039
|
// options
|
|
2984
3040
|
filename,
|
|
2985
|
-
selfName:
|
|
3041
|
+
selfName: getSelfName(filename),
|
|
2986
3042
|
prefixIdentifiers,
|
|
2987
3043
|
hoistStatic,
|
|
2988
3044
|
hmr,
|
|
@@ -3135,15 +3191,15 @@ function createRootCodegen(root, context) {
|
|
|
3135
3191
|
const { helper } = context;
|
|
3136
3192
|
const { children } = root;
|
|
3137
3193
|
if (children.length === 1) {
|
|
3138
|
-
const
|
|
3139
|
-
if (
|
|
3140
|
-
const codegenNode =
|
|
3194
|
+
const singleElementRootChild = getSingleElementRoot(root);
|
|
3195
|
+
if (singleElementRootChild && singleElementRootChild.codegenNode) {
|
|
3196
|
+
const codegenNode = singleElementRootChild.codegenNode;
|
|
3141
3197
|
if (codegenNode.type === 13) {
|
|
3142
3198
|
convertToBlock(codegenNode, context);
|
|
3143
3199
|
}
|
|
3144
3200
|
root.codegenNode = codegenNode;
|
|
3145
3201
|
} else {
|
|
3146
|
-
root.codegenNode =
|
|
3202
|
+
root.codegenNode = children[0];
|
|
3147
3203
|
}
|
|
3148
3204
|
} else if (children.length > 1) {
|
|
3149
3205
|
let patchFlag = 64;
|
|
@@ -3253,6 +3309,16 @@ function createStructuralDirectiveTransform(name, fn) {
|
|
|
3253
3309
|
|
|
3254
3310
|
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
3255
3311
|
const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
|
|
3312
|
+
const NewlineType = {
|
|
3313
|
+
"Start": 0,
|
|
3314
|
+
"0": "Start",
|
|
3315
|
+
"End": -1,
|
|
3316
|
+
"-1": "End",
|
|
3317
|
+
"None": -2,
|
|
3318
|
+
"-2": "None",
|
|
3319
|
+
"Unknown": -3,
|
|
3320
|
+
"-3": "Unknown"
|
|
3321
|
+
};
|
|
3256
3322
|
function createCodegenContext(ast, {
|
|
3257
3323
|
mode = "function",
|
|
3258
3324
|
prefixIdentifiers = mode === "module",
|
|
@@ -3291,7 +3357,7 @@ function createCodegenContext(ast, {
|
|
|
3291
3357
|
helper(key) {
|
|
3292
3358
|
return `_${helperNameMap[key]}`;
|
|
3293
3359
|
},
|
|
3294
|
-
push(code, newlineIndex = -2
|
|
3360
|
+
push(code, newlineIndex = -2, node) {
|
|
3295
3361
|
context.code += code;
|
|
3296
3362
|
},
|
|
3297
3363
|
indent() {
|
|
@@ -3309,7 +3375,7 @@ function createCodegenContext(ast, {
|
|
|
3309
3375
|
}
|
|
3310
3376
|
};
|
|
3311
3377
|
function newline(n) {
|
|
3312
|
-
context.push("\n" + ` `.repeat(n), 0
|
|
3378
|
+
context.push("\n" + ` `.repeat(n), 0);
|
|
3313
3379
|
}
|
|
3314
3380
|
return context;
|
|
3315
3381
|
}
|
|
@@ -3347,7 +3413,7 @@ function generate(ast, options = {}) {
|
|
|
3347
3413
|
push(
|
|
3348
3414
|
`const { ${helpers.map(aliasHelper).join(", ")} } = _Vue
|
|
3349
3415
|
`,
|
|
3350
|
-
-1
|
|
3416
|
+
-1
|
|
3351
3417
|
);
|
|
3352
3418
|
newline();
|
|
3353
3419
|
}
|
|
@@ -3377,7 +3443,7 @@ function generate(ast, options = {}) {
|
|
|
3377
3443
|
}
|
|
3378
3444
|
if (ast.components.length || ast.directives.length || ast.temps) {
|
|
3379
3445
|
push(`
|
|
3380
|
-
`, 0
|
|
3446
|
+
`, 0);
|
|
3381
3447
|
newline();
|
|
3382
3448
|
}
|
|
3383
3449
|
if (!ssr) {
|
|
@@ -3398,7 +3464,8 @@ function generate(ast, options = {}) {
|
|
|
3398
3464
|
ast,
|
|
3399
3465
|
code: context.code,
|
|
3400
3466
|
preamble: ``,
|
|
3401
|
-
map: context.map ? context.map.toJSON() : void 0
|
|
3467
|
+
map: context.map ? context.map.toJSON() : void 0,
|
|
3468
|
+
helpers: ast.helpers
|
|
3402
3469
|
};
|
|
3403
3470
|
}
|
|
3404
3471
|
function genFunctionPreamble(ast, context) {
|
|
@@ -3416,7 +3483,7 @@ function genFunctionPreamble(ast, context) {
|
|
|
3416
3483
|
if (helpers.length > 0) {
|
|
3417
3484
|
{
|
|
3418
3485
|
push(`const _Vue = ${VueBinding}
|
|
3419
|
-
`, -1
|
|
3486
|
+
`, -1);
|
|
3420
3487
|
if (ast.hoists.length) {
|
|
3421
3488
|
const staticHelpers = [
|
|
3422
3489
|
CREATE_VNODE,
|
|
@@ -3426,7 +3493,7 @@ function genFunctionPreamble(ast, context) {
|
|
|
3426
3493
|
CREATE_STATIC
|
|
3427
3494
|
].filter((helper) => helpers.includes(helper)).map(aliasHelper).join(", ");
|
|
3428
3495
|
push(`const { ${staticHelpers} } = _Vue
|
|
3429
|
-
`, -1
|
|
3496
|
+
`, -1);
|
|
3430
3497
|
}
|
|
3431
3498
|
}
|
|
3432
3499
|
}
|
|
@@ -3485,7 +3552,7 @@ function genNodeList(nodes, context, multilines = false, comma = true) {
|
|
|
3485
3552
|
for (let i = 0; i < nodes.length; i++) {
|
|
3486
3553
|
const node = nodes[i];
|
|
3487
3554
|
if (isString(node)) {
|
|
3488
|
-
push(node, -3
|
|
3555
|
+
push(node, -3);
|
|
3489
3556
|
} else if (isArray(node)) {
|
|
3490
3557
|
genNodeListAsArray(node, context);
|
|
3491
3558
|
} else {
|
|
@@ -3503,7 +3570,7 @@ function genNodeList(nodes, context, multilines = false, comma = true) {
|
|
|
3503
3570
|
}
|
|
3504
3571
|
function genNode(node, context) {
|
|
3505
3572
|
if (isString(node)) {
|
|
3506
|
-
context.push(node, -3
|
|
3573
|
+
context.push(node, -3);
|
|
3507
3574
|
return;
|
|
3508
3575
|
}
|
|
3509
3576
|
if (isSymbol(node)) {
|
|
@@ -3585,13 +3652,13 @@ function genNode(node, context) {
|
|
|
3585
3652
|
}
|
|
3586
3653
|
}
|
|
3587
3654
|
function genText(node, context) {
|
|
3588
|
-
context.push(JSON.stringify(node.content), -3
|
|
3655
|
+
context.push(JSON.stringify(node.content), -3, node);
|
|
3589
3656
|
}
|
|
3590
3657
|
function genExpression(node, context) {
|
|
3591
3658
|
const { content, isStatic } = node;
|
|
3592
3659
|
context.push(
|
|
3593
3660
|
isStatic ? JSON.stringify(content) : content,
|
|
3594
|
-
-3
|
|
3661
|
+
-3,
|
|
3595
3662
|
node
|
|
3596
3663
|
);
|
|
3597
3664
|
}
|
|
@@ -3606,7 +3673,7 @@ function genCompoundExpression(node, context) {
|
|
|
3606
3673
|
for (let i = 0; i < node.children.length; i++) {
|
|
3607
3674
|
const child = node.children[i];
|
|
3608
3675
|
if (isString(child)) {
|
|
3609
|
-
context.push(child, -3
|
|
3676
|
+
context.push(child, -3);
|
|
3610
3677
|
} else {
|
|
3611
3678
|
genNode(child, context);
|
|
3612
3679
|
}
|
|
@@ -3620,9 +3687,9 @@ function genExpressionAsPropertyKey(node, context) {
|
|
|
3620
3687
|
push(`]`);
|
|
3621
3688
|
} else if (node.isStatic) {
|
|
3622
3689
|
const text = isSimpleIdentifier(node.content) ? node.content : JSON.stringify(node.content);
|
|
3623
|
-
push(text, -2
|
|
3690
|
+
push(text, -2, node);
|
|
3624
3691
|
} else {
|
|
3625
|
-
push(`[${node.content}]`, -3
|
|
3692
|
+
push(`[${node.content}]`, -3, node);
|
|
3626
3693
|
}
|
|
3627
3694
|
}
|
|
3628
3695
|
function genComment(node, context) {
|
|
@@ -3632,7 +3699,7 @@ function genComment(node, context) {
|
|
|
3632
3699
|
}
|
|
3633
3700
|
push(
|
|
3634
3701
|
`${helper(CREATE_COMMENT)}(${JSON.stringify(node.content)})`,
|
|
3635
|
-
-3
|
|
3702
|
+
-3,
|
|
3636
3703
|
node
|
|
3637
3704
|
);
|
|
3638
3705
|
}
|
|
@@ -3672,7 +3739,7 @@ function genVNodeCall(node, context) {
|
|
|
3672
3739
|
push(PURE_ANNOTATION);
|
|
3673
3740
|
}
|
|
3674
3741
|
const callHelper = isBlock ? getVNodeBlockHelper(context.inSSR, isComponent) : getVNodeHelper(context.inSSR, isComponent);
|
|
3675
|
-
push(helper(callHelper) + `(`, -2
|
|
3742
|
+
push(helper(callHelper) + `(`, -2, node);
|
|
3676
3743
|
genNodeList(
|
|
3677
3744
|
genNullableArgs([tag, props, children, patchFlagString, dynamicProps]),
|
|
3678
3745
|
context
|
|
@@ -3700,7 +3767,7 @@ function genCallExpression(node, context) {
|
|
|
3700
3767
|
if (pure) {
|
|
3701
3768
|
push(PURE_ANNOTATION);
|
|
3702
3769
|
}
|
|
3703
|
-
push(callee + `(`, -2
|
|
3770
|
+
push(callee + `(`, -2, node);
|
|
3704
3771
|
genNodeList(node.arguments, context);
|
|
3705
3772
|
push(`)`);
|
|
3706
3773
|
}
|
|
@@ -3708,7 +3775,7 @@ function genObjectExpression(node, context) {
|
|
|
3708
3775
|
const { push, indent, deindent, newline } = context;
|
|
3709
3776
|
const { properties } = node;
|
|
3710
3777
|
if (!properties.length) {
|
|
3711
|
-
push(`{}`, -2
|
|
3778
|
+
push(`{}`, -2, node);
|
|
3712
3779
|
return;
|
|
3713
3780
|
}
|
|
3714
3781
|
const multilines = properties.length > 1 || !!(process.env.NODE_ENV !== "production") && properties.some((p) => p.value.type !== 4);
|
|
@@ -3736,7 +3803,7 @@ function genFunctionExpression(node, context) {
|
|
|
3736
3803
|
if (isSlot) {
|
|
3737
3804
|
push(`_${helperNameMap[WITH_CTX]}(`);
|
|
3738
3805
|
}
|
|
3739
|
-
push(`(`, -2
|
|
3806
|
+
push(`(`, -2, node);
|
|
3740
3807
|
if (isArray(params)) {
|
|
3741
3808
|
genNodeList(params, context);
|
|
3742
3809
|
} else if (params) {
|
|
@@ -3866,6 +3933,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
|
|
|
3866
3933
|
}
|
|
3867
3934
|
}
|
|
3868
3935
|
|
|
3936
|
+
const isLiteralWhitelisted = /* @__PURE__ */ makeMap("true,false,null,this");
|
|
3869
3937
|
const transformExpression = (node, context) => {
|
|
3870
3938
|
if (node.type === 5) {
|
|
3871
3939
|
node.content = processExpression(
|
|
@@ -4528,7 +4596,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
|
|
4528
4596
|
let prev;
|
|
4529
4597
|
while (j--) {
|
|
4530
4598
|
prev = children[j];
|
|
4531
|
-
if (prev.type !== 3) {
|
|
4599
|
+
if (prev.type !== 3 && isNonWhitespaceContent(prev)) {
|
|
4532
4600
|
break;
|
|
4533
4601
|
}
|
|
4534
4602
|
}
|
|
@@ -5799,4 +5867,4 @@ const BindingTypes = {
|
|
|
5799
5867
|
|
|
5800
5868
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
5801
5869
|
|
|
5802
|
-
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 };
|
|
5870
|
+
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, NewlineType, 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, defaultOnError, defaultOnWarn, errorMessages, extractIdentifiers, findDir, findProp, forAliasRE, generate, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getSelfName, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isConstantNode, isCoreComponent, isFnExpression, isFnExpressionBrowser, isFnExpressionNode, isFunctionType, isInDestructureAssignment, isInNewExpression, isLiteralWhitelisted, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticNode, 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.
|
|
3
|
+
"version": "3.6.0-alpha.1",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@babel/parser": "^7.27.
|
|
49
|
+
"@babel/parser": "^7.27.5",
|
|
50
50
|
"entities": "^4.5.0",
|
|
51
51
|
"estree-walker": "^2.0.2",
|
|
52
52
|
"source-map-js": "^1.2.1",
|
|
53
|
-
"@vue/shared": "3.
|
|
53
|
+
"@vue/shared": "3.6.0-alpha.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/types": "^7.27.
|
|
56
|
+
"@babel/types": "^7.27.6"
|
|
57
57
|
}
|
|
58
58
|
}
|