@vue/compiler-dom 3.3.0-alpha.8 → 3.3.0-beta.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-dom.cjs.js +22 -22
- package/dist/compiler-dom.cjs.prod.js +20 -20
- package/dist/compiler-dom.d.ts +12 -12
- package/dist/compiler-dom.esm-browser.js +38 -42
- package/dist/compiler-dom.esm-browser.prod.js +1 -1
- package/dist/compiler-dom.esm-bundler.js +22 -22
- package/dist/compiler-dom.global.js +37 -44
- package/dist/compiler-dom.global.prod.js +1 -1
- package/package.json +3 -3
package/dist/compiler-dom.cjs.js
CHANGED
|
@@ -2462,29 +2462,29 @@ function createDOMCompilerError(code, loc) {
|
|
|
2462
2462
|
);
|
|
2463
2463
|
}
|
|
2464
2464
|
const DOMErrorMessages = {
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2465
|
+
[53]: `v-html is missing expression.`,
|
|
2466
|
+
[54]: `v-html will override element children.`,
|
|
2467
|
+
[55]: `v-text is missing expression.`,
|
|
2468
|
+
[56]: `v-text will override element children.`,
|
|
2469
|
+
[57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
2470
|
+
[58]: `v-model argument is not supported on plain elements.`,
|
|
2471
|
+
[59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
2472
|
+
[60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
2473
|
+
[61]: `v-show is missing expression.`,
|
|
2474
|
+
[62]: `<Transition> expects exactly one child element or component.`,
|
|
2475
|
+
[63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
|
|
2476
2476
|
};
|
|
2477
2477
|
|
|
2478
2478
|
const transformVHtml = (dir, node, context) => {
|
|
2479
2479
|
const { exp, loc } = dir;
|
|
2480
2480
|
if (!exp) {
|
|
2481
2481
|
context.onError(
|
|
2482
|
-
createDOMCompilerError(
|
|
2482
|
+
createDOMCompilerError(53, loc)
|
|
2483
2483
|
);
|
|
2484
2484
|
}
|
|
2485
2485
|
if (node.children.length) {
|
|
2486
2486
|
context.onError(
|
|
2487
|
-
createDOMCompilerError(
|
|
2487
|
+
createDOMCompilerError(54, loc)
|
|
2488
2488
|
);
|
|
2489
2489
|
node.children.length = 0;
|
|
2490
2490
|
}
|
|
@@ -2502,12 +2502,12 @@ const transformVText = (dir, node, context) => {
|
|
|
2502
2502
|
const { exp, loc } = dir;
|
|
2503
2503
|
if (!exp) {
|
|
2504
2504
|
context.onError(
|
|
2505
|
-
createDOMCompilerError(
|
|
2505
|
+
createDOMCompilerError(55, loc)
|
|
2506
2506
|
);
|
|
2507
2507
|
}
|
|
2508
2508
|
if (node.children.length) {
|
|
2509
2509
|
context.onError(
|
|
2510
|
-
createDOMCompilerError(
|
|
2510
|
+
createDOMCompilerError(56, loc)
|
|
2511
2511
|
);
|
|
2512
2512
|
node.children.length = 0;
|
|
2513
2513
|
}
|
|
@@ -2533,7 +2533,7 @@ const transformModel = (dir, node, context) => {
|
|
|
2533
2533
|
if (dir.arg) {
|
|
2534
2534
|
context.onError(
|
|
2535
2535
|
createDOMCompilerError(
|
|
2536
|
-
|
|
2536
|
+
58,
|
|
2537
2537
|
dir.arg.loc
|
|
2538
2538
|
)
|
|
2539
2539
|
);
|
|
@@ -2543,7 +2543,7 @@ const transformModel = (dir, node, context) => {
|
|
|
2543
2543
|
if (value) {
|
|
2544
2544
|
context.onError(
|
|
2545
2545
|
createDOMCompilerError(
|
|
2546
|
-
|
|
2546
|
+
60,
|
|
2547
2547
|
value.loc
|
|
2548
2548
|
)
|
|
2549
2549
|
);
|
|
@@ -2571,7 +2571,7 @@ const transformModel = (dir, node, context) => {
|
|
|
2571
2571
|
isInvalidType = true;
|
|
2572
2572
|
context.onError(
|
|
2573
2573
|
createDOMCompilerError(
|
|
2574
|
-
|
|
2574
|
+
59,
|
|
2575
2575
|
dir.loc
|
|
2576
2576
|
)
|
|
2577
2577
|
);
|
|
@@ -2597,7 +2597,7 @@ const transformModel = (dir, node, context) => {
|
|
|
2597
2597
|
} else {
|
|
2598
2598
|
context.onError(
|
|
2599
2599
|
createDOMCompilerError(
|
|
2600
|
-
|
|
2600
|
+
57,
|
|
2601
2601
|
dir.loc
|
|
2602
2602
|
)
|
|
2603
2603
|
);
|
|
@@ -2709,7 +2709,7 @@ const transformShow = (dir, node, context) => {
|
|
|
2709
2709
|
const { exp, loc } = dir;
|
|
2710
2710
|
if (!exp) {
|
|
2711
2711
|
context.onError(
|
|
2712
|
-
createDOMCompilerError(
|
|
2712
|
+
createDOMCompilerError(61, loc)
|
|
2713
2713
|
);
|
|
2714
2714
|
}
|
|
2715
2715
|
return {
|
|
@@ -2729,7 +2729,7 @@ const transformTransition = (node, context) => {
|
|
|
2729
2729
|
if (hasMultipleChildren(node)) {
|
|
2730
2730
|
context.onError(
|
|
2731
2731
|
createDOMCompilerError(
|
|
2732
|
-
|
|
2732
|
+
62,
|
|
2733
2733
|
{
|
|
2734
2734
|
start: node.children[0].loc.start,
|
|
2735
2735
|
end: node.children[node.children.length - 1].loc.end,
|
|
@@ -2977,7 +2977,7 @@ function evaluateConstant(exp) {
|
|
|
2977
2977
|
const ignoreSideEffectTags = (node, context) => {
|
|
2978
2978
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
2979
2979
|
context.onError(
|
|
2980
|
-
createDOMCompilerError(
|
|
2980
|
+
createDOMCompilerError(63, node.loc)
|
|
2981
2981
|
);
|
|
2982
2982
|
context.removeNode();
|
|
2983
2983
|
}
|
|
@@ -2462,29 +2462,29 @@ function createDOMCompilerError(code, loc) {
|
|
|
2462
2462
|
);
|
|
2463
2463
|
}
|
|
2464
2464
|
const DOMErrorMessages = {
|
|
2465
|
-
[
|
|
2466
|
-
[
|
|
2467
|
-
[
|
|
2468
|
-
[
|
|
2469
|
-
[
|
|
2470
|
-
[
|
|
2471
|
-
[
|
|
2472
|
-
[
|
|
2473
|
-
[
|
|
2474
|
-
[
|
|
2475
|
-
[
|
|
2465
|
+
[53]: `v-html is missing expression.`,
|
|
2466
|
+
[54]: `v-html will override element children.`,
|
|
2467
|
+
[55]: `v-text is missing expression.`,
|
|
2468
|
+
[56]: `v-text will override element children.`,
|
|
2469
|
+
[57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
2470
|
+
[58]: `v-model argument is not supported on plain elements.`,
|
|
2471
|
+
[59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
2472
|
+
[60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
2473
|
+
[61]: `v-show is missing expression.`,
|
|
2474
|
+
[62]: `<Transition> expects exactly one child element or component.`,
|
|
2475
|
+
[63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
|
|
2476
2476
|
};
|
|
2477
2477
|
|
|
2478
2478
|
const transformVHtml = (dir, node, context) => {
|
|
2479
2479
|
const { exp, loc } = dir;
|
|
2480
2480
|
if (!exp) {
|
|
2481
2481
|
context.onError(
|
|
2482
|
-
createDOMCompilerError(
|
|
2482
|
+
createDOMCompilerError(53, loc)
|
|
2483
2483
|
);
|
|
2484
2484
|
}
|
|
2485
2485
|
if (node.children.length) {
|
|
2486
2486
|
context.onError(
|
|
2487
|
-
createDOMCompilerError(
|
|
2487
|
+
createDOMCompilerError(54, loc)
|
|
2488
2488
|
);
|
|
2489
2489
|
node.children.length = 0;
|
|
2490
2490
|
}
|
|
@@ -2502,12 +2502,12 @@ const transformVText = (dir, node, context) => {
|
|
|
2502
2502
|
const { exp, loc } = dir;
|
|
2503
2503
|
if (!exp) {
|
|
2504
2504
|
context.onError(
|
|
2505
|
-
createDOMCompilerError(
|
|
2505
|
+
createDOMCompilerError(55, loc)
|
|
2506
2506
|
);
|
|
2507
2507
|
}
|
|
2508
2508
|
if (node.children.length) {
|
|
2509
2509
|
context.onError(
|
|
2510
|
-
createDOMCompilerError(
|
|
2510
|
+
createDOMCompilerError(56, loc)
|
|
2511
2511
|
);
|
|
2512
2512
|
node.children.length = 0;
|
|
2513
2513
|
}
|
|
@@ -2533,7 +2533,7 @@ const transformModel = (dir, node, context) => {
|
|
|
2533
2533
|
if (dir.arg) {
|
|
2534
2534
|
context.onError(
|
|
2535
2535
|
createDOMCompilerError(
|
|
2536
|
-
|
|
2536
|
+
58,
|
|
2537
2537
|
dir.arg.loc
|
|
2538
2538
|
)
|
|
2539
2539
|
);
|
|
@@ -2560,7 +2560,7 @@ const transformModel = (dir, node, context) => {
|
|
|
2560
2560
|
isInvalidType = true;
|
|
2561
2561
|
context.onError(
|
|
2562
2562
|
createDOMCompilerError(
|
|
2563
|
-
|
|
2563
|
+
59,
|
|
2564
2564
|
dir.loc
|
|
2565
2565
|
)
|
|
2566
2566
|
);
|
|
@@ -2579,7 +2579,7 @@ const transformModel = (dir, node, context) => {
|
|
|
2579
2579
|
} else {
|
|
2580
2580
|
context.onError(
|
|
2581
2581
|
createDOMCompilerError(
|
|
2582
|
-
|
|
2582
|
+
57,
|
|
2583
2583
|
dir.loc
|
|
2584
2584
|
)
|
|
2585
2585
|
);
|
|
@@ -2691,7 +2691,7 @@ const transformShow = (dir, node, context) => {
|
|
|
2691
2691
|
const { exp, loc } = dir;
|
|
2692
2692
|
if (!exp) {
|
|
2693
2693
|
context.onError(
|
|
2694
|
-
createDOMCompilerError(
|
|
2694
|
+
createDOMCompilerError(61, loc)
|
|
2695
2695
|
);
|
|
2696
2696
|
}
|
|
2697
2697
|
return {
|
|
@@ -2914,7 +2914,7 @@ function evaluateConstant(exp) {
|
|
|
2914
2914
|
const ignoreSideEffectTags = (node, context) => {
|
|
2915
2915
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
2916
2916
|
context.onError(
|
|
2917
|
-
createDOMCompilerError(
|
|
2917
|
+
createDOMCompilerError(63, node.loc)
|
|
2918
2918
|
);
|
|
2919
2919
|
context.removeNode();
|
|
2920
2920
|
}
|
package/dist/compiler-dom.d.ts
CHANGED
|
@@ -21,18 +21,18 @@ interface DOMCompilerError extends CompilerError {
|
|
|
21
21
|
}
|
|
22
22
|
export declare function createDOMCompilerError(code: DOMErrorCodes, loc?: SourceLocation): DOMCompilerError;
|
|
23
23
|
export declare const enum DOMErrorCodes {
|
|
24
|
-
X_V_HTML_NO_EXPRESSION =
|
|
25
|
-
X_V_HTML_WITH_CHILDREN =
|
|
26
|
-
X_V_TEXT_NO_EXPRESSION =
|
|
27
|
-
X_V_TEXT_WITH_CHILDREN =
|
|
28
|
-
X_V_MODEL_ON_INVALID_ELEMENT =
|
|
29
|
-
X_V_MODEL_ARG_ON_ELEMENT =
|
|
30
|
-
X_V_MODEL_ON_FILE_INPUT_ELEMENT =
|
|
31
|
-
X_V_MODEL_UNNECESSARY_VALUE =
|
|
32
|
-
X_V_SHOW_NO_EXPRESSION =
|
|
33
|
-
X_TRANSITION_INVALID_CHILDREN =
|
|
34
|
-
X_IGNORED_SIDE_EFFECT_TAG =
|
|
35
|
-
__EXTEND_POINT__ =
|
|
24
|
+
X_V_HTML_NO_EXPRESSION = 53,
|
|
25
|
+
X_V_HTML_WITH_CHILDREN = 54,
|
|
26
|
+
X_V_TEXT_NO_EXPRESSION = 55,
|
|
27
|
+
X_V_TEXT_WITH_CHILDREN = 56,
|
|
28
|
+
X_V_MODEL_ON_INVALID_ELEMENT = 57,
|
|
29
|
+
X_V_MODEL_ARG_ON_ELEMENT = 58,
|
|
30
|
+
X_V_MODEL_ON_FILE_INPUT_ELEMENT = 59,
|
|
31
|
+
X_V_MODEL_UNNECESSARY_VALUE = 60,
|
|
32
|
+
X_V_SHOW_NO_EXPRESSION = 61,
|
|
33
|
+
X_TRANSITION_INVALID_CHILDREN = 62,
|
|
34
|
+
X_IGNORED_SIDE_EFFECT_TAG = 63,
|
|
35
|
+
__EXTEND_POINT__ = 64
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export declare const DOMNodeTransforms: NodeTransform[];
|
|
@@ -201,8 +201,11 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
|
|
|
201
201
|
[48]: `ES module mode is not supported in this build of compiler.`,
|
|
202
202
|
[49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
|
|
203
203
|
[50]: `"scopeId" option is only supported in module mode.`,
|
|
204
|
+
// deprecations
|
|
205
|
+
[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.`,
|
|
206
|
+
[52]: `v-is="component-name" has been deprecated. Use is="vue:component-name" instead. v-is support will be removed in 3.4.`,
|
|
204
207
|
// just to fulfill types
|
|
205
|
-
[
|
|
208
|
+
[53]: ``
|
|
206
209
|
};
|
|
207
210
|
|
|
208
211
|
const FRAGMENT = Symbol(`Fragment` );
|
|
@@ -2804,13 +2807,6 @@ const isFunctionType = (node) => {
|
|
|
2804
2807
|
};
|
|
2805
2808
|
const isStaticProperty = (node) => node && (node.type === "ObjectProperty" || node.type === "ObjectMethod") && !node.computed;
|
|
2806
2809
|
const isStaticPropertyKey = (node, parent) => isStaticProperty(parent) && parent.key === node;
|
|
2807
|
-
function getImportedName(specifier) {
|
|
2808
|
-
if (specifier.type === "ImportSpecifier")
|
|
2809
|
-
return specifier.imported.type === "Identifier" ? specifier.imported.name : specifier.imported.value;
|
|
2810
|
-
else if (specifier.type === "ImportNamespaceSpecifier")
|
|
2811
|
-
return "*";
|
|
2812
|
-
return "default";
|
|
2813
|
-
}
|
|
2814
2810
|
const TS_NODE_TYPES = [
|
|
2815
2811
|
"TSAsExpression",
|
|
2816
2812
|
// foo as number
|
|
@@ -2823,16 +2819,6 @@ const TS_NODE_TYPES = [
|
|
|
2823
2819
|
"TSSatisfiesExpression"
|
|
2824
2820
|
// foo satisfies T
|
|
2825
2821
|
];
|
|
2826
|
-
function unwrapTSNode(node) {
|
|
2827
|
-
if (TS_NODE_TYPES.includes(node.type)) {
|
|
2828
|
-
return unwrapTSNode(node.expression);
|
|
2829
|
-
} else {
|
|
2830
|
-
return node;
|
|
2831
|
-
}
|
|
2832
|
-
}
|
|
2833
|
-
function isCallOf(node, test) {
|
|
2834
|
-
return !!(node && test && node.type === "CallExpression" && node.callee.type === "Identifier" && (typeof test === "string" ? node.callee.name === test : test(node.callee.name)));
|
|
2835
|
-
}
|
|
2836
2822
|
|
|
2837
2823
|
const prohibitedKeywordRE = new RegExp(
|
|
2838
2824
|
"\\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"
|
|
@@ -3802,6 +3788,11 @@ function resolveComponentType(node, context, ssr = false) {
|
|
|
3802
3788
|
}
|
|
3803
3789
|
const isDir = !isExplicitDynamic && findDir(node, "is");
|
|
3804
3790
|
if (isDir && isDir.exp) {
|
|
3791
|
+
{
|
|
3792
|
+
context.onWarn(
|
|
3793
|
+
createCompilerError(52, isDir.loc)
|
|
3794
|
+
);
|
|
3795
|
+
}
|
|
3805
3796
|
return createCallExpression(context.helper(RESOLVE_DYNAMIC_COMPONENT), [
|
|
3806
3797
|
isDir.exp
|
|
3807
3798
|
]);
|
|
@@ -4307,6 +4298,11 @@ const transformOn$1 = (dir, node, context, augmentor) => {
|
|
|
4307
4298
|
if (arg.type === 4) {
|
|
4308
4299
|
if (arg.isStatic) {
|
|
4309
4300
|
let rawName = arg.content;
|
|
4301
|
+
if (rawName.startsWith("vnode")) {
|
|
4302
|
+
context.onWarn(
|
|
4303
|
+
createCompilerError(51, arg.loc)
|
|
4304
|
+
);
|
|
4305
|
+
}
|
|
4310
4306
|
if (rawName.startsWith("vue:")) {
|
|
4311
4307
|
rawName = `vnode-${rawName.slice(4)}`;
|
|
4312
4308
|
}
|
|
@@ -4503,7 +4499,7 @@ const transformText = (node, context) => {
|
|
|
4503
4499
|
const seen$1 = /* @__PURE__ */ new WeakSet();
|
|
4504
4500
|
const transformOnce = (node, context) => {
|
|
4505
4501
|
if (node.type === 1 && findDir(node, "once", true)) {
|
|
4506
|
-
if (seen$1.has(node) || context.inVOnce) {
|
|
4502
|
+
if (seen$1.has(node) || context.inVOnce || context.inSSR) {
|
|
4507
4503
|
return;
|
|
4508
4504
|
}
|
|
4509
4505
|
seen$1.add(node);
|
|
@@ -4954,29 +4950,29 @@ function createDOMCompilerError(code, loc) {
|
|
|
4954
4950
|
);
|
|
4955
4951
|
}
|
|
4956
4952
|
const DOMErrorMessages = {
|
|
4957
|
-
[
|
|
4958
|
-
[
|
|
4959
|
-
[
|
|
4960
|
-
[
|
|
4961
|
-
[
|
|
4962
|
-
[
|
|
4963
|
-
[
|
|
4964
|
-
[
|
|
4965
|
-
[
|
|
4966
|
-
[
|
|
4967
|
-
[
|
|
4953
|
+
[53]: `v-html is missing expression.`,
|
|
4954
|
+
[54]: `v-html will override element children.`,
|
|
4955
|
+
[55]: `v-text is missing expression.`,
|
|
4956
|
+
[56]: `v-text will override element children.`,
|
|
4957
|
+
[57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
|
|
4958
|
+
[58]: `v-model argument is not supported on plain elements.`,
|
|
4959
|
+
[59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
|
|
4960
|
+
[60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
|
|
4961
|
+
[61]: `v-show is missing expression.`,
|
|
4962
|
+
[62]: `<Transition> expects exactly one child element or component.`,
|
|
4963
|
+
[63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
|
|
4968
4964
|
};
|
|
4969
4965
|
|
|
4970
4966
|
const transformVHtml = (dir, node, context) => {
|
|
4971
4967
|
const { exp, loc } = dir;
|
|
4972
4968
|
if (!exp) {
|
|
4973
4969
|
context.onError(
|
|
4974
|
-
createDOMCompilerError(
|
|
4970
|
+
createDOMCompilerError(53, loc)
|
|
4975
4971
|
);
|
|
4976
4972
|
}
|
|
4977
4973
|
if (node.children.length) {
|
|
4978
4974
|
context.onError(
|
|
4979
|
-
createDOMCompilerError(
|
|
4975
|
+
createDOMCompilerError(54, loc)
|
|
4980
4976
|
);
|
|
4981
4977
|
node.children.length = 0;
|
|
4982
4978
|
}
|
|
@@ -4994,12 +4990,12 @@ const transformVText = (dir, node, context) => {
|
|
|
4994
4990
|
const { exp, loc } = dir;
|
|
4995
4991
|
if (!exp) {
|
|
4996
4992
|
context.onError(
|
|
4997
|
-
createDOMCompilerError(
|
|
4993
|
+
createDOMCompilerError(55, loc)
|
|
4998
4994
|
);
|
|
4999
4995
|
}
|
|
5000
4996
|
if (node.children.length) {
|
|
5001
4997
|
context.onError(
|
|
5002
|
-
createDOMCompilerError(
|
|
4998
|
+
createDOMCompilerError(56, loc)
|
|
5003
4999
|
);
|
|
5004
5000
|
node.children.length = 0;
|
|
5005
5001
|
}
|
|
@@ -5025,7 +5021,7 @@ const transformModel = (dir, node, context) => {
|
|
|
5025
5021
|
if (dir.arg) {
|
|
5026
5022
|
context.onError(
|
|
5027
5023
|
createDOMCompilerError(
|
|
5028
|
-
|
|
5024
|
+
58,
|
|
5029
5025
|
dir.arg.loc
|
|
5030
5026
|
)
|
|
5031
5027
|
);
|
|
@@ -5035,7 +5031,7 @@ const transformModel = (dir, node, context) => {
|
|
|
5035
5031
|
if (value) {
|
|
5036
5032
|
context.onError(
|
|
5037
5033
|
createDOMCompilerError(
|
|
5038
|
-
|
|
5034
|
+
60,
|
|
5039
5035
|
value.loc
|
|
5040
5036
|
)
|
|
5041
5037
|
);
|
|
@@ -5063,7 +5059,7 @@ const transformModel = (dir, node, context) => {
|
|
|
5063
5059
|
isInvalidType = true;
|
|
5064
5060
|
context.onError(
|
|
5065
5061
|
createDOMCompilerError(
|
|
5066
|
-
|
|
5062
|
+
59,
|
|
5067
5063
|
dir.loc
|
|
5068
5064
|
)
|
|
5069
5065
|
);
|
|
@@ -5089,7 +5085,7 @@ const transformModel = (dir, node, context) => {
|
|
|
5089
5085
|
} else {
|
|
5090
5086
|
context.onError(
|
|
5091
5087
|
createDOMCompilerError(
|
|
5092
|
-
|
|
5088
|
+
57,
|
|
5093
5089
|
dir.loc
|
|
5094
5090
|
)
|
|
5095
5091
|
);
|
|
@@ -5201,7 +5197,7 @@ const transformShow = (dir, node, context) => {
|
|
|
5201
5197
|
const { exp, loc } = dir;
|
|
5202
5198
|
if (!exp) {
|
|
5203
5199
|
context.onError(
|
|
5204
|
-
createDOMCompilerError(
|
|
5200
|
+
createDOMCompilerError(61, loc)
|
|
5205
5201
|
);
|
|
5206
5202
|
}
|
|
5207
5203
|
return {
|
|
@@ -5221,7 +5217,7 @@ const transformTransition = (node, context) => {
|
|
|
5221
5217
|
if (hasMultipleChildren(node)) {
|
|
5222
5218
|
context.onError(
|
|
5223
5219
|
createDOMCompilerError(
|
|
5224
|
-
|
|
5220
|
+
62,
|
|
5225
5221
|
{
|
|
5226
5222
|
start: node.children[0].loc.start,
|
|
5227
5223
|
end: node.children[node.children.length - 1].loc.end,
|
|
@@ -5258,7 +5254,7 @@ function hasMultipleChildren(node) {
|
|
|
5258
5254
|
const ignoreSideEffectTags = (node, context) => {
|
|
5259
5255
|
if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
|
|
5260
5256
|
context.onError(
|
|
5261
|
-
createDOMCompilerError(
|
|
5257
|
+
createDOMCompilerError(63, node.loc)
|
|
5262
5258
|
);
|
|
5263
5259
|
context.removeNode();
|
|
5264
5260
|
}
|
|
@@ -5303,4 +5299,4 @@ function parse(template, options = {}) {
|
|
|
5303
5299
|
return baseParse(template, extend({}, parserOptions, options));
|
|
5304
5300
|
}
|
|
5305
5301
|
|
|
5306
|
-
export { BASE_TRANSITION, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, DOMDirectiveTransforms, DOMNodeTransforms, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, 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, extractIdentifiers, findDir, findProp, generate, generateCodeFrame, getBaseTransformPreset, getConstantType,
|
|
5302
|
+
export { BASE_TRANSITION, CAMELIZE, CAPITALIZE, CREATE_BLOCK, CREATE_COMMENT, CREATE_ELEMENT_BLOCK, CREATE_ELEMENT_VNODE, CREATE_SLOTS, CREATE_STATIC, CREATE_TEXT, CREATE_VNODE, DOMDirectiveTransforms, DOMNodeTransforms, FRAGMENT, GUARD_REACTIVE_PROPS, IS_MEMO_SAME, IS_REF, KEEP_ALIVE, MERGE_PROPS, NORMALIZE_CLASS, NORMALIZE_PROPS, NORMALIZE_STYLE, 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, extractIdentifiers, findDir, findProp, generate, generateCodeFrame, getBaseTransformPreset, getConstantType, getInnerRange, getMemoedVNodeCall, getVNodeBlockHelper, getVNodeHelper, hasDynamicKeyVBind, hasScopeRef, helperNameMap, injectProp, isBuiltInType, 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 };
|