@vue/compiler-dom 3.5.25 → 3.5.26

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.5.25
2
+ * @vue/compiler-dom v3.5.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -139,81 +139,81 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
139
139
  const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
140
140
  const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
141
141
 
142
- const FRAGMENT = Symbol(`Fragment` );
143
- const TELEPORT = Symbol(`Teleport` );
144
- const SUSPENSE = Symbol(`Suspense` );
145
- const KEEP_ALIVE = Symbol(`KeepAlive` );
146
- const BASE_TRANSITION = Symbol(
142
+ const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
143
+ const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
144
+ const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
145
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
146
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
147
147
  `BaseTransition`
148
148
  );
149
- const OPEN_BLOCK = Symbol(`openBlock` );
150
- const CREATE_BLOCK = Symbol(`createBlock` );
151
- const CREATE_ELEMENT_BLOCK = Symbol(
149
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
150
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
151
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
152
152
  `createElementBlock`
153
153
  );
154
- const CREATE_VNODE = Symbol(`createVNode` );
155
- const CREATE_ELEMENT_VNODE = Symbol(
154
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
155
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
156
156
  `createElementVNode`
157
157
  );
158
- const CREATE_COMMENT = Symbol(
158
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
159
159
  `createCommentVNode`
160
160
  );
161
- const CREATE_TEXT = Symbol(
161
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
162
162
  `createTextVNode`
163
163
  );
164
- const CREATE_STATIC = Symbol(
164
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
165
165
  `createStaticVNode`
166
166
  );
167
- const RESOLVE_COMPONENT = Symbol(
167
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
168
168
  `resolveComponent`
169
169
  );
170
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
170
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
171
171
  `resolveDynamicComponent`
172
172
  );
173
- const RESOLVE_DIRECTIVE = Symbol(
173
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
174
174
  `resolveDirective`
175
175
  );
176
- const RESOLVE_FILTER = Symbol(
176
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
177
177
  `resolveFilter`
178
178
  );
179
- const WITH_DIRECTIVES = Symbol(
179
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
180
180
  `withDirectives`
181
181
  );
182
- const RENDER_LIST = Symbol(`renderList` );
183
- const RENDER_SLOT = Symbol(`renderSlot` );
184
- const CREATE_SLOTS = Symbol(`createSlots` );
185
- const TO_DISPLAY_STRING = Symbol(
182
+ const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
183
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
184
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
185
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
186
186
  `toDisplayString`
187
187
  );
188
- const MERGE_PROPS = Symbol(`mergeProps` );
189
- const NORMALIZE_CLASS = Symbol(
188
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
189
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
190
190
  `normalizeClass`
191
191
  );
192
- const NORMALIZE_STYLE = Symbol(
192
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
193
193
  `normalizeStyle`
194
194
  );
195
- const NORMALIZE_PROPS = Symbol(
195
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
196
196
  `normalizeProps`
197
197
  );
198
- const GUARD_REACTIVE_PROPS = Symbol(
198
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
199
199
  `guardReactiveProps`
200
200
  );
201
- const TO_HANDLERS = Symbol(`toHandlers` );
202
- const CAMELIZE = Symbol(`camelize` );
203
- const CAPITALIZE = Symbol(`capitalize` );
204
- const TO_HANDLER_KEY = Symbol(
201
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
202
+ const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
203
+ const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
204
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
205
205
  `toHandlerKey`
206
206
  );
207
- const SET_BLOCK_TRACKING = Symbol(
207
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
208
208
  `setBlockTracking`
209
209
  );
210
- const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
211
- const POP_SCOPE_ID = Symbol(`popScopeId` );
212
- const WITH_CTX = Symbol(`withCtx` );
213
- const UNREF = Symbol(`unref` );
214
- const IS_REF = Symbol(`isRef` );
215
- const WITH_MEMO = Symbol(`withMemo` );
216
- const IS_MEMO_SAME = Symbol(`isMemoSame` );
210
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
211
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
212
+ const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
213
+ const UNREF = /* @__PURE__ */ Symbol(`unref` );
214
+ const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
215
+ const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
216
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
217
217
  const helperNameMap = {
218
218
  [FRAGMENT]: `Fragment`,
219
219
  [TELEPORT]: `Teleport`,
@@ -637,14 +637,28 @@ class Tokenizer {
637
637
  getPos(index) {
638
638
  let line = 1;
639
639
  let column = index + 1;
640
- for (let i = this.newlines.length - 1; i >= 0; i--) {
641
- const newlineIndex = this.newlines[i];
642
- if (index > newlineIndex) {
643
- line = i + 2;
644
- column = index - newlineIndex;
645
- break;
640
+ const length = this.newlines.length;
641
+ let j = -1;
642
+ if (length > 100) {
643
+ let l = -1;
644
+ let r = length;
645
+ while (l + 1 < r) {
646
+ const m = l + r >>> 1;
647
+ this.newlines[m] < index ? l = m : r = m;
648
+ }
649
+ j = l;
650
+ } else {
651
+ for (let i = length - 1; i >= 0; i--) {
652
+ if (index > this.newlines[i]) {
653
+ j = i;
654
+ break;
655
+ }
646
656
  }
647
657
  }
658
+ if (j >= 0) {
659
+ line = j + 2;
660
+ column = index - this.newlines[j];
661
+ }
648
662
  return {
649
663
  column,
650
664
  line,
@@ -1521,24 +1535,26 @@ const ErrorCodes = {
1521
1535
  "43": "X_V_MODEL_ON_SCOPE_VARIABLE",
1522
1536
  "X_V_MODEL_ON_PROPS": 44,
1523
1537
  "44": "X_V_MODEL_ON_PROPS",
1524
- "X_INVALID_EXPRESSION": 45,
1525
- "45": "X_INVALID_EXPRESSION",
1526
- "X_KEEP_ALIVE_INVALID_CHILDREN": 46,
1527
- "46": "X_KEEP_ALIVE_INVALID_CHILDREN",
1528
- "X_PREFIX_ID_NOT_SUPPORTED": 47,
1529
- "47": "X_PREFIX_ID_NOT_SUPPORTED",
1530
- "X_MODULE_MODE_NOT_SUPPORTED": 48,
1531
- "48": "X_MODULE_MODE_NOT_SUPPORTED",
1532
- "X_CACHE_HANDLER_NOT_SUPPORTED": 49,
1533
- "49": "X_CACHE_HANDLER_NOT_SUPPORTED",
1534
- "X_SCOPE_ID_NOT_SUPPORTED": 50,
1535
- "50": "X_SCOPE_ID_NOT_SUPPORTED",
1536
- "X_VNODE_HOOKS": 51,
1537
- "51": "X_VNODE_HOOKS",
1538
- "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 52,
1539
- "52": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1540
- "__EXTEND_POINT__": 53,
1541
- "53": "__EXTEND_POINT__"
1538
+ "X_V_MODEL_ON_CONST": 45,
1539
+ "45": "X_V_MODEL_ON_CONST",
1540
+ "X_INVALID_EXPRESSION": 46,
1541
+ "46": "X_INVALID_EXPRESSION",
1542
+ "X_KEEP_ALIVE_INVALID_CHILDREN": 47,
1543
+ "47": "X_KEEP_ALIVE_INVALID_CHILDREN",
1544
+ "X_PREFIX_ID_NOT_SUPPORTED": 48,
1545
+ "48": "X_PREFIX_ID_NOT_SUPPORTED",
1546
+ "X_MODULE_MODE_NOT_SUPPORTED": 49,
1547
+ "49": "X_MODULE_MODE_NOT_SUPPORTED",
1548
+ "X_CACHE_HANDLER_NOT_SUPPORTED": 50,
1549
+ "50": "X_CACHE_HANDLER_NOT_SUPPORTED",
1550
+ "X_SCOPE_ID_NOT_SUPPORTED": 51,
1551
+ "51": "X_SCOPE_ID_NOT_SUPPORTED",
1552
+ "X_VNODE_HOOKS": 52,
1553
+ "52": "X_VNODE_HOOKS",
1554
+ "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 53,
1555
+ "53": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1556
+ "__EXTEND_POINT__": 54,
1557
+ "54": "__EXTEND_POINT__"
1542
1558
  };
1543
1559
  const errorMessages = {
1544
1560
  // parse errors
@@ -1579,7 +1595,7 @@ const errorMessages = {
1579
1595
  [32]: `v-for has invalid expression.`,
1580
1596
  [33]: `<template v-for> key should be placed on the <template> tag.`,
1581
1597
  [34]: `v-bind is missing expression.`,
1582
- [52]: `v-bind with same-name shorthand only allows static argument.`,
1598
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
1583
1599
  [35]: `v-on is missing expression.`,
1584
1600
  [36]: `Unexpected custom directive on <slot> outlet.`,
1585
1601
  [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.`,
@@ -1591,16 +1607,17 @@ const errorMessages = {
1591
1607
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1592
1608
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
1593
1609
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1594
- [45]: `Error parsing JavaScript expression: `,
1595
- [46]: `<KeepAlive> expects exactly one child component.`,
1596
- [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.`,
1610
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
1611
+ [46]: `Error parsing JavaScript expression: `,
1612
+ [47]: `<KeepAlive> expects exactly one child component.`,
1613
+ [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.`,
1597
1614
  // generic errors
1598
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1599
- [48]: `ES module mode is not supported in this build of compiler.`,
1600
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1601
- [50]: `"scopeId" option is only supported in module mode.`,
1615
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1616
+ [49]: `ES module mode is not supported in this build of compiler.`,
1617
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1618
+ [51]: `"scopeId" option is only supported in module mode.`,
1602
1619
  // just to fulfill types
1603
- [53]: ``
1620
+ [54]: ``
1604
1621
  };
1605
1622
 
1606
1623
  function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
@@ -4003,7 +4020,7 @@ function validateBrowserExpression(node, context, asParams = false, asRawStateme
4003
4020
  }
4004
4021
  context.onError(
4005
4022
  createCompilerError(
4006
- 45,
4023
+ 46,
4007
4024
  node.loc,
4008
4025
  void 0,
4009
4026
  message
@@ -4797,7 +4814,7 @@ const transformElement = (node, context) => {
4797
4814
  patchFlag |= 1024;
4798
4815
  if (node.children.length > 1) {
4799
4816
  context.onError(
4800
- createCompilerError(46, {
4817
+ createCompilerError(47, {
4801
4818
  start: node.children[0].loc.start,
4802
4819
  end: node.children[node.children.length - 1].loc.end,
4803
4820
  source: ""
@@ -5384,7 +5401,7 @@ const transformOn$1 = (dir, node, context, augmentor) => {
5384
5401
  if (arg.isStatic) {
5385
5402
  let rawName = arg.content;
5386
5403
  if (rawName.startsWith("vnode")) {
5387
- context.onError(createCompilerError(51, arg.loc));
5404
+ context.onError(createCompilerError(52, arg.loc));
5388
5405
  }
5389
5406
  if (rawName.startsWith("vue:")) {
5390
5407
  rawName = `vnode-${rawName.slice(4)}`;
@@ -5617,6 +5634,10 @@ const transformModel$1 = (dir, node, context) => {
5617
5634
  context.onError(createCompilerError(44, exp.loc));
5618
5635
  return createTransformProps();
5619
5636
  }
5637
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
5638
+ context.onError(createCompilerError(45, exp.loc));
5639
+ return createTransformProps();
5640
+ }
5620
5641
  if (!expString.trim() || !isMemberExpression(exp) && true) {
5621
5642
  context.onError(
5622
5643
  createCompilerError(42, exp.loc)
@@ -5845,7 +5866,7 @@ const transformVBindShorthand = (node, context) => {
5845
5866
  if (arg.type !== 4 || !arg.isStatic) {
5846
5867
  context.onError(
5847
5868
  createCompilerError(
5848
- 52,
5869
+ 53,
5849
5870
  arg.loc
5850
5871
  )
5851
5872
  );
@@ -5889,17 +5910,17 @@ function baseCompile(source, options = {}) {
5889
5910
  const isModuleMode = options.mode === "module";
5890
5911
  {
5891
5912
  if (options.prefixIdentifiers === true) {
5892
- onError(createCompilerError(47));
5893
- } else if (isModuleMode) {
5894
5913
  onError(createCompilerError(48));
5914
+ } else if (isModuleMode) {
5915
+ onError(createCompilerError(49));
5895
5916
  }
5896
5917
  }
5897
5918
  const prefixIdentifiers = false;
5898
5919
  if (options.cacheHandlers) {
5899
- onError(createCompilerError(49));
5920
+ onError(createCompilerError(50));
5900
5921
  }
5901
5922
  if (options.scopeId && !isModuleMode) {
5902
- onError(createCompilerError(50));
5923
+ onError(createCompilerError(51));
5903
5924
  }
5904
5925
  const resolvedOptions = extend({}, options, {
5905
5926
  prefixIdentifiers
@@ -5940,26 +5961,26 @@ const BindingTypes = {
5940
5961
 
5941
5962
  const noopDirectiveTransform = () => ({ props: [] });
5942
5963
 
5943
- const V_MODEL_RADIO = Symbol(`vModelRadio` );
5944
- const V_MODEL_CHECKBOX = Symbol(
5964
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
5965
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
5945
5966
  `vModelCheckbox`
5946
5967
  );
5947
- const V_MODEL_TEXT = Symbol(`vModelText` );
5948
- const V_MODEL_SELECT = Symbol(
5968
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
5969
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
5949
5970
  `vModelSelect`
5950
5971
  );
5951
- const V_MODEL_DYNAMIC = Symbol(
5972
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
5952
5973
  `vModelDynamic`
5953
5974
  );
5954
- const V_ON_WITH_MODIFIERS = Symbol(
5975
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
5955
5976
  `vOnModifiersGuard`
5956
5977
  );
5957
- const V_ON_WITH_KEYS = Symbol(
5978
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
5958
5979
  `vOnKeysGuard`
5959
5980
  );
5960
- const V_SHOW = Symbol(`vShow` );
5961
- const TRANSITION = Symbol(`Transition` );
5962
- const TRANSITION_GROUP = Symbol(
5981
+ const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
5982
+ const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
5983
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
5963
5984
  `TransitionGroup`
5964
5985
  );
5965
5986
  registerRuntimeHelpers({
@@ -6070,55 +6091,55 @@ function createDOMCompilerError(code, loc) {
6070
6091
  );
6071
6092
  }
6072
6093
  const DOMErrorCodes = {
6073
- "X_V_HTML_NO_EXPRESSION": 53,
6074
- "53": "X_V_HTML_NO_EXPRESSION",
6075
- "X_V_HTML_WITH_CHILDREN": 54,
6076
- "54": "X_V_HTML_WITH_CHILDREN",
6077
- "X_V_TEXT_NO_EXPRESSION": 55,
6078
- "55": "X_V_TEXT_NO_EXPRESSION",
6079
- "X_V_TEXT_WITH_CHILDREN": 56,
6080
- "56": "X_V_TEXT_WITH_CHILDREN",
6081
- "X_V_MODEL_ON_INVALID_ELEMENT": 57,
6082
- "57": "X_V_MODEL_ON_INVALID_ELEMENT",
6083
- "X_V_MODEL_ARG_ON_ELEMENT": 58,
6084
- "58": "X_V_MODEL_ARG_ON_ELEMENT",
6085
- "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 59,
6086
- "59": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
6087
- "X_V_MODEL_UNNECESSARY_VALUE": 60,
6088
- "60": "X_V_MODEL_UNNECESSARY_VALUE",
6089
- "X_V_SHOW_NO_EXPRESSION": 61,
6090
- "61": "X_V_SHOW_NO_EXPRESSION",
6091
- "X_TRANSITION_INVALID_CHILDREN": 62,
6092
- "62": "X_TRANSITION_INVALID_CHILDREN",
6093
- "X_IGNORED_SIDE_EFFECT_TAG": 63,
6094
- "63": "X_IGNORED_SIDE_EFFECT_TAG",
6095
- "__EXTEND_POINT__": 64,
6096
- "64": "__EXTEND_POINT__"
6094
+ "X_V_HTML_NO_EXPRESSION": 54,
6095
+ "54": "X_V_HTML_NO_EXPRESSION",
6096
+ "X_V_HTML_WITH_CHILDREN": 55,
6097
+ "55": "X_V_HTML_WITH_CHILDREN",
6098
+ "X_V_TEXT_NO_EXPRESSION": 56,
6099
+ "56": "X_V_TEXT_NO_EXPRESSION",
6100
+ "X_V_TEXT_WITH_CHILDREN": 57,
6101
+ "57": "X_V_TEXT_WITH_CHILDREN",
6102
+ "X_V_MODEL_ON_INVALID_ELEMENT": 58,
6103
+ "58": "X_V_MODEL_ON_INVALID_ELEMENT",
6104
+ "X_V_MODEL_ARG_ON_ELEMENT": 59,
6105
+ "59": "X_V_MODEL_ARG_ON_ELEMENT",
6106
+ "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 60,
6107
+ "60": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
6108
+ "X_V_MODEL_UNNECESSARY_VALUE": 61,
6109
+ "61": "X_V_MODEL_UNNECESSARY_VALUE",
6110
+ "X_V_SHOW_NO_EXPRESSION": 62,
6111
+ "62": "X_V_SHOW_NO_EXPRESSION",
6112
+ "X_TRANSITION_INVALID_CHILDREN": 63,
6113
+ "63": "X_TRANSITION_INVALID_CHILDREN",
6114
+ "X_IGNORED_SIDE_EFFECT_TAG": 64,
6115
+ "64": "X_IGNORED_SIDE_EFFECT_TAG",
6116
+ "__EXTEND_POINT__": 65,
6117
+ "65": "__EXTEND_POINT__"
6097
6118
  };
6098
6119
  const DOMErrorMessages = {
6099
- [53]: `v-html is missing expression.`,
6100
- [54]: `v-html will override element children.`,
6101
- [55]: `v-text is missing expression.`,
6102
- [56]: `v-text will override element children.`,
6103
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
6104
- [58]: `v-model argument is not supported on plain elements.`,
6105
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
6106
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
6107
- [61]: `v-show is missing expression.`,
6108
- [62]: `<Transition> expects exactly one child element or component.`,
6109
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
6120
+ [54]: `v-html is missing expression.`,
6121
+ [55]: `v-html will override element children.`,
6122
+ [56]: `v-text is missing expression.`,
6123
+ [57]: `v-text will override element children.`,
6124
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
6125
+ [59]: `v-model argument is not supported on plain elements.`,
6126
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
6127
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
6128
+ [62]: `v-show is missing expression.`,
6129
+ [63]: `<Transition> expects exactly one child element or component.`,
6130
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
6110
6131
  };
6111
6132
 
6112
6133
  const transformVHtml = (dir, node, context) => {
6113
6134
  const { exp, loc } = dir;
6114
6135
  if (!exp) {
6115
6136
  context.onError(
6116
- createDOMCompilerError(53, loc)
6137
+ createDOMCompilerError(54, loc)
6117
6138
  );
6118
6139
  }
6119
6140
  if (node.children.length) {
6120
6141
  context.onError(
6121
- createDOMCompilerError(54, loc)
6142
+ createDOMCompilerError(55, loc)
6122
6143
  );
6123
6144
  node.children.length = 0;
6124
6145
  }
@@ -6136,12 +6157,12 @@ const transformVText = (dir, node, context) => {
6136
6157
  const { exp, loc } = dir;
6137
6158
  if (!exp) {
6138
6159
  context.onError(
6139
- createDOMCompilerError(55, loc)
6160
+ createDOMCompilerError(56, loc)
6140
6161
  );
6141
6162
  }
6142
6163
  if (node.children.length) {
6143
6164
  context.onError(
6144
- createDOMCompilerError(56, loc)
6165
+ createDOMCompilerError(57, loc)
6145
6166
  );
6146
6167
  node.children.length = 0;
6147
6168
  }
@@ -6167,7 +6188,7 @@ const transformModel = (dir, node, context) => {
6167
6188
  if (dir.arg) {
6168
6189
  context.onError(
6169
6190
  createDOMCompilerError(
6170
- 58,
6191
+ 59,
6171
6192
  dir.arg.loc
6172
6193
  )
6173
6194
  );
@@ -6177,7 +6198,7 @@ const transformModel = (dir, node, context) => {
6177
6198
  if (value && isStaticArgOf(value.arg, "value")) {
6178
6199
  context.onError(
6179
6200
  createDOMCompilerError(
6180
- 60,
6201
+ 61,
6181
6202
  value.loc
6182
6203
  )
6183
6204
  );
@@ -6205,7 +6226,7 @@ const transformModel = (dir, node, context) => {
6205
6226
  isInvalidType = true;
6206
6227
  context.onError(
6207
6228
  createDOMCompilerError(
6208
- 59,
6229
+ 60,
6209
6230
  dir.loc
6210
6231
  )
6211
6232
  );
@@ -6231,7 +6252,7 @@ const transformModel = (dir, node, context) => {
6231
6252
  } else {
6232
6253
  context.onError(
6233
6254
  createDOMCompilerError(
6234
- 57,
6255
+ 58,
6235
6256
  dir.loc
6236
6257
  )
6237
6258
  );
@@ -6339,7 +6360,7 @@ const transformShow = (dir, node, context) => {
6339
6360
  const { exp, loc } = dir;
6340
6361
  if (!exp) {
6341
6362
  context.onError(
6342
- createDOMCompilerError(61, loc)
6363
+ createDOMCompilerError(62, loc)
6343
6364
  );
6344
6365
  }
6345
6366
  return {
@@ -6359,7 +6380,7 @@ const transformTransition = (node, context) => {
6359
6380
  if (hasMultipleChildren(node)) {
6360
6381
  context.onError(
6361
6382
  createDOMCompilerError(
6362
- 62,
6383
+ 63,
6363
6384
  {
6364
6385
  start: node.children[0].loc.start,
6365
6386
  end: node.children[node.children.length - 1].loc.end,
@@ -6398,7 +6419,7 @@ const ignoreSideEffectTags = (node, context) => {
6398
6419
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
6399
6420
  context.onError(
6400
6421
  createDOMCompilerError(
6401
- 63,
6422
+ 64,
6402
6423
  node.loc
6403
6424
  )
6404
6425
  );