@vue/compiler-dom 3.4.0-alpha.4 → 3.4.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.
- package/dist/compiler-dom.cjs.js +1 -1
- package/dist/compiler-dom.cjs.prod.js +1 -1
- package/dist/compiler-dom.esm-browser.js +149 -142
- package/dist/compiler-dom.esm-browser.prod.js +1 -1
- package/dist/compiler-dom.esm-bundler.js +2 -2
- package/dist/compiler-dom.global.js +149 -141
- package/dist/compiler-dom.global.prod.js +1 -1
- package/package.json +3 -3
package/dist/compiler-dom.cjs.js
CHANGED
|
@@ -31,7 +31,7 @@ compilerCore.registerRuntimeHelpers({
|
|
|
31
31
|
const parserOptions = {
|
|
32
32
|
parseMode: "html",
|
|
33
33
|
isVoidTag: shared.isVoidTag,
|
|
34
|
-
isNativeTag: (tag) => shared.isHTMLTag(tag) || shared.isSVGTag(tag),
|
|
34
|
+
isNativeTag: (tag) => shared.isHTMLTag(tag) || shared.isSVGTag(tag) || shared.isMathMLTag(tag),
|
|
35
35
|
isPreTag: (tag) => tag === "pre",
|
|
36
36
|
decodeEntities: void 0,
|
|
37
37
|
isBuiltInComponent: (tag) => {
|
|
@@ -31,7 +31,7 @@ compilerCore.registerRuntimeHelpers({
|
|
|
31
31
|
const parserOptions = {
|
|
32
32
|
parseMode: "html",
|
|
33
33
|
isVoidTag: shared.isVoidTag,
|
|
34
|
-
isNativeTag: (tag) => shared.isHTMLTag(tag) || shared.isSVGTag(tag),
|
|
34
|
+
isNativeTag: (tag) => shared.isHTMLTag(tag) || shared.isSVGTag(tag) || shared.isMathMLTag(tag),
|
|
35
35
|
isPreTag: (tag) => tag === "pre",
|
|
36
36
|
decodeEntities: void 0,
|
|
37
37
|
isBuiltInComponent: (tag) => {
|
|
@@ -119,9 +119,11 @@ function parseStringStyle(cssText) {
|
|
|
119
119
|
|
|
120
120
|
const HTML_TAGS = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot";
|
|
121
121
|
const SVG_TAGS = "svg,animate,animateMotion,animateTransform,circle,clipPath,color-profile,defs,desc,discard,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,hatch,hatchpath,image,line,linearGradient,marker,mask,mesh,meshgradient,meshpatch,meshrow,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,set,solidcolor,stop,switch,symbol,text,textPath,title,tspan,unknown,use,view";
|
|
122
|
+
const MATH_TAGS = "math,maction,annotation,annotation-xml,menclose,merror,mfenced,mfrac,mi,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,semantics,mspace,msqrt,mstyle,msub,msup,msubsup,mtable,mtd,mtext,mtr,munder,munderover";
|
|
122
123
|
const VOID_TAGS = "area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr";
|
|
123
124
|
const isHTMLTag = /* @__PURE__ */ makeMap(HTML_TAGS);
|
|
124
125
|
const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
126
|
+
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
125
127
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
126
128
|
|
|
127
129
|
const FRAGMENT = Symbol(`Fragment` );
|
|
@@ -1478,16 +1480,16 @@ const ErrorCodes = {
|
|
|
1478
1480
|
"45": "X_INVALID_EXPRESSION",
|
|
1479
1481
|
"X_KEEP_ALIVE_INVALID_CHILDREN": 46,
|
|
1480
1482
|
"46": "X_KEEP_ALIVE_INVALID_CHILDREN",
|
|
1481
|
-
"
|
|
1482
|
-
"47": "
|
|
1483
|
-
"
|
|
1484
|
-
"48": "
|
|
1485
|
-
"
|
|
1486
|
-
"49": "
|
|
1487
|
-
"
|
|
1488
|
-
"50": "
|
|
1489
|
-
"
|
|
1490
|
-
"51": "
|
|
1483
|
+
"X_PREFIX_ID_NOT_SUPPORTED": 47,
|
|
1484
|
+
"47": "X_PREFIX_ID_NOT_SUPPORTED",
|
|
1485
|
+
"X_MODULE_MODE_NOT_SUPPORTED": 48,
|
|
1486
|
+
"48": "X_MODULE_MODE_NOT_SUPPORTED",
|
|
1487
|
+
"X_CACHE_HANDLER_NOT_SUPPORTED": 49,
|
|
1488
|
+
"49": "X_CACHE_HANDLER_NOT_SUPPORTED",
|
|
1489
|
+
"X_SCOPE_ID_NOT_SUPPORTED": 50,
|
|
1490
|
+
"50": "X_SCOPE_ID_NOT_SUPPORTED",
|
|
1491
|
+
"X_VNODE_HOOKS": 51,
|
|
1492
|
+
"51": "X_VNODE_HOOKS",
|
|
1491
1493
|
"__EXTEND_POINT__": 52,
|
|
1492
1494
|
"52": "__EXTEND_POINT__"
|
|
1493
1495
|
};
|
|
@@ -1543,16 +1545,134 @@ const errorMessages = {
|
|
|
1543
1545
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
|
|
1544
1546
|
[45]: `Error parsing JavaScript expression: `,
|
|
1545
1547
|
[46]: `<KeepAlive> expects exactly one child component.`,
|
|
1546
|
-
[
|
|
1548
|
+
[51]: `@vnode-* hooks in templates are deprecated. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support will be removed in 3.4.`,
|
|
1547
1549
|
// generic errors
|
|
1548
|
-
[
|
|
1549
|
-
[
|
|
1550
|
-
[
|
|
1551
|
-
[
|
|
1550
|
+
[47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
|
|
1551
|
+
[48]: `ES module mode is not supported in this build of compiler.`,
|
|
1552
|
+
[49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
1553
|
+
[50]: `"scopeId" option is only supported in module mode.`,
|
|
1552
1554
|
// just to fulfill types
|
|
1553
1555
|
[52]: ``
|
|
1554
1556
|
};
|
|
1555
1557
|
|
|
1558
|
+
function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
|
|
1559
|
+
{
|
|
1560
|
+
return;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
function isReferencedIdentifier(id, parent, parentStack) {
|
|
1564
|
+
{
|
|
1565
|
+
return false;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
function isInDestructureAssignment(parent, parentStack) {
|
|
1569
|
+
if (parent && (parent.type === "ObjectProperty" || parent.type === "ArrayPattern")) {
|
|
1570
|
+
let i = parentStack.length;
|
|
1571
|
+
while (i--) {
|
|
1572
|
+
const p = parentStack[i];
|
|
1573
|
+
if (p.type === "AssignmentExpression") {
|
|
1574
|
+
return true;
|
|
1575
|
+
} else if (p.type !== "ObjectProperty" && !p.type.endsWith("Pattern")) {
|
|
1576
|
+
break;
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
return false;
|
|
1581
|
+
}
|
|
1582
|
+
function walkFunctionParams(node, onIdent) {
|
|
1583
|
+
for (const p of node.params) {
|
|
1584
|
+
for (const id of extractIdentifiers(p)) {
|
|
1585
|
+
onIdent(id);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
function walkBlockDeclarations(block, onIdent) {
|
|
1590
|
+
for (const stmt of block.body) {
|
|
1591
|
+
if (stmt.type === "VariableDeclaration") {
|
|
1592
|
+
if (stmt.declare)
|
|
1593
|
+
continue;
|
|
1594
|
+
for (const decl of stmt.declarations) {
|
|
1595
|
+
for (const id of extractIdentifiers(decl.id)) {
|
|
1596
|
+
onIdent(id);
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
} else if (stmt.type === "FunctionDeclaration" || stmt.type === "ClassDeclaration") {
|
|
1600
|
+
if (stmt.declare || !stmt.id)
|
|
1601
|
+
continue;
|
|
1602
|
+
onIdent(stmt.id);
|
|
1603
|
+
} else if (stmt.type === "ForOfStatement" || stmt.type === "ForInStatement" || stmt.type === "ForStatement") {
|
|
1604
|
+
const variable = stmt.type === "ForStatement" ? stmt.init : stmt.left;
|
|
1605
|
+
if (variable && variable.type === "VariableDeclaration") {
|
|
1606
|
+
for (const decl of variable.declarations) {
|
|
1607
|
+
for (const id of extractIdentifiers(decl.id)) {
|
|
1608
|
+
onIdent(id);
|
|
1609
|
+
}
|
|
1610
|
+
}
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
}
|
|
1615
|
+
function extractIdentifiers(param, nodes = []) {
|
|
1616
|
+
switch (param.type) {
|
|
1617
|
+
case "Identifier":
|
|
1618
|
+
nodes.push(param);
|
|
1619
|
+
break;
|
|
1620
|
+
case "MemberExpression":
|
|
1621
|
+
let object = param;
|
|
1622
|
+
while (object.type === "MemberExpression") {
|
|
1623
|
+
object = object.object;
|
|
1624
|
+
}
|
|
1625
|
+
nodes.push(object);
|
|
1626
|
+
break;
|
|
1627
|
+
case "ObjectPattern":
|
|
1628
|
+
for (const prop of param.properties) {
|
|
1629
|
+
if (prop.type === "RestElement") {
|
|
1630
|
+
extractIdentifiers(prop.argument, nodes);
|
|
1631
|
+
} else {
|
|
1632
|
+
extractIdentifiers(prop.value, nodes);
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
break;
|
|
1636
|
+
case "ArrayPattern":
|
|
1637
|
+
param.elements.forEach((element) => {
|
|
1638
|
+
if (element)
|
|
1639
|
+
extractIdentifiers(element, nodes);
|
|
1640
|
+
});
|
|
1641
|
+
break;
|
|
1642
|
+
case "RestElement":
|
|
1643
|
+
extractIdentifiers(param.argument, nodes);
|
|
1644
|
+
break;
|
|
1645
|
+
case "AssignmentPattern":
|
|
1646
|
+
extractIdentifiers(param.left, nodes);
|
|
1647
|
+
break;
|
|
1648
|
+
}
|
|
1649
|
+
return nodes;
|
|
1650
|
+
}
|
|
1651
|
+
const isFunctionType = (node) => {
|
|
1652
|
+
return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
|
|
1653
|
+
};
|
|
1654
|
+
const isStaticProperty = (node) => node && (node.type === "ObjectProperty" || node.type === "ObjectMethod") && !node.computed;
|
|
1655
|
+
const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
|
|
1656
|
+
const TS_NODE_TYPES = [
|
|
1657
|
+
"TSAsExpression",
|
|
1658
|
+
// foo as number
|
|
1659
|
+
"TSTypeAssertion",
|
|
1660
|
+
// (<number>foo)
|
|
1661
|
+
"TSNonNullExpression",
|
|
1662
|
+
// foo!
|
|
1663
|
+
"TSInstantiationExpression",
|
|
1664
|
+
// foo<string>
|
|
1665
|
+
"TSSatisfiesExpression"
|
|
1666
|
+
// foo satisfies T
|
|
1667
|
+
];
|
|
1668
|
+
function unwrapTSNode(node) {
|
|
1669
|
+
if (TS_NODE_TYPES.includes(node.type)) {
|
|
1670
|
+
return unwrapTSNode(node.expression);
|
|
1671
|
+
} else {
|
|
1672
|
+
return node;
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1556
1676
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
1557
1677
|
function isCoreComponent(tag) {
|
|
1558
1678
|
switch (tag) {
|
|
@@ -2876,6 +2996,7 @@ function createTransformContext(root, {
|
|
|
2876
2996
|
const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/);
|
|
2877
2997
|
const context = {
|
|
2878
2998
|
// options
|
|
2999
|
+
filename,
|
|
2879
3000
|
selfName: nameMatch && capitalize(camelize(nameMatch[1])),
|
|
2880
3001
|
prefixIdentifiers,
|
|
2881
3002
|
hoistStatic: hoistStatic2,
|
|
@@ -3708,117 +3829,6 @@ function genCacheExpression(node, context) {
|
|
|
3708
3829
|
push(`)`);
|
|
3709
3830
|
}
|
|
3710
3831
|
|
|
3711
|
-
function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
|
|
3712
|
-
{
|
|
3713
|
-
return;
|
|
3714
|
-
}
|
|
3715
|
-
}
|
|
3716
|
-
function isReferencedIdentifier(id, parent, parentStack) {
|
|
3717
|
-
{
|
|
3718
|
-
return false;
|
|
3719
|
-
}
|
|
3720
|
-
}
|
|
3721
|
-
function isInDestructureAssignment(parent, parentStack) {
|
|
3722
|
-
if (parent && (parent.type === "ObjectProperty" || parent.type === "ArrayPattern")) {
|
|
3723
|
-
let i = parentStack.length;
|
|
3724
|
-
while (i--) {
|
|
3725
|
-
const p = parentStack[i];
|
|
3726
|
-
if (p.type === "AssignmentExpression") {
|
|
3727
|
-
return true;
|
|
3728
|
-
} else if (p.type !== "ObjectProperty" && !p.type.endsWith("Pattern")) {
|
|
3729
|
-
break;
|
|
3730
|
-
}
|
|
3731
|
-
}
|
|
3732
|
-
}
|
|
3733
|
-
return false;
|
|
3734
|
-
}
|
|
3735
|
-
function walkFunctionParams(node, onIdent) {
|
|
3736
|
-
for (const p of node.params) {
|
|
3737
|
-
for (const id of extractIdentifiers(p)) {
|
|
3738
|
-
onIdent(id);
|
|
3739
|
-
}
|
|
3740
|
-
}
|
|
3741
|
-
}
|
|
3742
|
-
function walkBlockDeclarations(block, onIdent) {
|
|
3743
|
-
for (const stmt of block.body) {
|
|
3744
|
-
if (stmt.type === "VariableDeclaration") {
|
|
3745
|
-
if (stmt.declare)
|
|
3746
|
-
continue;
|
|
3747
|
-
for (const decl of stmt.declarations) {
|
|
3748
|
-
for (const id of extractIdentifiers(decl.id)) {
|
|
3749
|
-
onIdent(id);
|
|
3750
|
-
}
|
|
3751
|
-
}
|
|
3752
|
-
} else if (stmt.type === "FunctionDeclaration" || stmt.type === "ClassDeclaration") {
|
|
3753
|
-
if (stmt.declare || !stmt.id)
|
|
3754
|
-
continue;
|
|
3755
|
-
onIdent(stmt.id);
|
|
3756
|
-
} else if (stmt.type === "ForOfStatement" || stmt.type === "ForInStatement" || stmt.type === "ForStatement") {
|
|
3757
|
-
const variable = stmt.type === "ForStatement" ? stmt.init : stmt.left;
|
|
3758
|
-
if (variable && variable.type === "VariableDeclaration") {
|
|
3759
|
-
for (const decl of variable.declarations) {
|
|
3760
|
-
for (const id of extractIdentifiers(decl.id)) {
|
|
3761
|
-
onIdent(id);
|
|
3762
|
-
}
|
|
3763
|
-
}
|
|
3764
|
-
}
|
|
3765
|
-
}
|
|
3766
|
-
}
|
|
3767
|
-
}
|
|
3768
|
-
function extractIdentifiers(param, nodes = []) {
|
|
3769
|
-
switch (param.type) {
|
|
3770
|
-
case "Identifier":
|
|
3771
|
-
nodes.push(param);
|
|
3772
|
-
break;
|
|
3773
|
-
case "MemberExpression":
|
|
3774
|
-
let object = param;
|
|
3775
|
-
while (object.type === "MemberExpression") {
|
|
3776
|
-
object = object.object;
|
|
3777
|
-
}
|
|
3778
|
-
nodes.push(object);
|
|
3779
|
-
break;
|
|
3780
|
-
case "ObjectPattern":
|
|
3781
|
-
for (const prop of param.properties) {
|
|
3782
|
-
if (prop.type === "RestElement") {
|
|
3783
|
-
extractIdentifiers(prop.argument, nodes);
|
|
3784
|
-
} else {
|
|
3785
|
-
extractIdentifiers(prop.value, nodes);
|
|
3786
|
-
}
|
|
3787
|
-
}
|
|
3788
|
-
break;
|
|
3789
|
-
case "ArrayPattern":
|
|
3790
|
-
param.elements.forEach((element) => {
|
|
3791
|
-
if (element)
|
|
3792
|
-
extractIdentifiers(element, nodes);
|
|
3793
|
-
});
|
|
3794
|
-
break;
|
|
3795
|
-
case "RestElement":
|
|
3796
|
-
extractIdentifiers(param.argument, nodes);
|
|
3797
|
-
break;
|
|
3798
|
-
case "AssignmentPattern":
|
|
3799
|
-
extractIdentifiers(param.left, nodes);
|
|
3800
|
-
break;
|
|
3801
|
-
}
|
|
3802
|
-
return nodes;
|
|
3803
|
-
}
|
|
3804
|
-
const isFunctionType = (node) => {
|
|
3805
|
-
return /Function(?:Expression|Declaration)$|Method$/.test(node.type);
|
|
3806
|
-
};
|
|
3807
|
-
const isStaticProperty = (node) => node && (node.type === "ObjectProperty" || node.type === "ObjectMethod") && !node.computed;
|
|
3808
|
-
const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
|
|
3809
|
-
const TS_NODE_TYPES = [
|
|
3810
|
-
"TSAsExpression",
|
|
3811
|
-
// foo as number
|
|
3812
|
-
"TSTypeAssertion",
|
|
3813
|
-
// (<number>foo)
|
|
3814
|
-
"TSNonNullExpression",
|
|
3815
|
-
// foo!
|
|
3816
|
-
"TSInstantiationExpression",
|
|
3817
|
-
// foo<string>
|
|
3818
|
-
"TSSatisfiesExpression"
|
|
3819
|
-
// foo satisfies T
|
|
3820
|
-
];
|
|
3821
|
-
|
|
3822
3832
|
const prohibitedKeywordRE = new RegExp(
|
|
3823
3833
|
"\\b" + "arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield".split(",").join("\\b|\\b") + "\\b"
|
|
3824
3834
|
);
|
|
@@ -5232,7 +5242,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
5232
5242
|
if (arg.isStatic) {
|
|
5233
5243
|
let rawName = arg.content;
|
|
5234
5244
|
if (rawName.startsWith("vnode")) {
|
|
5235
|
-
context.onError(createCompilerError(
|
|
5245
|
+
context.onError(createCompilerError(51, arg.loc));
|
|
5236
5246
|
}
|
|
5237
5247
|
if (rawName.startsWith("vue:")) {
|
|
5238
5248
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
@@ -5713,24 +5723,26 @@ function baseCompile(source, options = {}) {
|
|
|
5713
5723
|
const isModuleMode = options.mode === "module";
|
|
5714
5724
|
{
|
|
5715
5725
|
if (options.prefixIdentifiers === true) {
|
|
5716
|
-
onError(createCompilerError(
|
|
5726
|
+
onError(createCompilerError(47));
|
|
5717
5727
|
} else if (isModuleMode) {
|
|
5718
|
-
onError(createCompilerError(
|
|
5728
|
+
onError(createCompilerError(48));
|
|
5719
5729
|
}
|
|
5720
5730
|
}
|
|
5721
5731
|
const prefixIdentifiers = false;
|
|
5722
5732
|
if (options.cacheHandlers) {
|
|
5723
|
-
onError(createCompilerError(
|
|
5733
|
+
onError(createCompilerError(49));
|
|
5724
5734
|
}
|
|
5725
5735
|
if (options.scopeId && !isModuleMode) {
|
|
5726
|
-
onError(createCompilerError(
|
|
5736
|
+
onError(createCompilerError(50));
|
|
5727
5737
|
}
|
|
5728
|
-
const
|
|
5738
|
+
const resolvedOptions = extend({}, options, {
|
|
5739
|
+
prefixIdentifiers
|
|
5740
|
+
});
|
|
5741
|
+
const ast = isString(source) ? baseParse(source, resolvedOptions) : source;
|
|
5729
5742
|
const [nodeTransforms, directiveTransforms] = getBaseTransformPreset();
|
|
5730
5743
|
transform(
|
|
5731
5744
|
ast,
|
|
5732
|
-
extend({},
|
|
5733
|
-
prefixIdentifiers,
|
|
5745
|
+
extend({}, resolvedOptions, {
|
|
5734
5746
|
nodeTransforms: [
|
|
5735
5747
|
...nodeTransforms,
|
|
5736
5748
|
...options.nodeTransforms || []
|
|
@@ -5744,12 +5756,7 @@ function baseCompile(source, options = {}) {
|
|
|
5744
5756
|
)
|
|
5745
5757
|
})
|
|
5746
5758
|
);
|
|
5747
|
-
return generate(
|
|
5748
|
-
ast,
|
|
5749
|
-
extend({}, options, {
|
|
5750
|
-
prefixIdentifiers
|
|
5751
|
-
})
|
|
5752
|
-
);
|
|
5759
|
+
return generate(ast, resolvedOptions);
|
|
5753
5760
|
}
|
|
5754
5761
|
|
|
5755
5762
|
const BindingTypes = {
|
|
@@ -5807,7 +5814,7 @@ function decodeHtmlBrowser(raw, asAttr = false) {
|
|
|
5807
5814
|
const parserOptions = {
|
|
5808
5815
|
parseMode: "html",
|
|
5809
5816
|
isVoidTag,
|
|
5810
|
-
isNativeTag: (tag) => isHTMLTag(tag) || isSVGTag(tag),
|
|
5817
|
+
isNativeTag: (tag) => isHTMLTag(tag) || isSVGTag(tag) || isMathMLTag(tag),
|
|
5811
5818
|
isPreTag: (tag) => tag === "pre",
|
|
5812
5819
|
decodeEntities: decodeHtmlBrowser ,
|
|
5813
5820
|
isBuiltInComponent: (tag) => {
|
|
@@ -6263,4 +6270,4 @@ function parse(template, options = {}) {
|
|
|
6263
6270
|
return baseParse(template, extend({}, parserOptions, options));
|
|
6264
6271
|
}
|
|
6265
6272
|
|
|
6266
|
-
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, DOMDirectiveTransforms, DOMErrorCodes, DOMErrorMessages, DOMNodeTransforms, 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, TRANSITION, TRANSITION_GROUP, TS_NODE_TYPES, UNREF, V_MODEL_CHECKBOX, V_MODEL_DYNAMIC, V_MODEL_RADIO, V_MODEL_SELECT, V_MODEL_TEXT, V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS, V_SHOW, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, compile, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createDOMCompilerError, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, errorMessages, extractIdentifiers, findDir, findProp, forAliasRE, generate, generateCodeFrame, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isCoreComponent, isFunctionType, isInDestructureAssignment, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText$1 as isText, isVSlot, locStub, noopDirectiveTransform, parse, parserOptions, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel$1 as transformModel, transformOn$1 as transformOn, transformStyle, traverseNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|
|
6273
|
+
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, DOMDirectiveTransforms, DOMErrorCodes, DOMErrorMessages, DOMNodeTransforms, 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, TRANSITION, TRANSITION_GROUP, TS_NODE_TYPES, UNREF, V_MODEL_CHECKBOX, V_MODEL_DYNAMIC, V_MODEL_RADIO, V_MODEL_SELECT, V_MODEL_TEXT, V_ON_WITH_KEYS, V_ON_WITH_MODIFIERS, V_SHOW, WITH_CTX, WITH_DIRECTIVES, WITH_MEMO, advancePositionWithClone, advancePositionWithMutation, assert, baseCompile, baseParse, buildDirectiveArgs, buildProps, buildSlots, checkCompatEnabled, compile, convertToBlock, createArrayExpression, createAssignmentExpression, createBlockStatement, createCacheExpression, createCallExpression, createCompilerError, createCompoundExpression, createConditionalExpression, createDOMCompilerError, createForLoopParams, createFunctionExpression, createIfStatement, createInterpolation, createObjectExpression, createObjectProperty, createReturnStatement, createRoot, createSequenceExpression, createSimpleExpression, createStructuralDirectiveTransform, createTemplateLiteral, createTransformContext, createVNodeCall, errorMessages, extractIdentifiers, findDir, findProp, forAliasRE, generate, generateCodeFrame, getBaseTransformPreset, getConstantType, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isCoreComponent, isFunctionType, isInDestructureAssignment, isMemberExpression, isMemberExpressionBrowser, isMemberExpressionNode, isReferencedIdentifier, isSimpleIdentifier, isSlotOutlet, isStaticArgOf, isStaticExp, isStaticProperty, isStaticPropertyKey, isTemplateNode, isText$1 as isText, isVSlot, locStub, noopDirectiveTransform, parse, parserOptions, processExpression, processFor, processIf, processSlotOutlet, registerRuntimeHelpers, resolveComponentType, stringifyExpression, toValidAssetId, trackSlotScopes, trackVForSlotScopes, transform, transformBind, transformElement, transformExpression, transformModel$1 as transformModel, transformOn$1 as transformOn, transformStyle, traverseNode, unwrapTSNode, walkBlockDeclarations, walkFunctionParams, walkIdentifiers, warnDeprecation };
|