@dcloudio/uni-cli-shared 3.0.0-5020320260806002 → 3.0.0-5020420260811002
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/resolve.d.ts +8 -0
- package/dist/resolve.js +78 -2
- package/lib/dom2/@intlify/core-base/LICENSE +20 -0
- package/lib/dom2/@intlify/core-base/dist/core-base.mjs +1903 -0
- package/lib/dom2/@intlify/core-base/package.json +11 -0
- package/lib/dom2/@intlify/message-compiler/LICENSE +20 -0
- package/lib/dom2/@intlify/message-compiler/dist/message-compiler.mjs +1550 -0
- package/lib/dom2/@intlify/message-compiler/package.json +11 -0
- package/lib/dom2/@intlify/shared/LICENSE +20 -0
- package/lib/dom2/@intlify/shared/dist/shared.mjs +333 -0
- package/lib/dom2/@intlify/shared/package.json +11 -0
- package/lib/dom2/@vue/devtools-api/LICENSE +21 -0
- package/lib/dom2/@vue/devtools-api/dist/index.js +26 -0
- package/lib/dom2/@vue/devtools-api/package.json +12 -0
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.cjs.prod.js +71 -68
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.d.ts +2 -20
- package/lib/dom2/app/@vue/compiler-core/dist/compiler-core.esm-bundler.js +53 -29
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.js +23 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +22 -12
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +80 -30
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +20 -3
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.js +369 -317
- package/lib/dom2/app/@vue/compiler-dom/dist/compiler-dom.global.prod.js +5 -5
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +2032 -5522
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.d.ts +11114 -33
- package/lib/dom2/app/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +2825 -4668
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.cjs.js +905 -2413
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.d.ts +378 -544
- package/lib/dom2/app/@vue/compiler-vapor/dist/compiler-vapor.esm-browser.js +998 -2549
- package/lib/dom2/app/@vue/compiler-vapor-dom2/dist/compiler-vapor-dom2.cjs.js +1 -1
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.cjs.prod.js +26 -92
- package/lib/dom2/app/@vue/shared/dist/shared.d.ts +2 -94
- package/lib/dom2/app/@vue/shared/dist/shared.esm-bundler.js +24 -83
- package/lib/dom2/pinia/LICENSE +21 -0
- package/lib/dom2/pinia/dist/pinia.mjs +1941 -0
- package/lib/dom2/pinia/package.json +11 -0
- package/lib/dom2/vue-i18n/LICENSE +20 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.mjs +2501 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.esm-bundler.js +1 -0
- package/lib/dom2/vue-i18n/dist/vue-i18n.runtime.mjs +2501 -0
- package/lib/dom2/vue-i18n/package.json +12 -0
- package/package.json +5 -5
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.6.0-beta.
|
|
2
|
+
* @vue/compiler-dom v3.6.0-beta.5
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
6
|
var VueCompilerDOM = (function(exports) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
9
|
+
|
|
10
|
+
//#region packages/shared/src/makeMap.ts
|
|
11
|
+
/**
|
|
10
12
|
* Make a map and return a function for checking if a key
|
|
11
13
|
* is in that map.
|
|
12
14
|
* IMPORTANT: all calls of this function must be prefixed with
|
|
@@ -19,10 +21,11 @@ var VueCompilerDOM = (function(exports) {
|
|
|
19
21
|
for (const key of str.split(",")) map[key] = 1;
|
|
20
22
|
return (val) => val in map;
|
|
21
23
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region packages/shared/src/general.ts
|
|
24
27
|
const EMPTY_OBJ = Object.freeze({});
|
|
25
|
-
Object.freeze([]);
|
|
28
|
+
const EMPTY_ARR = Object.freeze([]);
|
|
26
29
|
const NOOP = () => {};
|
|
27
30
|
/**
|
|
28
31
|
* Always return false.
|
|
@@ -48,6 +51,11 @@ var VueCompilerDOM = (function(exports) {
|
|
|
48
51
|
* @private
|
|
49
52
|
*/
|
|
50
53
|
const camelize = cacheStringFunction((str) => str.replace(camelizeRE, camelizeReplacer));
|
|
54
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
55
|
+
/**
|
|
56
|
+
* @private
|
|
57
|
+
*/
|
|
58
|
+
const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
|
|
51
59
|
/**
|
|
52
60
|
* @private
|
|
53
61
|
*/
|
|
@@ -69,9 +77,10 @@ var VueCompilerDOM = (function(exports) {
|
|
|
69
77
|
const getModifierPropName = (name) => {
|
|
70
78
|
return `${name === "modelValue" || name === "model-value" ? "model" : name}Modifiers${name === "model" ? "$" : ""}`;
|
|
71
79
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
80
|
+
|
|
81
|
+
//#endregion
|
|
82
|
+
//#region packages/shared/src/patchFlags.ts
|
|
83
|
+
/**
|
|
75
84
|
* dev only flag -> name mapping
|
|
76
85
|
*/
|
|
77
86
|
const PatchFlagNames = {
|
|
@@ -90,9 +99,10 @@ var VueCompilerDOM = (function(exports) {
|
|
|
90
99
|
[-1]: `CACHED`,
|
|
91
100
|
[-2]: `BAIL`
|
|
92
101
|
};
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
102
|
+
|
|
103
|
+
//#endregion
|
|
104
|
+
//#region packages/shared/src/slotFlags.ts
|
|
105
|
+
/**
|
|
96
106
|
* Dev only
|
|
97
107
|
*/
|
|
98
108
|
const slotFlagsText = {
|
|
@@ -100,8 +110,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
100
110
|
[2]: "DYNAMIC",
|
|
101
111
|
[3]: "FORWARDED"
|
|
102
112
|
};
|
|
103
|
-
|
|
104
|
-
|
|
113
|
+
|
|
114
|
+
//#endregion
|
|
115
|
+
//#region packages/shared/src/codeframe.ts
|
|
105
116
|
const range = 2;
|
|
106
117
|
function generateCodeFrame(source, start = 0, end = source.length) {
|
|
107
118
|
start = Math.max(0, Math.min(start, source.length));
|
|
@@ -138,8 +149,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
138
149
|
}
|
|
139
150
|
return res.join("\n");
|
|
140
151
|
}
|
|
141
|
-
|
|
142
|
-
|
|
152
|
+
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region packages/shared/src/normalizeProp.ts
|
|
143
155
|
const listDelimiterRE = /;(?![^(]*\))/g;
|
|
144
156
|
const propertyDelimiterRE = /:([^]+)/;
|
|
145
157
|
const styleCommentRE = /\/\*[^]*?\*\//g;
|
|
@@ -153,8 +165,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
153
165
|
});
|
|
154
166
|
return ret;
|
|
155
167
|
}
|
|
156
|
-
|
|
157
|
-
|
|
168
|
+
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region packages/shared/src/domTagConfig.ts
|
|
158
171
|
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";
|
|
159
172
|
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";
|
|
160
173
|
const MATH_TAGS = "annotation,annotation-xml,maction,maligngroup,malignmark,math,menclose,merror,mfenced,mfrac,mfraction,mglyph,mi,mlabeledtr,mlongdiv,mmultiscripts,mn,mo,mover,mpadded,mphantom,mprescripts,mroot,mrow,ms,mscarries,mscarry,msgroup,msline,mspace,msqrt,msrow,mstack,mstyle,msub,msubsup,msup,mtable,mtd,mtext,mtr,munder,munderover,none,semantics";
|
|
@@ -179,8 +192,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
179
192
|
* Do NOT use in runtime code paths unless behind `__DEV__` flag.
|
|
180
193
|
*/
|
|
181
194
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
182
|
-
|
|
183
|
-
|
|
195
|
+
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region packages/compiler-core/src/runtimeHelpers.ts
|
|
184
198
|
const FRAGMENT = Symbol(`Fragment`);
|
|
185
199
|
const TELEPORT = Symbol(`Teleport`);
|
|
186
200
|
const SUSPENSE = Symbol(`Suspense`);
|
|
@@ -273,8 +287,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
273
287
|
helperNameMap[s] = helpers[s];
|
|
274
288
|
});
|
|
275
289
|
}
|
|
276
|
-
|
|
277
|
-
|
|
290
|
+
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region packages/compiler-core/src/ast.ts
|
|
278
293
|
const NodeTypes = {
|
|
279
294
|
"ROOT": 0,
|
|
280
295
|
"0": "ROOT",
|
|
@@ -550,8 +565,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
550
565
|
helper(getVNodeBlockHelper(inSSR, node.isComponent));
|
|
551
566
|
}
|
|
552
567
|
}
|
|
553
|
-
|
|
554
|
-
|
|
568
|
+
|
|
569
|
+
//#endregion
|
|
570
|
+
//#region packages/compiler-core/src/tokenizer.ts
|
|
555
571
|
const defaultDelimitersOpen = new Uint8Array([123, 123]);
|
|
556
572
|
const defaultDelimitersClose = new Uint8Array([125, 125]);
|
|
557
573
|
/**
|
|
@@ -1258,8 +1274,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1258
1274
|
}
|
|
1259
1275
|
emitCodePoint(cp, consumed) {}
|
|
1260
1276
|
};
|
|
1261
|
-
|
|
1262
|
-
|
|
1277
|
+
|
|
1278
|
+
//#endregion
|
|
1279
|
+
//#region packages/compiler-core/src/compat/compatConfig.ts
|
|
1263
1280
|
const CompilerDeprecationTypes = {
|
|
1264
1281
|
"COMPILER_IS_ON_ELEMENT": "COMPILER_IS_ON_ELEMENT",
|
|
1265
1282
|
"COMPILER_V_BIND_SYNC": "COMPILER_V_BIND_SYNC",
|
|
@@ -1325,8 +1342,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1325
1342
|
if (loc) err.loc = loc;
|
|
1326
1343
|
context.onWarn(err);
|
|
1327
1344
|
}
|
|
1328
|
-
|
|
1329
|
-
|
|
1345
|
+
|
|
1346
|
+
//#endregion
|
|
1347
|
+
//#region packages/compiler-core/src/errors.ts
|
|
1330
1348
|
function defaultOnError(error) {
|
|
1331
1349
|
throw error;
|
|
1332
1350
|
}
|
|
@@ -1509,9 +1527,10 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1509
1527
|
[51]: `"scopeId" option is only supported in module mode.`,
|
|
1510
1528
|
[54]: ``
|
|
1511
1529
|
};
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1530
|
+
|
|
1531
|
+
//#endregion
|
|
1532
|
+
//#region packages/compiler-core/src/babelUtils.ts
|
|
1533
|
+
/**
|
|
1515
1534
|
* Return value indicates whether the AST walked can be a constant
|
|
1516
1535
|
*/
|
|
1517
1536
|
function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = Object.create(null)) {}
|
|
@@ -1646,8 +1665,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1646
1665
|
}
|
|
1647
1666
|
return false;
|
|
1648
1667
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1668
|
+
|
|
1669
|
+
//#endregion
|
|
1670
|
+
//#region packages/compiler-core/src/utils.ts
|
|
1651
1671
|
const isStaticExp = (p) => p.type === 4 && p.isStatic;
|
|
1652
1672
|
function isCoreComponent(tag) {
|
|
1653
1673
|
switch (tag) {
|
|
@@ -1682,7 +1702,7 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1682
1702
|
*/
|
|
1683
1703
|
const isMemberExpressionBrowser = (exp) => {
|
|
1684
1704
|
const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
|
|
1685
|
-
let state =
|
|
1705
|
+
let state = MemberExpLexState.inMemberExp;
|
|
1686
1706
|
let stateStack = [];
|
|
1687
1707
|
let currentOpenBracketCount = 0;
|
|
1688
1708
|
let currentOpenParensCount = 0;
|
|
@@ -1690,31 +1710,31 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1690
1710
|
for (let i = 0; i < path.length; i++) {
|
|
1691
1711
|
const char = path.charAt(i);
|
|
1692
1712
|
switch (state) {
|
|
1693
|
-
case
|
|
1713
|
+
case MemberExpLexState.inMemberExp:
|
|
1694
1714
|
if (char === "[") {
|
|
1695
1715
|
stateStack.push(state);
|
|
1696
|
-
state =
|
|
1716
|
+
state = MemberExpLexState.inBrackets;
|
|
1697
1717
|
currentOpenBracketCount++;
|
|
1698
1718
|
} else if (char === "(") {
|
|
1699
1719
|
stateStack.push(state);
|
|
1700
|
-
state =
|
|
1720
|
+
state = MemberExpLexState.inParens;
|
|
1701
1721
|
currentOpenParensCount++;
|
|
1702
1722
|
} else if (!(i === 0 ? validFirstIdentCharRE : validIdentCharRE).test(char)) return false;
|
|
1703
1723
|
break;
|
|
1704
|
-
case
|
|
1724
|
+
case MemberExpLexState.inBrackets:
|
|
1705
1725
|
if (char === `'` || char === `"` || char === "`") {
|
|
1706
1726
|
stateStack.push(state);
|
|
1707
|
-
state =
|
|
1727
|
+
state = MemberExpLexState.inString;
|
|
1708
1728
|
currentStringType = char;
|
|
1709
1729
|
} else if (char === `[`) currentOpenBracketCount++;
|
|
1710
1730
|
else if (char === `]`) {
|
|
1711
1731
|
if (!--currentOpenBracketCount) state = stateStack.pop();
|
|
1712
1732
|
}
|
|
1713
1733
|
break;
|
|
1714
|
-
case
|
|
1734
|
+
case MemberExpLexState.inParens:
|
|
1715
1735
|
if (char === `'` || char === `"` || char === "`") {
|
|
1716
1736
|
stateStack.push(state);
|
|
1717
|
-
state =
|
|
1737
|
+
state = MemberExpLexState.inString;
|
|
1718
1738
|
currentStringType = char;
|
|
1719
1739
|
} else if (char === `(`) currentOpenParensCount++;
|
|
1720
1740
|
else if (char === `)`) {
|
|
@@ -1722,7 +1742,7 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1722
1742
|
if (!--currentOpenParensCount) state = stateStack.pop();
|
|
1723
1743
|
}
|
|
1724
1744
|
break;
|
|
1725
|
-
case
|
|
1745
|
+
case MemberExpLexState.inString:
|
|
1726
1746
|
if (char === currentStringType) {
|
|
1727
1747
|
state = stateStack.pop();
|
|
1728
1748
|
currentStringType = null;
|
|
@@ -1913,8 +1933,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
1913
1933
|
function isCommentOrWhitespace(node) {
|
|
1914
1934
|
return node.type === 3 || isWhitespaceText(node);
|
|
1915
1935
|
}
|
|
1916
|
-
|
|
1917
|
-
|
|
1936
|
+
|
|
1937
|
+
//#endregion
|
|
1938
|
+
//#region packages/compiler-core/src/parser.ts
|
|
1918
1939
|
const defaultParserOptions = {
|
|
1919
1940
|
parseMode: "base",
|
|
1920
1941
|
ns: 0,
|
|
@@ -2094,7 +2115,8 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2094
2115
|
};
|
|
2095
2116
|
if (tokenizer.inSFCRoot && currentOpenTag.tag === "template" && currentProp.name === "lang" && currentAttrValue && currentAttrValue !== "html") tokenizer.enterRCDATA(toCharCodes(`</template`), 0);
|
|
2096
2117
|
} else {
|
|
2097
|
-
|
|
2118
|
+
let expParseMode = ExpParseMode.Normal;
|
|
2119
|
+
currentProp.exp = createExp(currentAttrValue, false, getLoc(currentAttrStartIndex, currentAttrEndIndex), 0, expParseMode);
|
|
2098
2120
|
if (currentProp.name === "for") currentProp.forParseResult = parseForExpression(currentProp.exp);
|
|
2099
2121
|
let syncIndex = -1;
|
|
2100
2122
|
if (currentProp.name === "bind" && (syncIndex = currentProp.modifiers.findIndex((mod) => mod.content === "sync")) > -1 && checkCompatEnabled("COMPILER_V_BIND_SYNC", currentOptions, currentProp.loc, currentProp.arg.loc.source)) {
|
|
@@ -2154,7 +2176,7 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2154
2176
|
}
|
|
2155
2177
|
},
|
|
2156
2178
|
oncdata(start, end) {
|
|
2157
|
-
if (
|
|
2179
|
+
if (stack[0].ns !== 0) onText(getSlice(start, end), start, end);
|
|
2158
2180
|
else emitError(1, start - 9);
|
|
2159
2181
|
},
|
|
2160
2182
|
onprocessinginstruction(start) {
|
|
@@ -2171,7 +2193,7 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2171
2193
|
const [, LHS, RHS] = inMatch;
|
|
2172
2194
|
const createAliasExpression = (content, offset, asParam = false) => {
|
|
2173
2195
|
const start = loc.start.offset + offset;
|
|
2174
|
-
return createExp(content, false, getLoc(start, start + content.length), 0, asParam ?
|
|
2196
|
+
return createExp(content, false, getLoc(start, start + content.length), 0, asParam ? ExpParseMode.Params : ExpParseMode.Normal);
|
|
2175
2197
|
};
|
|
2176
2198
|
const result = {
|
|
2177
2199
|
source: createAliasExpression(RHS.trim(), exp.indexOf(RHS, LHS.length)),
|
|
@@ -2414,7 +2436,7 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2414
2436
|
ExpParseMode[ExpParseMode["Skip"] = 3] = "Skip";
|
|
2415
2437
|
return ExpParseMode;
|
|
2416
2438
|
}(ExpParseMode || {});
|
|
2417
|
-
function createExp(content, isStatic = false, loc, constType = 0, parseMode =
|
|
2439
|
+
function createExp(content, isStatic = false, loc, constType = 0, parseMode = ExpParseMode.Normal) {
|
|
2418
2440
|
return createSimpleExpression(content, isStatic, loc, constType);
|
|
2419
2441
|
}
|
|
2420
2442
|
function emitError(code, index, message) {
|
|
@@ -2452,8 +2474,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2452
2474
|
currentRoot = null;
|
|
2453
2475
|
return root;
|
|
2454
2476
|
}
|
|
2455
|
-
|
|
2456
|
-
|
|
2477
|
+
|
|
2478
|
+
//#endregion
|
|
2479
|
+
//#region packages/compiler-core/src/transforms/cacheStatic.ts
|
|
2457
2480
|
function cacheStatic(root, context) {
|
|
2458
2481
|
walk(root, void 0, context, !!getSingleElementRoot(root));
|
|
2459
2482
|
}
|
|
@@ -2647,15 +2670,16 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2647
2670
|
const codegenNode = node.codegenNode;
|
|
2648
2671
|
if (codegenNode.type === 13) return codegenNode.props;
|
|
2649
2672
|
}
|
|
2650
|
-
|
|
2651
|
-
|
|
2673
|
+
|
|
2674
|
+
//#endregion
|
|
2675
|
+
//#region packages/compiler-core/src/transform.ts
|
|
2652
2676
|
function getSelfName(filename) {
|
|
2653
2677
|
const nameMatch = filename.replace(/\?.*$/, "").match(/([^/\\]+)\.\w+$/);
|
|
2654
2678
|
return nameMatch ? capitalize(camelize(nameMatch[1])) : null;
|
|
2655
2679
|
}
|
|
2656
2680
|
function createTransformContext(root, { filename = "", prefixIdentifiers = false, hoistStatic = false, hmr = false, cacheHandlers = false, nodeTransforms = [], directiveTransforms = {}, transformHoist = null, isBuiltInComponent = NOOP, isCustomElement = NOOP, isUserComponent = (element) => {
|
|
2657
2681
|
return element.tagType === 1;
|
|
2658
|
-
}, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false,
|
|
2682
|
+
}, expressionPlugins = [], scopeId = null, slotted = true, ssr = false, inSSR = false, ssrCssVars = ``, bindingMetadata = EMPTY_OBJ, inline = false, isTS = false, onError = defaultOnError, onWarn = defaultOnWarn, compatConfig }) {
|
|
2659
2683
|
const context = {
|
|
2660
2684
|
filename,
|
|
2661
2685
|
selfName: getSelfName(filename),
|
|
@@ -2678,7 +2702,6 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2678
2702
|
bindingMetadata,
|
|
2679
2703
|
inline,
|
|
2680
2704
|
isTS,
|
|
2681
|
-
eventDelegation,
|
|
2682
2705
|
onError,
|
|
2683
2706
|
onWarn,
|
|
2684
2707
|
compatConfig,
|
|
@@ -2690,10 +2713,8 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2690
2713
|
imports: [],
|
|
2691
2714
|
cached: [],
|
|
2692
2715
|
constantCache: /* @__PURE__ */ new WeakMap(),
|
|
2693
|
-
vForMemoKeyedNodes: /* @__PURE__ */ new WeakSet(),
|
|
2694
2716
|
temps: 0,
|
|
2695
2717
|
identifiers: Object.create(null),
|
|
2696
|
-
identifierScopes: Object.create(null),
|
|
2697
2718
|
scopes: {
|
|
2698
2719
|
vFor: 0,
|
|
2699
2720
|
vSlot: 0,
|
|
@@ -2744,12 +2765,8 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2744
2765
|
context.parent.children.splice(removalIndex, 1);
|
|
2745
2766
|
},
|
|
2746
2767
|
onNodeRemoved: NOOP,
|
|
2747
|
-
addIdentifiers(exp
|
|
2768
|
+
addIdentifiers(exp) {},
|
|
2748
2769
|
removeIdentifiers(exp) {},
|
|
2749
|
-
isSlotScopeIdentifier(name) {
|
|
2750
|
-
const scopes = context.identifierScopes[name];
|
|
2751
|
-
return scopes ? scopes[scopes.length - 1] === "slot" : false;
|
|
2752
|
-
},
|
|
2753
2770
|
hoist(exp) {
|
|
2754
2771
|
if (isString(exp)) exp = createSimpleExpression(exp);
|
|
2755
2772
|
context.hoists.push(exp);
|
|
@@ -2864,8 +2881,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
2864
2881
|
}
|
|
2865
2882
|
};
|
|
2866
2883
|
}
|
|
2867
|
-
|
|
2868
|
-
|
|
2884
|
+
|
|
2885
|
+
//#endregion
|
|
2886
|
+
//#region packages/compiler-core/src/codegen.ts
|
|
2869
2887
|
const PURE_ANNOTATION = `/*@__PURE__*/`;
|
|
2870
2888
|
const aliasHelper = (s) => `${helperNameMap[s]}: _${helperNameMap[s]}`;
|
|
2871
2889
|
const NewlineType = {
|
|
@@ -3113,7 +3131,6 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3113
3131
|
case 24: break;
|
|
3114
3132
|
case 25: break;
|
|
3115
3133
|
case 26: break;
|
|
3116
|
-
/* v8 ignore start */
|
|
3117
3134
|
case 10: break;
|
|
3118
3135
|
default:
|
|
3119
3136
|
assert(false, `unhandled codegen node type: ${node.type}`);
|
|
@@ -3299,8 +3316,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3299
3316
|
push(`)`);
|
|
3300
3317
|
if (needArraySpread) push(`)]`);
|
|
3301
3318
|
}
|
|
3302
|
-
|
|
3303
|
-
|
|
3319
|
+
|
|
3320
|
+
//#endregion
|
|
3321
|
+
//#region packages/compiler-core/src/validateExpression.ts
|
|
3304
3322
|
const prohibitedKeywordRE = new RegExp("\\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");
|
|
3305
3323
|
const stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
|
|
3306
3324
|
/**
|
|
@@ -3320,8 +3338,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3320
3338
|
context.onError(createCompilerError(46, node.loc, void 0, message));
|
|
3321
3339
|
}
|
|
3322
3340
|
}
|
|
3323
|
-
|
|
3324
|
-
|
|
3341
|
+
|
|
3342
|
+
//#endregion
|
|
3343
|
+
//#region packages/compiler-core/src/transforms/transformExpression.ts
|
|
3325
3344
|
const isLiteralWhitelisted = /* @__PURE__ */ makeMap("true,false,null,this");
|
|
3326
3345
|
const transformExpression = (node, context) => {
|
|
3327
3346
|
if (node.type === 5) node.content = processExpression(node.content, context);
|
|
@@ -3332,7 +3351,7 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3332
3351
|
if (dir.type === 7 && dir.name !== "for") {
|
|
3333
3352
|
const exp = dir.exp;
|
|
3334
3353
|
const arg = dir.arg;
|
|
3335
|
-
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo &&
|
|
3354
|
+
if (exp && exp.type === 4 && !(dir.name === "on" && arg) && !(memo && arg && arg.type === 4 && arg.content === "key")) dir.exp = processExpression(exp, context, dir.name === "slot");
|
|
3336
3355
|
if (arg && arg.type === 4 && !arg.isStatic) dir.arg = processExpression(arg, context);
|
|
3337
3356
|
}
|
|
3338
3357
|
}
|
|
@@ -3347,8 +3366,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3347
3366
|
else if (exp.type === 4) return exp.content;
|
|
3348
3367
|
else return exp.children.map(stringifyExpression).join("");
|
|
3349
3368
|
}
|
|
3350
|
-
|
|
3351
|
-
|
|
3369
|
+
|
|
3370
|
+
//#endregion
|
|
3371
|
+
//#region packages/compiler-core/src/transforms/vIf.ts
|
|
3352
3372
|
const transformIf = createStructuralDirectiveTransform(/^(?:if|else|else-if)$/, (node, dir, context) => {
|
|
3353
3373
|
return processIf(node, dir, context, (ifNode, branch, isRoot) => {
|
|
3354
3374
|
const siblings = context.parent.children;
|
|
@@ -3469,8 +3489,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3469
3489
|
else return node;
|
|
3470
3490
|
else if (node.type === 20) node = node.value;
|
|
3471
3491
|
}
|
|
3472
|
-
|
|
3473
|
-
|
|
3492
|
+
|
|
3493
|
+
//#endregion
|
|
3494
|
+
//#region packages/compiler-core/src/transforms/vFor.ts
|
|
3474
3495
|
const transformFor = createStructuralDirectiveTransform("for", (node, dir, context) => {
|
|
3475
3496
|
const { helper, removeHelper } = context;
|
|
3476
3497
|
return processFor(node, dir, context, (forNode) => {
|
|
@@ -3478,9 +3499,10 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3478
3499
|
const isTemplate = isTemplateNode(node);
|
|
3479
3500
|
const memo = findDir(node, "memo");
|
|
3480
3501
|
const keyProp = findProp(node, `key`, false, true);
|
|
3481
|
-
keyProp && keyProp.type;
|
|
3502
|
+
const isDirKey = keyProp && keyProp.type === 7;
|
|
3482
3503
|
let keyExp = keyProp && (keyProp.type === 6 ? keyProp.value ? createSimpleExpression(keyProp.value.content, true) : void 0 : keyProp.exp);
|
|
3483
|
-
|
|
3504
|
+
if (memo && keyExp && isDirKey) {}
|
|
3505
|
+
const keyProperty = keyProp && keyExp ? createObjectProperty(`key`, keyExp) : null;
|
|
3484
3506
|
const isStableFragment = forNode.source.type === 4 && forNode.source.constType > 0;
|
|
3485
3507
|
const fragmentFlag = isStableFragment ? 64 : keyProp ? 128 : 256;
|
|
3486
3508
|
forNode.codegenNode = createVNodeCall(context, helper(FRAGMENT), void 0, renderExp, fragmentFlag, void 0, void 0, true, !isStableFragment, false, node.loc);
|
|
@@ -3524,7 +3546,7 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3524
3546
|
`)`
|
|
3525
3547
|
]),
|
|
3526
3548
|
createCompoundExpression([
|
|
3527
|
-
`if (_cached
|
|
3549
|
+
`if (_cached`,
|
|
3528
3550
|
...keyExp ? [` && _cached.key === `, keyExp] : [],
|
|
3529
3551
|
` && ${context.helperString(IS_MEMO_SAME)}(_cached, _memo)) return _cached`
|
|
3530
3552
|
]),
|
|
@@ -3590,8 +3612,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3590
3612
|
while (i--) if (args[i]) break;
|
|
3591
3613
|
return args.slice(0, i + 1).map((arg, i) => arg || createSimpleExpression(`_`.repeat(i + 1), false));
|
|
3592
3614
|
}
|
|
3593
|
-
|
|
3594
|
-
|
|
3615
|
+
|
|
3616
|
+
//#endregion
|
|
3617
|
+
//#region packages/compiler-core/src/transforms/vSlot.ts
|
|
3595
3618
|
const defaultFallback = createSimpleExpression(`undefined`, false);
|
|
3596
3619
|
const trackSlotScopes = (node, context) => {
|
|
3597
3620
|
if (node.type === 1 && (node.tagType === 1 || node.tagType === 3)) {
|
|
@@ -3739,8 +3762,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
3739
3762
|
}
|
|
3740
3763
|
return false;
|
|
3741
3764
|
}
|
|
3742
|
-
|
|
3743
|
-
|
|
3765
|
+
|
|
3766
|
+
//#endregion
|
|
3767
|
+
//#region packages/compiler-core/src/transforms/transformElement.ts
|
|
3744
3768
|
const directiveImportMap = /* @__PURE__ */ new WeakMap();
|
|
3745
3769
|
const transformElement = (node, context) => {
|
|
3746
3770
|
return function postTransformElement() {
|
|
@@ -4031,8 +4055,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4031
4055
|
function isComponentTag(tag) {
|
|
4032
4056
|
return tag === "component" || tag === "Component";
|
|
4033
4057
|
}
|
|
4034
|
-
|
|
4035
|
-
|
|
4058
|
+
|
|
4059
|
+
//#endregion
|
|
4060
|
+
//#region packages/compiler-core/src/transforms/transformSlotOutlet.ts
|
|
4036
4061
|
const transformSlotOutlet = (node, context) => {
|
|
4037
4062
|
if (isSlotOutlet(node)) {
|
|
4038
4063
|
const { children, loc } = node;
|
|
@@ -4088,8 +4113,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4088
4113
|
slotProps
|
|
4089
4114
|
};
|
|
4090
4115
|
}
|
|
4091
|
-
|
|
4092
|
-
|
|
4116
|
+
|
|
4117
|
+
//#endregion
|
|
4118
|
+
//#region packages/compiler-core/src/transforms/vOn.ts
|
|
4093
4119
|
const transformOn = (dir, node, context, augmentor) => {
|
|
4094
4120
|
const { loc, modifiers, arg } = dir;
|
|
4095
4121
|
if (!dir.exp && !modifiers.length) context.onError(createCompilerError(35, loc));
|
|
@@ -4129,8 +4155,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4129
4155
|
ret.props.forEach((p) => p.key.isHandlerKey = true);
|
|
4130
4156
|
return ret;
|
|
4131
4157
|
};
|
|
4132
|
-
|
|
4133
|
-
|
|
4158
|
+
|
|
4159
|
+
//#endregion
|
|
4160
|
+
//#region packages/compiler-core/src/transforms/vBind.ts
|
|
4134
4161
|
const transformBind = (dir, _node, context) => {
|
|
4135
4162
|
const { modifiers, loc } = dir;
|
|
4136
4163
|
const arg = dir.arg;
|
|
@@ -4160,8 +4187,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4160
4187
|
arg.children.push(`)`);
|
|
4161
4188
|
}
|
|
4162
4189
|
};
|
|
4163
|
-
|
|
4164
|
-
|
|
4190
|
+
|
|
4191
|
+
//#endregion
|
|
4192
|
+
//#region packages/compiler-core/src/transforms/transformText.ts
|
|
4165
4193
|
const transformText = (node, context) => {
|
|
4166
4194
|
if (node.type === 0 || node.type === 1 || node.type === 11 || node.type === 10) return () => {
|
|
4167
4195
|
const children = node.children;
|
|
@@ -4202,8 +4230,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4202
4230
|
}
|
|
4203
4231
|
};
|
|
4204
4232
|
};
|
|
4205
|
-
|
|
4206
|
-
|
|
4233
|
+
|
|
4234
|
+
//#endregion
|
|
4235
|
+
//#region packages/compiler-core/src/transforms/vOnce.ts
|
|
4207
4236
|
const seen$1 = /* @__PURE__ */ new WeakSet();
|
|
4208
4237
|
const transformOnce = (node, context) => {
|
|
4209
4238
|
if (node.type === 1 && findDir(node, "once", true)) {
|
|
@@ -4218,8 +4247,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4218
4247
|
};
|
|
4219
4248
|
}
|
|
4220
4249
|
};
|
|
4221
|
-
|
|
4222
|
-
|
|
4250
|
+
|
|
4251
|
+
//#endregion
|
|
4252
|
+
//#region packages/compiler-core/src/transforms/vModel.ts
|
|
4223
4253
|
const transformModel = (dir, node, context) => {
|
|
4224
4254
|
const { exp, arg } = dir;
|
|
4225
4255
|
if (!exp) {
|
|
@@ -4260,8 +4290,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4260
4290
|
function createTransformProps(props = []) {
|
|
4261
4291
|
return { props };
|
|
4262
4292
|
}
|
|
4263
|
-
|
|
4264
|
-
|
|
4293
|
+
|
|
4294
|
+
//#endregion
|
|
4295
|
+
//#region packages/compiler-core/src/compat/transformFilter.ts
|
|
4265
4296
|
const validDivisionCharRE = /[\w).+\-_$\]]/;
|
|
4266
4297
|
const transformFilter = (node, context) => {
|
|
4267
4298
|
if (!isCompatEnabled("COMPILER_FILTERS", context)) return;
|
|
@@ -4373,8 +4404,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4373
4404
|
return `${toValidAssetId(name, "filter")}(${exp}${args !== ")" ? "," + args : args}`;
|
|
4374
4405
|
}
|
|
4375
4406
|
}
|
|
4376
|
-
|
|
4377
|
-
|
|
4407
|
+
|
|
4408
|
+
//#endregion
|
|
4409
|
+
//#region packages/compiler-core/src/transforms/vMemo.ts
|
|
4378
4410
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
4379
4411
|
const transformMemo = (node, context) => {
|
|
4380
4412
|
if (node.type === 1) {
|
|
@@ -4396,8 +4428,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4396
4428
|
};
|
|
4397
4429
|
}
|
|
4398
4430
|
};
|
|
4399
|
-
|
|
4400
|
-
|
|
4431
|
+
|
|
4432
|
+
//#endregion
|
|
4433
|
+
//#region packages/compiler-core/src/transforms/transformVBindShorthand.ts
|
|
4401
4434
|
const transformVBindShorthand = (node, context) => {
|
|
4402
4435
|
if (node.type === 1) {
|
|
4403
4436
|
for (const prop of node.props) if (prop.type === 7 && prop.name === "bind" && (!prop.exp || prop.exp.type === 4 && !prop.exp.content.trim()) && prop.arg) {
|
|
@@ -4412,8 +4445,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4412
4445
|
}
|
|
4413
4446
|
}
|
|
4414
4447
|
};
|
|
4415
|
-
|
|
4416
|
-
|
|
4448
|
+
|
|
4449
|
+
//#endregion
|
|
4450
|
+
//#region packages/compiler-core/src/compile.ts
|
|
4417
4451
|
function getBaseTransformPreset(prefixIdentifiers) {
|
|
4418
4452
|
return [[
|
|
4419
4453
|
transformVBindShorthand,
|
|
@@ -4451,8 +4485,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4451
4485
|
}));
|
|
4452
4486
|
return generate(ast, resolvedOptions);
|
|
4453
4487
|
}
|
|
4454
|
-
|
|
4455
|
-
|
|
4488
|
+
|
|
4489
|
+
//#endregion
|
|
4490
|
+
//#region packages/compiler-core/src/options.ts
|
|
4456
4491
|
const BindingTypes = {
|
|
4457
4492
|
"DATA": "data",
|
|
4458
4493
|
"PROPS": "props",
|
|
@@ -4465,11 +4500,13 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4465
4500
|
"OPTIONS": "options",
|
|
4466
4501
|
"LITERAL_CONST": "literal-const"
|
|
4467
4502
|
};
|
|
4468
|
-
|
|
4469
|
-
|
|
4503
|
+
|
|
4504
|
+
//#endregion
|
|
4505
|
+
//#region packages/compiler-core/src/transforms/noopDirectiveTransform.ts
|
|
4470
4506
|
const noopDirectiveTransform = () => ({ props: [] });
|
|
4471
|
-
|
|
4472
|
-
|
|
4507
|
+
|
|
4508
|
+
//#endregion
|
|
4509
|
+
//#region packages/compiler-dom/src/runtimeHelpers.ts
|
|
4473
4510
|
const V_MODEL_RADIO = Symbol(`vModelRadio`);
|
|
4474
4511
|
const V_MODEL_CHECKBOX = Symbol(`vModelCheckbox`);
|
|
4475
4512
|
const V_MODEL_TEXT = Symbol(`vModelText`);
|
|
@@ -4492,8 +4529,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4492
4529
|
[TRANSITION]: `Transition`,
|
|
4493
4530
|
[TRANSITION_GROUP]: `TransitionGroup`
|
|
4494
4531
|
});
|
|
4495
|
-
|
|
4496
|
-
|
|
4532
|
+
|
|
4533
|
+
//#endregion
|
|
4534
|
+
//#region packages/compiler-dom/src/decodeHtmlBrowser.ts
|
|
4497
4535
|
let decoder;
|
|
4498
4536
|
function decodeHtmlBrowser(raw, asAttr = false) {
|
|
4499
4537
|
if (!decoder) decoder = document.createElement("div");
|
|
@@ -4505,8 +4543,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4505
4543
|
return decoder.textContent;
|
|
4506
4544
|
}
|
|
4507
4545
|
}
|
|
4508
|
-
|
|
4509
|
-
|
|
4546
|
+
|
|
4547
|
+
//#endregion
|
|
4548
|
+
//#region packages/compiler-dom/src/parserOptions.ts
|
|
4510
4549
|
const parserOptions = {
|
|
4511
4550
|
parseMode: "html",
|
|
4512
4551
|
isVoidTag,
|
|
@@ -4535,8 +4574,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4535
4574
|
return ns;
|
|
4536
4575
|
}
|
|
4537
4576
|
};
|
|
4538
|
-
|
|
4539
|
-
|
|
4577
|
+
|
|
4578
|
+
//#endregion
|
|
4579
|
+
//#region packages/compiler-dom/src/transforms/transformStyle.ts
|
|
4540
4580
|
const transformStyle = (node) => {
|
|
4541
4581
|
if (node.type === 1) node.props.forEach((p, i) => {
|
|
4542
4582
|
if (p.type === 6 && p.name === "style" && p.value) node.props[i] = {
|
|
@@ -4553,8 +4593,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4553
4593
|
const normalized = parseStringStyle(cssText);
|
|
4554
4594
|
return createSimpleExpression(JSON.stringify(normalized), false, loc, 3);
|
|
4555
4595
|
};
|
|
4556
|
-
|
|
4557
|
-
|
|
4596
|
+
|
|
4597
|
+
//#endregion
|
|
4598
|
+
//#region packages/compiler-dom/src/errors.ts
|
|
4558
4599
|
function createDOMCompilerError(code, loc) {
|
|
4559
4600
|
return createCompilerError(code, loc, DOMErrorMessages);
|
|
4560
4601
|
}
|
|
@@ -4598,8 +4639,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4598
4639
|
[64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
|
|
4599
4640
|
[65]: ``
|
|
4600
4641
|
};
|
|
4601
|
-
|
|
4602
|
-
|
|
4642
|
+
|
|
4643
|
+
//#endregion
|
|
4644
|
+
//#region packages/compiler-dom/src/transforms/vHtml.ts
|
|
4603
4645
|
const transformVHtml = (dir, node, context) => {
|
|
4604
4646
|
const { exp, loc } = dir;
|
|
4605
4647
|
if (!exp) context.onError(createDOMCompilerError(54, loc));
|
|
@@ -4609,8 +4651,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4609
4651
|
}
|
|
4610
4652
|
return { props: [createObjectProperty(createSimpleExpression(`innerHTML`, true, loc), exp || createSimpleExpression("", true))] };
|
|
4611
4653
|
};
|
|
4612
|
-
|
|
4613
|
-
|
|
4654
|
+
|
|
4655
|
+
//#endregion
|
|
4656
|
+
//#region packages/compiler-dom/src/transforms/vText.ts
|
|
4614
4657
|
const transformVText = (dir, node, context) => {
|
|
4615
4658
|
const { exp, loc } = dir;
|
|
4616
4659
|
if (!exp) context.onError(createDOMCompilerError(56, loc));
|
|
@@ -4620,8 +4663,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4620
4663
|
}
|
|
4621
4664
|
return { props: [createObjectProperty(createSimpleExpression(`textContent`, true), exp ? getConstantType(exp, context) > 0 ? exp : createCallExpression(context.helperString(TO_DISPLAY_STRING), [exp], loc) : createSimpleExpression("", true))] };
|
|
4622
4665
|
};
|
|
4623
|
-
|
|
4624
|
-
|
|
4666
|
+
|
|
4667
|
+
//#endregion
|
|
4668
|
+
//#region packages/compiler-dom/src/transforms/vModel.ts
|
|
4625
4669
|
const transformModel$1 = (dir, node, context) => {
|
|
4626
4670
|
const baseResult = transformModel(dir, node, context);
|
|
4627
4671
|
if (!baseResult.props.length || node.tagType === 1) return baseResult;
|
|
@@ -4663,8 +4707,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4663
4707
|
baseResult.props = baseResult.props.filter((p) => !(p.key.type === 4 && p.key.content === "modelValue"));
|
|
4664
4708
|
return baseResult;
|
|
4665
4709
|
};
|
|
4666
|
-
|
|
4667
|
-
|
|
4710
|
+
|
|
4711
|
+
//#endregion
|
|
4712
|
+
//#region packages/compiler-dom/src/transforms/vOn.ts
|
|
4668
4713
|
const isEventOptionModifier = /* @__PURE__ */ makeMap(`passive,once,capture`);
|
|
4669
4714
|
const isNonKeyModifier = /* @__PURE__ */ makeMap("stop,prevent,self,ctrl,shift,alt,meta,exact,middle");
|
|
4670
4715
|
const maybeKeyModifier = /* @__PURE__ */ makeMap("left,right");
|
|
@@ -4725,8 +4770,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4725
4770
|
return { props: [createObjectProperty(key, handlerExp)] };
|
|
4726
4771
|
});
|
|
4727
4772
|
};
|
|
4728
|
-
|
|
4729
|
-
|
|
4773
|
+
|
|
4774
|
+
//#endregion
|
|
4775
|
+
//#region packages/compiler-dom/src/transforms/vShow.ts
|
|
4730
4776
|
const transformShow = (dir, node, context) => {
|
|
4731
4777
|
const { exp, loc } = dir;
|
|
4732
4778
|
if (!exp) context.onError(createDOMCompilerError(62, loc));
|
|
@@ -4735,8 +4781,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4735
4781
|
needRuntime: context.helper(V_SHOW)
|
|
4736
4782
|
};
|
|
4737
4783
|
};
|
|
4738
|
-
|
|
4739
|
-
|
|
4784
|
+
|
|
4785
|
+
//#endregion
|
|
4786
|
+
//#region packages/compiler-dom/src/transforms/Transition.ts
|
|
4740
4787
|
const transformTransition = (node, context) => {
|
|
4741
4788
|
if (node.type === 1 && node.tagType === 1) {
|
|
4742
4789
|
if (context.isBuiltInComponent(node.tag) === TRANSITION) return postTransformTransition(node, context.onError);
|
|
@@ -4767,17 +4814,19 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4767
4814
|
const child = children[0];
|
|
4768
4815
|
return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(defaultHasMultipleChildren);
|
|
4769
4816
|
}
|
|
4770
|
-
|
|
4771
|
-
|
|
4817
|
+
|
|
4818
|
+
//#endregion
|
|
4819
|
+
//#region packages/compiler-dom/src/transforms/ignoreSideEffectTags.ts
|
|
4772
4820
|
const ignoreSideEffectTags = (node, context) => {
|
|
4773
4821
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
4774
4822
|
context.onError(createDOMCompilerError(64, node.loc));
|
|
4775
4823
|
context.removeNode();
|
|
4776
4824
|
}
|
|
4777
4825
|
};
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4826
|
+
|
|
4827
|
+
//#endregion
|
|
4828
|
+
//#region packages/compiler-dom/src/htmlNesting.ts
|
|
4829
|
+
/**
|
|
4781
4830
|
* Copied from https://github.com/MananTank/validate-html-nesting
|
|
4782
4831
|
* with ISC license
|
|
4783
4832
|
*
|
|
@@ -4965,8 +5014,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4965
5014
|
h5: headings,
|
|
4966
5015
|
h6: headings
|
|
4967
5016
|
};
|
|
4968
|
-
|
|
4969
|
-
|
|
5017
|
+
|
|
5018
|
+
//#endregion
|
|
5019
|
+
//#region packages/compiler-dom/src/transforms/validateHtmlNesting.ts
|
|
4970
5020
|
const validateHtmlNesting = (node, context) => {
|
|
4971
5021
|
if (node.type === 1 && node.tagType === 0 && context.parent && context.parent.type === 1 && context.parent.tagType === 0 && !isValidHTMLNesting(context.parent.tag, node.tag)) {
|
|
4972
5022
|
const error = /* @__PURE__ */ new SyntaxError(`<${node.tag}> cannot be child of <${context.parent.tag}>, according to HTML specifications. This can cause hydration errors or potentially disrupt future functionality.`);
|
|
@@ -4974,8 +5024,9 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4974
5024
|
context.onWarn(error);
|
|
4975
5025
|
}
|
|
4976
5026
|
};
|
|
4977
|
-
|
|
4978
|
-
|
|
5027
|
+
|
|
5028
|
+
//#endregion
|
|
5029
|
+
//#region packages/compiler-dom/src/index.ts
|
|
4979
5030
|
const DOMNodeTransforms = [transformStyle, ...[transformTransition, validateHtmlNesting]];
|
|
4980
5031
|
const DOMDirectiveTransforms = {
|
|
4981
5032
|
cloak: noopDirectiveTransform,
|
|
@@ -4999,184 +5050,185 @@ var VueCompilerDOM = (function(exports) {
|
|
|
4999
5050
|
function parse(template, options = {}) {
|
|
5000
5051
|
return baseParse(template, extend({}, parserOptions, options));
|
|
5001
5052
|
}
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5053
|
+
|
|
5054
|
+
//#endregion
|
|
5055
|
+
exports.BASE_TRANSITION = BASE_TRANSITION;
|
|
5056
|
+
exports.BindingTypes = BindingTypes;
|
|
5057
|
+
exports.CAMELIZE = CAMELIZE;
|
|
5058
|
+
exports.CAPITALIZE = CAPITALIZE;
|
|
5059
|
+
exports.CREATE_BLOCK = CREATE_BLOCK;
|
|
5060
|
+
exports.CREATE_COMMENT = CREATE_COMMENT;
|
|
5061
|
+
exports.CREATE_ELEMENT_BLOCK = CREATE_ELEMENT_BLOCK;
|
|
5062
|
+
exports.CREATE_ELEMENT_VNODE = CREATE_ELEMENT_VNODE;
|
|
5063
|
+
exports.CREATE_SLOTS = CREATE_SLOTS;
|
|
5064
|
+
exports.CREATE_STATIC = CREATE_STATIC;
|
|
5065
|
+
exports.CREATE_TEXT = CREATE_TEXT;
|
|
5066
|
+
exports.CREATE_VNODE = CREATE_VNODE;
|
|
5067
|
+
exports.CompilerDeprecationTypes = CompilerDeprecationTypes;
|
|
5068
|
+
exports.ConstantTypes = ConstantTypes;
|
|
5069
|
+
exports.DOMDirectiveTransforms = DOMDirectiveTransforms;
|
|
5070
|
+
exports.DOMErrorCodes = DOMErrorCodes;
|
|
5071
|
+
exports.DOMErrorMessages = DOMErrorMessages;
|
|
5072
|
+
exports.DOMNodeTransforms = DOMNodeTransforms;
|
|
5073
|
+
exports.ElementTypes = ElementTypes;
|
|
5074
|
+
exports.ErrorCodes = ErrorCodes;
|
|
5075
|
+
exports.FRAGMENT = FRAGMENT;
|
|
5076
|
+
exports.GUARD_REACTIVE_PROPS = GUARD_REACTIVE_PROPS;
|
|
5077
|
+
exports.IS_MEMO_SAME = IS_MEMO_SAME;
|
|
5078
|
+
exports.IS_REF = IS_REF;
|
|
5079
|
+
exports.KEEP_ALIVE = KEEP_ALIVE;
|
|
5080
|
+
exports.MERGE_PROPS = MERGE_PROPS;
|
|
5081
|
+
exports.NORMALIZE_CLASS = NORMALIZE_CLASS;
|
|
5082
|
+
exports.NORMALIZE_PROPS = NORMALIZE_PROPS;
|
|
5083
|
+
exports.NORMALIZE_STYLE = NORMALIZE_STYLE;
|
|
5084
|
+
exports.NewlineType = NewlineType;
|
|
5085
|
+
exports.NodeTypes = NodeTypes;
|
|
5086
|
+
exports.OPEN_BLOCK = OPEN_BLOCK;
|
|
5087
|
+
exports.POP_SCOPE_ID = POP_SCOPE_ID;
|
|
5088
|
+
exports.PUSH_SCOPE_ID = PUSH_SCOPE_ID;
|
|
5089
|
+
exports.RENDER_LIST = RENDER_LIST;
|
|
5090
|
+
exports.RENDER_SLOT = RENDER_SLOT;
|
|
5091
|
+
exports.RESOLVE_COMPONENT = RESOLVE_COMPONENT;
|
|
5092
|
+
exports.RESOLVE_DIRECTIVE = RESOLVE_DIRECTIVE;
|
|
5093
|
+
exports.RESOLVE_DYNAMIC_COMPONENT = RESOLVE_DYNAMIC_COMPONENT;
|
|
5094
|
+
exports.RESOLVE_FILTER = RESOLVE_FILTER;
|
|
5095
|
+
exports.SET_BLOCK_TRACKING = SET_BLOCK_TRACKING;
|
|
5096
|
+
exports.SUSPENSE = SUSPENSE;
|
|
5097
|
+
exports.TELEPORT = TELEPORT;
|
|
5098
|
+
exports.TO_DISPLAY_STRING = TO_DISPLAY_STRING;
|
|
5099
|
+
exports.TO_HANDLERS = TO_HANDLERS;
|
|
5100
|
+
exports.TO_HANDLER_KEY = TO_HANDLER_KEY;
|
|
5101
|
+
exports.TRANSITION = TRANSITION;
|
|
5102
|
+
exports.TRANSITION_GROUP = TRANSITION_GROUP;
|
|
5103
|
+
exports.TS_NODE_TYPES = TS_NODE_TYPES;
|
|
5104
|
+
exports.UNREF = UNREF;
|
|
5105
|
+
exports.V_MODEL_CHECKBOX = V_MODEL_CHECKBOX;
|
|
5106
|
+
exports.V_MODEL_DYNAMIC = V_MODEL_DYNAMIC;
|
|
5107
|
+
exports.V_MODEL_RADIO = V_MODEL_RADIO;
|
|
5108
|
+
exports.V_MODEL_SELECT = V_MODEL_SELECT;
|
|
5109
|
+
exports.V_MODEL_TEXT = V_MODEL_TEXT;
|
|
5110
|
+
exports.V_ON_WITH_KEYS = V_ON_WITH_KEYS;
|
|
5111
|
+
exports.V_ON_WITH_MODIFIERS = V_ON_WITH_MODIFIERS;
|
|
5112
|
+
exports.V_SHOW = V_SHOW;
|
|
5113
|
+
exports.WITH_CTX = WITH_CTX;
|
|
5114
|
+
exports.WITH_DIRECTIVES = WITH_DIRECTIVES;
|
|
5115
|
+
exports.WITH_MEMO = WITH_MEMO;
|
|
5116
|
+
exports.advancePositionWithClone = advancePositionWithClone;
|
|
5117
|
+
exports.advancePositionWithMutation = advancePositionWithMutation;
|
|
5118
|
+
exports.assert = assert;
|
|
5119
|
+
exports.baseCompile = baseCompile;
|
|
5120
|
+
exports.baseParse = baseParse;
|
|
5121
|
+
exports.buildDirectiveArgs = buildDirectiveArgs;
|
|
5122
|
+
exports.buildProps = buildProps;
|
|
5123
|
+
exports.buildSlots = buildSlots;
|
|
5124
|
+
exports.checkCompatEnabled = checkCompatEnabled;
|
|
5125
|
+
exports.compile = compile;
|
|
5126
|
+
exports.convertToBlock = convertToBlock;
|
|
5127
|
+
exports.createArrayExpression = createArrayExpression;
|
|
5128
|
+
exports.createAssignmentExpression = createAssignmentExpression;
|
|
5129
|
+
exports.createBlockStatement = createBlockStatement;
|
|
5130
|
+
exports.createCacheExpression = createCacheExpression;
|
|
5131
|
+
exports.createCallExpression = createCallExpression;
|
|
5132
|
+
exports.createCompilerError = createCompilerError;
|
|
5133
|
+
exports.createCompoundExpression = createCompoundExpression;
|
|
5134
|
+
exports.createConditionalExpression = createConditionalExpression;
|
|
5135
|
+
exports.createDOMCompilerError = createDOMCompilerError;
|
|
5136
|
+
exports.createExp = createExp;
|
|
5137
|
+
exports.createForLoopParams = createForLoopParams;
|
|
5138
|
+
exports.createFunctionExpression = createFunctionExpression;
|
|
5139
|
+
exports.createIfStatement = createIfStatement;
|
|
5140
|
+
exports.createInterpolation = createInterpolation;
|
|
5141
|
+
exports.createObjectExpression = createObjectExpression;
|
|
5142
|
+
exports.createObjectProperty = createObjectProperty;
|
|
5143
|
+
exports.createReturnStatement = createReturnStatement;
|
|
5144
|
+
exports.createRoot = createRoot;
|
|
5145
|
+
exports.createSequenceExpression = createSequenceExpression;
|
|
5146
|
+
exports.createSimpleExpression = createSimpleExpression;
|
|
5147
|
+
exports.createStructuralDirectiveTransform = createStructuralDirectiveTransform;
|
|
5148
|
+
exports.createTemplateLiteral = createTemplateLiteral;
|
|
5149
|
+
exports.createTransformContext = createTransformContext;
|
|
5150
|
+
exports.createVNodeCall = createVNodeCall;
|
|
5151
|
+
exports.defaultOnError = defaultOnError;
|
|
5152
|
+
exports.defaultOnWarn = defaultOnWarn;
|
|
5153
|
+
exports.errorMessages = errorMessages;
|
|
5154
|
+
exports.extractIdentifiers = extractIdentifiers;
|
|
5155
|
+
exports.filterNonCommentChildren = filterNonCommentChildren;
|
|
5156
|
+
exports.findDir = findDir;
|
|
5157
|
+
exports.findProp = findProp;
|
|
5158
|
+
exports.forAliasRE = forAliasRE;
|
|
5159
|
+
exports.generate = generate;
|
|
5160
|
+
exports.generateCodeFrame = generateCodeFrame;
|
|
5161
|
+
exports.getBaseTransformPreset = getBaseTransformPreset;
|
|
5162
|
+
exports.getConstantType = getConstantType;
|
|
5163
|
+
exports.getMemoedVNodeCall = getMemoedVNodeCall;
|
|
5164
|
+
exports.getSelfName = getSelfName;
|
|
5165
|
+
exports.getVNodeBlockHelper = getVNodeBlockHelper;
|
|
5166
|
+
exports.getVNodeHelper = getVNodeHelper;
|
|
5167
|
+
exports.hasDynamicKeyVBind = hasDynamicKeyVBind;
|
|
5168
|
+
exports.hasScopeRef = hasScopeRef;
|
|
5169
|
+
exports.hasSingleChild = hasSingleChild;
|
|
5170
|
+
exports.helperNameMap = helperNameMap;
|
|
5171
|
+
exports.injectProp = injectProp;
|
|
5172
|
+
exports.isAllWhitespace = isAllWhitespace;
|
|
5173
|
+
exports.isCommentOrWhitespace = isCommentOrWhitespace;
|
|
5174
|
+
exports.isConstantNode = isConstantNode;
|
|
5175
|
+
exports.isCoreComponent = isCoreComponent;
|
|
5176
|
+
exports.isFnExpression = isFnExpression;
|
|
5177
|
+
exports.isFnExpressionBrowser = isFnExpressionBrowser;
|
|
5178
|
+
exports.isFnExpressionNode = isFnExpressionNode;
|
|
5179
|
+
exports.isFunctionType = isFunctionType;
|
|
5180
|
+
exports.isInDestructureAssignment = isInDestructureAssignment;
|
|
5181
|
+
exports.isInNewExpression = isInNewExpression;
|
|
5182
|
+
exports.isKeyboardEvent = isKeyboardEvent;
|
|
5183
|
+
exports.isLiteralWhitelisted = isLiteralWhitelisted;
|
|
5184
|
+
exports.isMemberExpression = isMemberExpression;
|
|
5185
|
+
exports.isMemberExpressionBrowser = isMemberExpressionBrowser;
|
|
5186
|
+
exports.isMemberExpressionNode = isMemberExpressionNode;
|
|
5187
|
+
exports.isReferencedIdentifier = isReferencedIdentifier;
|
|
5188
|
+
exports.isSimpleIdentifier = isSimpleIdentifier;
|
|
5189
|
+
exports.isSingleIfBlock = isSingleIfBlock;
|
|
5190
|
+
exports.isSlotOutlet = isSlotOutlet;
|
|
5191
|
+
exports.isStaticArgOf = isStaticArgOf;
|
|
5192
|
+
exports.isStaticExp = isStaticExp;
|
|
5193
|
+
exports.isStaticNode = isStaticNode;
|
|
5194
|
+
exports.isStaticProperty = isStaticProperty;
|
|
5195
|
+
exports.isStaticPropertyKey = isStaticPropertyKey;
|
|
5196
|
+
exports.isTemplateNode = isTemplateNode;
|
|
5197
|
+
exports.isText = isText;
|
|
5198
|
+
exports.isVPre = isVPre;
|
|
5199
|
+
exports.isVSlot = isVSlot;
|
|
5200
|
+
exports.isValidHTMLNesting = isValidHTMLNesting;
|
|
5201
|
+
exports.isWhitespaceText = isWhitespaceText;
|
|
5202
|
+
exports.locStub = locStub;
|
|
5203
|
+
exports.noopDirectiveTransform = noopDirectiveTransform;
|
|
5204
|
+
exports.parse = parse;
|
|
5205
|
+
exports.parserOptions = parserOptions;
|
|
5206
|
+
exports.postTransformTransition = postTransformTransition;
|
|
5207
|
+
exports.processExpression = processExpression;
|
|
5208
|
+
exports.processFor = processFor;
|
|
5209
|
+
exports.processIf = processIf;
|
|
5210
|
+
exports.processSlotOutlet = processSlotOutlet;
|
|
5211
|
+
exports.registerRuntimeHelpers = registerRuntimeHelpers;
|
|
5212
|
+
exports.resolveComponentType = resolveComponentType;
|
|
5213
|
+
exports.resolveModifiers = resolveModifiers;
|
|
5214
|
+
exports.stringifyExpression = stringifyExpression;
|
|
5215
|
+
exports.toValidAssetId = toValidAssetId;
|
|
5216
|
+
exports.trackSlotScopes = trackSlotScopes;
|
|
5217
|
+
exports.trackVForSlotScopes = trackVForSlotScopes;
|
|
5218
|
+
exports.transform = transform;
|
|
5219
|
+
exports.transformBind = transformBind;
|
|
5220
|
+
exports.transformElement = transformElement;
|
|
5221
|
+
exports.transformExpression = transformExpression;
|
|
5222
|
+
exports.transformModel = transformModel;
|
|
5223
|
+
exports.transformOn = transformOn;
|
|
5224
|
+
exports.transformStyle = transformStyle;
|
|
5225
|
+
exports.transformVBindShorthand = transformVBindShorthand;
|
|
5226
|
+
exports.traverseNode = traverseNode;
|
|
5227
|
+
exports.unwrapTSNode = unwrapTSNode;
|
|
5228
|
+
exports.validFirstIdentCharRE = validFirstIdentCharRE;
|
|
5229
|
+
exports.walkBlockDeclarations = walkBlockDeclarations;
|
|
5230
|
+
exports.walkFunctionParams = walkFunctionParams;
|
|
5231
|
+
exports.walkIdentifiers = walkIdentifiers;
|
|
5232
|
+
exports.warnDeprecation = warnDeprecation;
|
|
5233
|
+
return exports;
|
|
5234
|
+
})({});
|