@vue/compiler-dom 3.6.0-alpha.6 → 3.6.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-dom v3.6.0-alpha.6
2
+ * @vue/compiler-dom v3.6.0-beta.1
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -144,81 +144,81 @@ var VueCompilerDOM = (function (exports) {
144
144
  const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
145
145
  const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
146
146
 
147
- const FRAGMENT = Symbol(`Fragment` );
148
- const TELEPORT = Symbol(`Teleport` );
149
- const SUSPENSE = Symbol(`Suspense` );
150
- const KEEP_ALIVE = Symbol(`KeepAlive` );
151
- const BASE_TRANSITION = Symbol(
147
+ const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
148
+ const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
149
+ const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
150
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
151
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
152
152
  `BaseTransition`
153
153
  );
154
- const OPEN_BLOCK = Symbol(`openBlock` );
155
- const CREATE_BLOCK = Symbol(`createBlock` );
156
- const CREATE_ELEMENT_BLOCK = Symbol(
154
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
155
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
156
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
157
157
  `createElementBlock`
158
158
  );
159
- const CREATE_VNODE = Symbol(`createVNode` );
160
- const CREATE_ELEMENT_VNODE = Symbol(
159
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
160
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
161
161
  `createElementVNode`
162
162
  );
163
- const CREATE_COMMENT = Symbol(
163
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
164
164
  `createCommentVNode`
165
165
  );
166
- const CREATE_TEXT = Symbol(
166
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
167
167
  `createTextVNode`
168
168
  );
169
- const CREATE_STATIC = Symbol(
169
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
170
170
  `createStaticVNode`
171
171
  );
172
- const RESOLVE_COMPONENT = Symbol(
172
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
173
173
  `resolveComponent`
174
174
  );
175
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
175
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
176
176
  `resolveDynamicComponent`
177
177
  );
178
- const RESOLVE_DIRECTIVE = Symbol(
178
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
179
179
  `resolveDirective`
180
180
  );
181
- const RESOLVE_FILTER = Symbol(
181
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
182
182
  `resolveFilter`
183
183
  );
184
- const WITH_DIRECTIVES = Symbol(
184
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
185
185
  `withDirectives`
186
186
  );
187
- const RENDER_LIST = Symbol(`renderList` );
188
- const RENDER_SLOT = Symbol(`renderSlot` );
189
- const CREATE_SLOTS = Symbol(`createSlots` );
190
- const TO_DISPLAY_STRING = Symbol(
187
+ const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
188
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
189
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
190
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
191
191
  `toDisplayString`
192
192
  );
193
- const MERGE_PROPS = Symbol(`mergeProps` );
194
- const NORMALIZE_CLASS = Symbol(
193
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
194
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
195
195
  `normalizeClass`
196
196
  );
197
- const NORMALIZE_STYLE = Symbol(
197
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
198
198
  `normalizeStyle`
199
199
  );
200
- const NORMALIZE_PROPS = Symbol(
200
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
201
201
  `normalizeProps`
202
202
  );
203
- const GUARD_REACTIVE_PROPS = Symbol(
203
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
204
204
  `guardReactiveProps`
205
205
  );
206
- const TO_HANDLERS = Symbol(`toHandlers` );
207
- const CAMELIZE = Symbol(`camelize` );
208
- const CAPITALIZE = Symbol(`capitalize` );
209
- const TO_HANDLER_KEY = Symbol(
206
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
207
+ const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
208
+ const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
209
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
210
210
  `toHandlerKey`
211
211
  );
212
- const SET_BLOCK_TRACKING = Symbol(
212
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
213
213
  `setBlockTracking`
214
214
  );
215
- const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
216
- const POP_SCOPE_ID = Symbol(`popScopeId` );
217
- const WITH_CTX = Symbol(`withCtx` );
218
- const UNREF = Symbol(`unref` );
219
- const IS_REF = Symbol(`isRef` );
220
- const WITH_MEMO = Symbol(`withMemo` );
221
- const IS_MEMO_SAME = Symbol(`isMemoSame` );
215
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
216
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
217
+ const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
218
+ const UNREF = /* @__PURE__ */ Symbol(`unref` );
219
+ const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
220
+ const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
221
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
222
222
  const helperNameMap = {
223
223
  [FRAGMENT]: `Fragment`,
224
224
  [TELEPORT]: `Teleport`,
@@ -634,14 +634,28 @@ var VueCompilerDOM = (function (exports) {
634
634
  getPos(index) {
635
635
  let line = 1;
636
636
  let column = index + 1;
637
- for (let i = this.newlines.length - 1; i >= 0; i--) {
638
- const newlineIndex = this.newlines[i];
639
- if (index > newlineIndex) {
640
- line = i + 2;
641
- column = index - newlineIndex;
642
- break;
637
+ const length = this.newlines.length;
638
+ let j = -1;
639
+ if (length > 100) {
640
+ let l = -1;
641
+ let r = length;
642
+ while (l + 1 < r) {
643
+ const m = l + r >>> 1;
644
+ this.newlines[m] < index ? l = m : r = m;
645
+ }
646
+ j = l;
647
+ } else {
648
+ for (let i = length - 1; i >= 0; i--) {
649
+ if (index > this.newlines[i]) {
650
+ j = i;
651
+ break;
652
+ }
643
653
  }
644
654
  }
655
+ if (j >= 0) {
656
+ line = j + 2;
657
+ column = index - this.newlines[j];
658
+ }
645
659
  return {
646
660
  column,
647
661
  line,
@@ -1518,24 +1532,26 @@ var VueCompilerDOM = (function (exports) {
1518
1532
  "43": "X_V_MODEL_ON_SCOPE_VARIABLE",
1519
1533
  "X_V_MODEL_ON_PROPS": 44,
1520
1534
  "44": "X_V_MODEL_ON_PROPS",
1521
- "X_INVALID_EXPRESSION": 45,
1522
- "45": "X_INVALID_EXPRESSION",
1523
- "X_KEEP_ALIVE_INVALID_CHILDREN": 46,
1524
- "46": "X_KEEP_ALIVE_INVALID_CHILDREN",
1525
- "X_PREFIX_ID_NOT_SUPPORTED": 47,
1526
- "47": "X_PREFIX_ID_NOT_SUPPORTED",
1527
- "X_MODULE_MODE_NOT_SUPPORTED": 48,
1528
- "48": "X_MODULE_MODE_NOT_SUPPORTED",
1529
- "X_CACHE_HANDLER_NOT_SUPPORTED": 49,
1530
- "49": "X_CACHE_HANDLER_NOT_SUPPORTED",
1531
- "X_SCOPE_ID_NOT_SUPPORTED": 50,
1532
- "50": "X_SCOPE_ID_NOT_SUPPORTED",
1533
- "X_VNODE_HOOKS": 51,
1534
- "51": "X_VNODE_HOOKS",
1535
- "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 52,
1536
- "52": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1537
- "__EXTEND_POINT__": 53,
1538
- "53": "__EXTEND_POINT__"
1535
+ "X_V_MODEL_ON_CONST": 45,
1536
+ "45": "X_V_MODEL_ON_CONST",
1537
+ "X_INVALID_EXPRESSION": 46,
1538
+ "46": "X_INVALID_EXPRESSION",
1539
+ "X_KEEP_ALIVE_INVALID_CHILDREN": 47,
1540
+ "47": "X_KEEP_ALIVE_INVALID_CHILDREN",
1541
+ "X_PREFIX_ID_NOT_SUPPORTED": 48,
1542
+ "48": "X_PREFIX_ID_NOT_SUPPORTED",
1543
+ "X_MODULE_MODE_NOT_SUPPORTED": 49,
1544
+ "49": "X_MODULE_MODE_NOT_SUPPORTED",
1545
+ "X_CACHE_HANDLER_NOT_SUPPORTED": 50,
1546
+ "50": "X_CACHE_HANDLER_NOT_SUPPORTED",
1547
+ "X_SCOPE_ID_NOT_SUPPORTED": 51,
1548
+ "51": "X_SCOPE_ID_NOT_SUPPORTED",
1549
+ "X_VNODE_HOOKS": 52,
1550
+ "52": "X_VNODE_HOOKS",
1551
+ "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 53,
1552
+ "53": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1553
+ "__EXTEND_POINT__": 54,
1554
+ "54": "__EXTEND_POINT__"
1539
1555
  };
1540
1556
  const errorMessages = {
1541
1557
  // parse errors
@@ -1576,7 +1592,7 @@ var VueCompilerDOM = (function (exports) {
1576
1592
  [32]: `v-for has invalid expression.`,
1577
1593
  [33]: `<template v-for> key should be placed on the <template> tag.`,
1578
1594
  [34]: `v-bind is missing expression.`,
1579
- [52]: `v-bind with same-name shorthand only allows static argument.`,
1595
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
1580
1596
  [35]: `v-on is missing expression.`,
1581
1597
  [36]: `Unexpected custom directive on <slot> outlet.`,
1582
1598
  [37]: `Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,
@@ -1588,16 +1604,17 @@ var VueCompilerDOM = (function (exports) {
1588
1604
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1589
1605
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
1590
1606
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1591
- [45]: `Error parsing JavaScript expression: `,
1592
- [46]: `<KeepAlive> expects exactly one child component.`,
1593
- [51]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
1607
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
1608
+ [46]: `Error parsing JavaScript expression: `,
1609
+ [47]: `<KeepAlive> expects exactly one child component.`,
1610
+ [52]: `@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,
1594
1611
  // generic errors
1595
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1596
- [48]: `ES module mode is not supported in this build of compiler.`,
1597
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1598
- [50]: `"scopeId" option is only supported in module mode.`,
1612
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1613
+ [49]: `ES module mode is not supported in this build of compiler.`,
1614
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1615
+ [51]: `"scopeId" option is only supported in module mode.`,
1599
1616
  // just to fulfill types
1600
- [53]: ``
1617
+ [54]: ``
1601
1618
  };
1602
1619
 
1603
1620
  function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
@@ -2105,7 +2122,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
2105
2122
  }
2106
2123
  }
2107
2124
  function filterNonCommentChildren(node) {
2108
- return node.children.filter((n) => n.type !== 3);
2125
+ return node.children.filter((n) => !isCommentOrWhitespace(n));
2109
2126
  }
2110
2127
  function hasSingleChild(node) {
2111
2128
  return filterNonCommentChildren(node).length === 1;
@@ -4089,7 +4106,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
4089
4106
  }
4090
4107
  context.onError(
4091
4108
  createCompilerError(
4092
- 45,
4109
+ 46,
4093
4110
  node.loc,
4094
4111
  void 0,
4095
4112
  message
@@ -4884,7 +4901,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
4884
4901
  patchFlag |= 1024;
4885
4902
  if (node.children.length > 1) {
4886
4903
  context.onError(
4887
- createCompilerError(46, {
4904
+ createCompilerError(47, {
4888
4905
  start: node.children[0].loc.start,
4889
4906
  end: node.children[node.children.length - 1].loc.end,
4890
4907
  source: ""
@@ -5471,7 +5488,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5471
5488
  if (arg.isStatic) {
5472
5489
  let rawName = arg.content;
5473
5490
  if (rawName.startsWith("vnode")) {
5474
- context.onError(createCompilerError(51, arg.loc));
5491
+ context.onError(createCompilerError(52, arg.loc));
5475
5492
  }
5476
5493
  if (rawName.startsWith("vue:")) {
5477
5494
  rawName = `vnode-${rawName.slice(4)}`;
@@ -5704,6 +5721,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5704
5721
  context.onError(createCompilerError(44, exp.loc));
5705
5722
  return createTransformProps();
5706
5723
  }
5724
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
5725
+ context.onError(createCompilerError(45, exp.loc));
5726
+ return createTransformProps();
5727
+ }
5707
5728
  if (!expString.trim() || !isMemberExpression(exp) && true) {
5708
5729
  context.onError(
5709
5730
  createCompilerError(42, exp.loc)
@@ -5932,7 +5953,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5932
5953
  if (arg.type !== 4 || !arg.isStatic) {
5933
5954
  context.onError(
5934
5955
  createCompilerError(
5935
- 52,
5956
+ 53,
5936
5957
  arg.loc
5937
5958
  )
5938
5959
  );
@@ -5976,17 +5997,17 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5976
5997
  const isModuleMode = options.mode === "module";
5977
5998
  {
5978
5999
  if (options.prefixIdentifiers === true) {
5979
- onError(createCompilerError(47));
5980
- } else if (isModuleMode) {
5981
6000
  onError(createCompilerError(48));
6001
+ } else if (isModuleMode) {
6002
+ onError(createCompilerError(49));
5982
6003
  }
5983
6004
  }
5984
6005
  const prefixIdentifiers = false;
5985
6006
  if (options.cacheHandlers) {
5986
- onError(createCompilerError(49));
6007
+ onError(createCompilerError(50));
5987
6008
  }
5988
6009
  if (options.scopeId && !isModuleMode) {
5989
- onError(createCompilerError(50));
6010
+ onError(createCompilerError(51));
5990
6011
  }
5991
6012
  const resolvedOptions = extend({}, options, {
5992
6013
  prefixIdentifiers
@@ -6027,26 +6048,26 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6027
6048
 
6028
6049
  const noopDirectiveTransform = () => ({ props: [] });
6029
6050
 
6030
- const V_MODEL_RADIO = Symbol(`vModelRadio` );
6031
- const V_MODEL_CHECKBOX = Symbol(
6051
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
6052
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
6032
6053
  `vModelCheckbox`
6033
6054
  );
6034
- const V_MODEL_TEXT = Symbol(`vModelText` );
6035
- const V_MODEL_SELECT = Symbol(
6055
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
6056
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
6036
6057
  `vModelSelect`
6037
6058
  );
6038
- const V_MODEL_DYNAMIC = Symbol(
6059
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
6039
6060
  `vModelDynamic`
6040
6061
  );
6041
- const V_ON_WITH_MODIFIERS = Symbol(
6062
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
6042
6063
  `vOnModifiersGuard`
6043
6064
  );
6044
- const V_ON_WITH_KEYS = Symbol(
6065
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
6045
6066
  `vOnKeysGuard`
6046
6067
  );
6047
- const V_SHOW = Symbol(`vShow` );
6048
- const TRANSITION = Symbol(`Transition` );
6049
- const TRANSITION_GROUP = Symbol(
6068
+ const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
6069
+ const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
6070
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
6050
6071
  `TransitionGroup`
6051
6072
  );
6052
6073
  registerRuntimeHelpers({
@@ -6157,57 +6178,57 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6157
6178
  );
6158
6179
  }
6159
6180
  const DOMErrorCodes = {
6160
- "X_V_HTML_NO_EXPRESSION": 53,
6161
- "53": "X_V_HTML_NO_EXPRESSION",
6162
- "X_V_HTML_WITH_CHILDREN": 54,
6163
- "54": "X_V_HTML_WITH_CHILDREN",
6164
- "X_V_TEXT_NO_EXPRESSION": 55,
6165
- "55": "X_V_TEXT_NO_EXPRESSION",
6166
- "X_V_TEXT_WITH_CHILDREN": 56,
6167
- "56": "X_V_TEXT_WITH_CHILDREN",
6168
- "X_V_MODEL_ON_INVALID_ELEMENT": 57,
6169
- "57": "X_V_MODEL_ON_INVALID_ELEMENT",
6170
- "X_V_MODEL_ARG_ON_ELEMENT": 58,
6171
- "58": "X_V_MODEL_ARG_ON_ELEMENT",
6172
- "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 59,
6173
- "59": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
6174
- "X_V_MODEL_UNNECESSARY_VALUE": 60,
6175
- "60": "X_V_MODEL_UNNECESSARY_VALUE",
6176
- "X_V_SHOW_NO_EXPRESSION": 61,
6177
- "61": "X_V_SHOW_NO_EXPRESSION",
6178
- "X_TRANSITION_INVALID_CHILDREN": 62,
6179
- "62": "X_TRANSITION_INVALID_CHILDREN",
6180
- "X_IGNORED_SIDE_EFFECT_TAG": 63,
6181
- "63": "X_IGNORED_SIDE_EFFECT_TAG",
6182
- "__EXTEND_POINT__": 64,
6183
- "64": "__EXTEND_POINT__"
6181
+ "X_V_HTML_NO_EXPRESSION": 54,
6182
+ "54": "X_V_HTML_NO_EXPRESSION",
6183
+ "X_V_HTML_WITH_CHILDREN": 55,
6184
+ "55": "X_V_HTML_WITH_CHILDREN",
6185
+ "X_V_TEXT_NO_EXPRESSION": 56,
6186
+ "56": "X_V_TEXT_NO_EXPRESSION",
6187
+ "X_V_TEXT_WITH_CHILDREN": 57,
6188
+ "57": "X_V_TEXT_WITH_CHILDREN",
6189
+ "X_V_MODEL_ON_INVALID_ELEMENT": 58,
6190
+ "58": "X_V_MODEL_ON_INVALID_ELEMENT",
6191
+ "X_V_MODEL_ARG_ON_ELEMENT": 59,
6192
+ "59": "X_V_MODEL_ARG_ON_ELEMENT",
6193
+ "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 60,
6194
+ "60": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
6195
+ "X_V_MODEL_UNNECESSARY_VALUE": 61,
6196
+ "61": "X_V_MODEL_UNNECESSARY_VALUE",
6197
+ "X_V_SHOW_NO_EXPRESSION": 62,
6198
+ "62": "X_V_SHOW_NO_EXPRESSION",
6199
+ "X_TRANSITION_INVALID_CHILDREN": 63,
6200
+ "63": "X_TRANSITION_INVALID_CHILDREN",
6201
+ "X_IGNORED_SIDE_EFFECT_TAG": 64,
6202
+ "64": "X_IGNORED_SIDE_EFFECT_TAG",
6203
+ "__EXTEND_POINT__": 65,
6204
+ "65": "__EXTEND_POINT__"
6184
6205
  };
6185
6206
  const DOMErrorMessages = {
6186
- [53]: `v-html is missing expression.`,
6187
- [54]: `v-html will override element children.`,
6188
- [55]: `v-text is missing expression.`,
6189
- [56]: `v-text will override element children.`,
6190
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
6191
- [58]: `v-model argument is not supported on plain elements.`,
6192
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
6193
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
6194
- [61]: `v-show is missing expression.`,
6195
- [62]: `<Transition> expects exactly one child element or component.`,
6196
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
6207
+ [54]: `v-html is missing expression.`,
6208
+ [55]: `v-html will override element children.`,
6209
+ [56]: `v-text is missing expression.`,
6210
+ [57]: `v-text will override element children.`,
6211
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
6212
+ [59]: `v-model argument is not supported on plain elements.`,
6213
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
6214
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
6215
+ [62]: `v-show is missing expression.`,
6216
+ [63]: `<Transition> expects exactly one child element or component.`,
6217
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`,
6197
6218
  // just to fulfill types
6198
- [64]: ``
6219
+ [65]: ``
6199
6220
  };
6200
6221
 
6201
6222
  const transformVHtml = (dir, node, context) => {
6202
6223
  const { exp, loc } = dir;
6203
6224
  if (!exp) {
6204
6225
  context.onError(
6205
- createDOMCompilerError(53, loc)
6226
+ createDOMCompilerError(54, loc)
6206
6227
  );
6207
6228
  }
6208
6229
  if (node.children.length) {
6209
6230
  context.onError(
6210
- createDOMCompilerError(54, loc)
6231
+ createDOMCompilerError(55, loc)
6211
6232
  );
6212
6233
  node.children.length = 0;
6213
6234
  }
@@ -6225,12 +6246,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6225
6246
  const { exp, loc } = dir;
6226
6247
  if (!exp) {
6227
6248
  context.onError(
6228
- createDOMCompilerError(55, loc)
6249
+ createDOMCompilerError(56, loc)
6229
6250
  );
6230
6251
  }
6231
6252
  if (node.children.length) {
6232
6253
  context.onError(
6233
- createDOMCompilerError(56, loc)
6254
+ createDOMCompilerError(57, loc)
6234
6255
  );
6235
6256
  node.children.length = 0;
6236
6257
  }
@@ -6256,7 +6277,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6256
6277
  if (dir.arg) {
6257
6278
  context.onError(
6258
6279
  createDOMCompilerError(
6259
- 58,
6280
+ 59,
6260
6281
  dir.arg.loc
6261
6282
  )
6262
6283
  );
@@ -6266,7 +6287,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6266
6287
  if (value && isStaticArgOf(value.arg, "value")) {
6267
6288
  context.onError(
6268
6289
  createDOMCompilerError(
6269
- 60,
6290
+ 61,
6270
6291
  value.loc
6271
6292
  )
6272
6293
  );
@@ -6294,7 +6315,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6294
6315
  isInvalidType = true;
6295
6316
  context.onError(
6296
6317
  createDOMCompilerError(
6297
- 59,
6318
+ 60,
6298
6319
  dir.loc
6299
6320
  )
6300
6321
  );
@@ -6320,7 +6341,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6320
6341
  } else {
6321
6342
  context.onError(
6322
6343
  createDOMCompilerError(
6323
- 57,
6344
+ 58,
6324
6345
  dir.loc
6325
6346
  )
6326
6347
  );
@@ -6431,7 +6452,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6431
6452
  const { exp, loc } = dir;
6432
6453
  if (!exp) {
6433
6454
  context.onError(
6434
- createDOMCompilerError(61, loc)
6455
+ createDOMCompilerError(62, loc)
6435
6456
  );
6436
6457
  }
6437
6458
  return {
@@ -6455,7 +6476,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6455
6476
  }
6456
6477
  if (hasMultipleChildren(node)) {
6457
6478
  onError(
6458
- createDOMCompilerError(62, {
6479
+ createDOMCompilerError(63, {
6459
6480
  start: node.children[0].loc.start,
6460
6481
  end: node.children[node.children.length - 1].loc.end,
6461
6482
  source: ""
@@ -6490,7 +6511,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6490
6511
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
6491
6512
  context.onError(
6492
6513
  createDOMCompilerError(
6493
- 63,
6514
+ 64,
6494
6515
  node.loc
6495
6516
  )
6496
6517
  );