@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
  **/
@@ -142,81 +142,81 @@ var VueCompilerDOM = (function (exports) {
142
142
  const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
143
143
  const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
144
144
 
145
- const FRAGMENT = Symbol(`Fragment` );
146
- const TELEPORT = Symbol(`Teleport` );
147
- const SUSPENSE = Symbol(`Suspense` );
148
- const KEEP_ALIVE = Symbol(`KeepAlive` );
149
- const BASE_TRANSITION = Symbol(
145
+ const FRAGMENT = /* @__PURE__ */ Symbol(`Fragment` );
146
+ const TELEPORT = /* @__PURE__ */ Symbol(`Teleport` );
147
+ const SUSPENSE = /* @__PURE__ */ Symbol(`Suspense` );
148
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(`KeepAlive` );
149
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
150
150
  `BaseTransition`
151
151
  );
152
- const OPEN_BLOCK = Symbol(`openBlock` );
153
- const CREATE_BLOCK = Symbol(`createBlock` );
154
- const CREATE_ELEMENT_BLOCK = Symbol(
152
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(`openBlock` );
153
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(`createBlock` );
154
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
155
155
  `createElementBlock`
156
156
  );
157
- const CREATE_VNODE = Symbol(`createVNode` );
158
- const CREATE_ELEMENT_VNODE = Symbol(
157
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(`createVNode` );
158
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
159
159
  `createElementVNode`
160
160
  );
161
- const CREATE_COMMENT = Symbol(
161
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
162
162
  `createCommentVNode`
163
163
  );
164
- const CREATE_TEXT = Symbol(
164
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
165
165
  `createTextVNode`
166
166
  );
167
- const CREATE_STATIC = Symbol(
167
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
168
168
  `createStaticVNode`
169
169
  );
170
- const RESOLVE_COMPONENT = Symbol(
170
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
171
171
  `resolveComponent`
172
172
  );
173
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
173
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
174
174
  `resolveDynamicComponent`
175
175
  );
176
- const RESOLVE_DIRECTIVE = Symbol(
176
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
177
177
  `resolveDirective`
178
178
  );
179
- const RESOLVE_FILTER = Symbol(
179
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
180
180
  `resolveFilter`
181
181
  );
182
- const WITH_DIRECTIVES = Symbol(
182
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
183
183
  `withDirectives`
184
184
  );
185
- const RENDER_LIST = Symbol(`renderList` );
186
- const RENDER_SLOT = Symbol(`renderSlot` );
187
- const CREATE_SLOTS = Symbol(`createSlots` );
188
- const TO_DISPLAY_STRING = Symbol(
185
+ const RENDER_LIST = /* @__PURE__ */ Symbol(`renderList` );
186
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(`renderSlot` );
187
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(`createSlots` );
188
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
189
189
  `toDisplayString`
190
190
  );
191
- const MERGE_PROPS = Symbol(`mergeProps` );
192
- const NORMALIZE_CLASS = Symbol(
191
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(`mergeProps` );
192
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
193
193
  `normalizeClass`
194
194
  );
195
- const NORMALIZE_STYLE = Symbol(
195
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
196
196
  `normalizeStyle`
197
197
  );
198
- const NORMALIZE_PROPS = Symbol(
198
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
199
199
  `normalizeProps`
200
200
  );
201
- const GUARD_REACTIVE_PROPS = Symbol(
201
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
202
202
  `guardReactiveProps`
203
203
  );
204
- const TO_HANDLERS = Symbol(`toHandlers` );
205
- const CAMELIZE = Symbol(`camelize` );
206
- const CAPITALIZE = Symbol(`capitalize` );
207
- const TO_HANDLER_KEY = Symbol(
204
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(`toHandlers` );
205
+ const CAMELIZE = /* @__PURE__ */ Symbol(`camelize` );
206
+ const CAPITALIZE = /* @__PURE__ */ Symbol(`capitalize` );
207
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
208
208
  `toHandlerKey`
209
209
  );
210
- const SET_BLOCK_TRACKING = Symbol(
210
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
211
211
  `setBlockTracking`
212
212
  );
213
- const PUSH_SCOPE_ID = Symbol(`pushScopeId` );
214
- const POP_SCOPE_ID = Symbol(`popScopeId` );
215
- const WITH_CTX = Symbol(`withCtx` );
216
- const UNREF = Symbol(`unref` );
217
- const IS_REF = Symbol(`isRef` );
218
- const WITH_MEMO = Symbol(`withMemo` );
219
- const IS_MEMO_SAME = Symbol(`isMemoSame` );
213
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(`pushScopeId` );
214
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(`popScopeId` );
215
+ const WITH_CTX = /* @__PURE__ */ Symbol(`withCtx` );
216
+ const UNREF = /* @__PURE__ */ Symbol(`unref` );
217
+ const IS_REF = /* @__PURE__ */ Symbol(`isRef` );
218
+ const WITH_MEMO = /* @__PURE__ */ Symbol(`withMemo` );
219
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(`isMemoSame` );
220
220
  const helperNameMap = {
221
221
  [FRAGMENT]: `Fragment`,
222
222
  [TELEPORT]: `Teleport`,
@@ -640,14 +640,28 @@ var VueCompilerDOM = (function (exports) {
640
640
  getPos(index) {
641
641
  let line = 1;
642
642
  let column = index + 1;
643
- for (let i = this.newlines.length - 1; i >= 0; i--) {
644
- const newlineIndex = this.newlines[i];
645
- if (index > newlineIndex) {
646
- line = i + 2;
647
- column = index - newlineIndex;
648
- break;
643
+ const length = this.newlines.length;
644
+ let j = -1;
645
+ if (length > 100) {
646
+ let l = -1;
647
+ let r = length;
648
+ while (l + 1 < r) {
649
+ const m = l + r >>> 1;
650
+ this.newlines[m] < index ? l = m : r = m;
651
+ }
652
+ j = l;
653
+ } else {
654
+ for (let i = length - 1; i >= 0; i--) {
655
+ if (index > this.newlines[i]) {
656
+ j = i;
657
+ break;
658
+ }
649
659
  }
650
660
  }
661
+ if (j >= 0) {
662
+ line = j + 2;
663
+ column = index - this.newlines[j];
664
+ }
651
665
  return {
652
666
  column,
653
667
  line,
@@ -1524,24 +1538,26 @@ var VueCompilerDOM = (function (exports) {
1524
1538
  "43": "X_V_MODEL_ON_SCOPE_VARIABLE",
1525
1539
  "X_V_MODEL_ON_PROPS": 44,
1526
1540
  "44": "X_V_MODEL_ON_PROPS",
1527
- "X_INVALID_EXPRESSION": 45,
1528
- "45": "X_INVALID_EXPRESSION",
1529
- "X_KEEP_ALIVE_INVALID_CHILDREN": 46,
1530
- "46": "X_KEEP_ALIVE_INVALID_CHILDREN",
1531
- "X_PREFIX_ID_NOT_SUPPORTED": 47,
1532
- "47": "X_PREFIX_ID_NOT_SUPPORTED",
1533
- "X_MODULE_MODE_NOT_SUPPORTED": 48,
1534
- "48": "X_MODULE_MODE_NOT_SUPPORTED",
1535
- "X_CACHE_HANDLER_NOT_SUPPORTED": 49,
1536
- "49": "X_CACHE_HANDLER_NOT_SUPPORTED",
1537
- "X_SCOPE_ID_NOT_SUPPORTED": 50,
1538
- "50": "X_SCOPE_ID_NOT_SUPPORTED",
1539
- "X_VNODE_HOOKS": 51,
1540
- "51": "X_VNODE_HOOKS",
1541
- "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 52,
1542
- "52": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1543
- "__EXTEND_POINT__": 53,
1544
- "53": "__EXTEND_POINT__"
1541
+ "X_V_MODEL_ON_CONST": 45,
1542
+ "45": "X_V_MODEL_ON_CONST",
1543
+ "X_INVALID_EXPRESSION": 46,
1544
+ "46": "X_INVALID_EXPRESSION",
1545
+ "X_KEEP_ALIVE_INVALID_CHILDREN": 47,
1546
+ "47": "X_KEEP_ALIVE_INVALID_CHILDREN",
1547
+ "X_PREFIX_ID_NOT_SUPPORTED": 48,
1548
+ "48": "X_PREFIX_ID_NOT_SUPPORTED",
1549
+ "X_MODULE_MODE_NOT_SUPPORTED": 49,
1550
+ "49": "X_MODULE_MODE_NOT_SUPPORTED",
1551
+ "X_CACHE_HANDLER_NOT_SUPPORTED": 50,
1552
+ "50": "X_CACHE_HANDLER_NOT_SUPPORTED",
1553
+ "X_SCOPE_ID_NOT_SUPPORTED": 51,
1554
+ "51": "X_SCOPE_ID_NOT_SUPPORTED",
1555
+ "X_VNODE_HOOKS": 52,
1556
+ "52": "X_VNODE_HOOKS",
1557
+ "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 53,
1558
+ "53": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1559
+ "__EXTEND_POINT__": 54,
1560
+ "54": "__EXTEND_POINT__"
1545
1561
  };
1546
1562
  const errorMessages = {
1547
1563
  // parse errors
@@ -1582,7 +1598,7 @@ var VueCompilerDOM = (function (exports) {
1582
1598
  [32]: `v-for has invalid expression.`,
1583
1599
  [33]: `<template v-for> key should be placed on the <template> tag.`,
1584
1600
  [34]: `v-bind is missing expression.`,
1585
- [52]: `v-bind with same-name shorthand only allows static argument.`,
1601
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
1586
1602
  [35]: `v-on is missing expression.`,
1587
1603
  [36]: `Unexpected custom directive on <slot> outlet.`,
1588
1604
  [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.`,
@@ -1594,16 +1610,17 @@ var VueCompilerDOM = (function (exports) {
1594
1610
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1595
1611
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
1596
1612
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1597
- [45]: `Error parsing JavaScript expression: `,
1598
- [46]: `<KeepAlive> expects exactly one child component.`,
1599
- [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.`,
1613
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
1614
+ [46]: `Error parsing JavaScript expression: `,
1615
+ [47]: `<KeepAlive> expects exactly one child component.`,
1616
+ [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.`,
1600
1617
  // generic errors
1601
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1602
- [48]: `ES module mode is not supported in this build of compiler.`,
1603
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1604
- [50]: `"scopeId" option is only supported in module mode.`,
1618
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1619
+ [49]: `ES module mode is not supported in this build of compiler.`,
1620
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1621
+ [51]: `"scopeId" option is only supported in module mode.`,
1605
1622
  // just to fulfill types
1606
- [53]: ``
1623
+ [54]: ``
1607
1624
  };
1608
1625
 
1609
1626
  function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
@@ -4006,7 +4023,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
4006
4023
  }
4007
4024
  context.onError(
4008
4025
  createCompilerError(
4009
- 45,
4026
+ 46,
4010
4027
  node.loc,
4011
4028
  void 0,
4012
4029
  message
@@ -4800,7 +4817,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
4800
4817
  patchFlag |= 1024;
4801
4818
  if (node.children.length > 1) {
4802
4819
  context.onError(
4803
- createCompilerError(46, {
4820
+ createCompilerError(47, {
4804
4821
  start: node.children[0].loc.start,
4805
4822
  end: node.children[node.children.length - 1].loc.end,
4806
4823
  source: ""
@@ -5387,7 +5404,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5387
5404
  if (arg.isStatic) {
5388
5405
  let rawName = arg.content;
5389
5406
  if (rawName.startsWith("vnode")) {
5390
- context.onError(createCompilerError(51, arg.loc));
5407
+ context.onError(createCompilerError(52, arg.loc));
5391
5408
  }
5392
5409
  if (rawName.startsWith("vue:")) {
5393
5410
  rawName = `vnode-${rawName.slice(4)}`;
@@ -5620,6 +5637,10 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5620
5637
  context.onError(createCompilerError(44, exp.loc));
5621
5638
  return createTransformProps();
5622
5639
  }
5640
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
5641
+ context.onError(createCompilerError(45, exp.loc));
5642
+ return createTransformProps();
5643
+ }
5623
5644
  if (!expString.trim() || !isMemberExpression(exp) && true) {
5624
5645
  context.onError(
5625
5646
  createCompilerError(42, exp.loc)
@@ -5848,7 +5869,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5848
5869
  if (arg.type !== 4 || !arg.isStatic) {
5849
5870
  context.onError(
5850
5871
  createCompilerError(
5851
- 52,
5872
+ 53,
5852
5873
  arg.loc
5853
5874
  )
5854
5875
  );
@@ -5892,17 +5913,17 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5892
5913
  const isModuleMode = options.mode === "module";
5893
5914
  {
5894
5915
  if (options.prefixIdentifiers === true) {
5895
- onError(createCompilerError(47));
5896
- } else if (isModuleMode) {
5897
5916
  onError(createCompilerError(48));
5917
+ } else if (isModuleMode) {
5918
+ onError(createCompilerError(49));
5898
5919
  }
5899
5920
  }
5900
5921
  const prefixIdentifiers = false;
5901
5922
  if (options.cacheHandlers) {
5902
- onError(createCompilerError(49));
5923
+ onError(createCompilerError(50));
5903
5924
  }
5904
5925
  if (options.scopeId && !isModuleMode) {
5905
- onError(createCompilerError(50));
5926
+ onError(createCompilerError(51));
5906
5927
  }
5907
5928
  const resolvedOptions = extend({}, options, {
5908
5929
  prefixIdentifiers
@@ -5943,26 +5964,26 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
5943
5964
 
5944
5965
  const noopDirectiveTransform = () => ({ props: [] });
5945
5966
 
5946
- const V_MODEL_RADIO = Symbol(`vModelRadio` );
5947
- const V_MODEL_CHECKBOX = Symbol(
5967
+ const V_MODEL_RADIO = /* @__PURE__ */ Symbol(`vModelRadio` );
5968
+ const V_MODEL_CHECKBOX = /* @__PURE__ */ Symbol(
5948
5969
  `vModelCheckbox`
5949
5970
  );
5950
- const V_MODEL_TEXT = Symbol(`vModelText` );
5951
- const V_MODEL_SELECT = Symbol(
5971
+ const V_MODEL_TEXT = /* @__PURE__ */ Symbol(`vModelText` );
5972
+ const V_MODEL_SELECT = /* @__PURE__ */ Symbol(
5952
5973
  `vModelSelect`
5953
5974
  );
5954
- const V_MODEL_DYNAMIC = Symbol(
5975
+ const V_MODEL_DYNAMIC = /* @__PURE__ */ Symbol(
5955
5976
  `vModelDynamic`
5956
5977
  );
5957
- const V_ON_WITH_MODIFIERS = Symbol(
5978
+ const V_ON_WITH_MODIFIERS = /* @__PURE__ */ Symbol(
5958
5979
  `vOnModifiersGuard`
5959
5980
  );
5960
- const V_ON_WITH_KEYS = Symbol(
5981
+ const V_ON_WITH_KEYS = /* @__PURE__ */ Symbol(
5961
5982
  `vOnKeysGuard`
5962
5983
  );
5963
- const V_SHOW = Symbol(`vShow` );
5964
- const TRANSITION = Symbol(`Transition` );
5965
- const TRANSITION_GROUP = Symbol(
5984
+ const V_SHOW = /* @__PURE__ */ Symbol(`vShow` );
5985
+ const TRANSITION = /* @__PURE__ */ Symbol(`Transition` );
5986
+ const TRANSITION_GROUP = /* @__PURE__ */ Symbol(
5966
5987
  `TransitionGroup`
5967
5988
  );
5968
5989
  registerRuntimeHelpers({
@@ -6073,55 +6094,55 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6073
6094
  );
6074
6095
  }
6075
6096
  const DOMErrorCodes = {
6076
- "X_V_HTML_NO_EXPRESSION": 53,
6077
- "53": "X_V_HTML_NO_EXPRESSION",
6078
- "X_V_HTML_WITH_CHILDREN": 54,
6079
- "54": "X_V_HTML_WITH_CHILDREN",
6080
- "X_V_TEXT_NO_EXPRESSION": 55,
6081
- "55": "X_V_TEXT_NO_EXPRESSION",
6082
- "X_V_TEXT_WITH_CHILDREN": 56,
6083
- "56": "X_V_TEXT_WITH_CHILDREN",
6084
- "X_V_MODEL_ON_INVALID_ELEMENT": 57,
6085
- "57": "X_V_MODEL_ON_INVALID_ELEMENT",
6086
- "X_V_MODEL_ARG_ON_ELEMENT": 58,
6087
- "58": "X_V_MODEL_ARG_ON_ELEMENT",
6088
- "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 59,
6089
- "59": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
6090
- "X_V_MODEL_UNNECESSARY_VALUE": 60,
6091
- "60": "X_V_MODEL_UNNECESSARY_VALUE",
6092
- "X_V_SHOW_NO_EXPRESSION": 61,
6093
- "61": "X_V_SHOW_NO_EXPRESSION",
6094
- "X_TRANSITION_INVALID_CHILDREN": 62,
6095
- "62": "X_TRANSITION_INVALID_CHILDREN",
6096
- "X_IGNORED_SIDE_EFFECT_TAG": 63,
6097
- "63": "X_IGNORED_SIDE_EFFECT_TAG",
6098
- "__EXTEND_POINT__": 64,
6099
- "64": "__EXTEND_POINT__"
6097
+ "X_V_HTML_NO_EXPRESSION": 54,
6098
+ "54": "X_V_HTML_NO_EXPRESSION",
6099
+ "X_V_HTML_WITH_CHILDREN": 55,
6100
+ "55": "X_V_HTML_WITH_CHILDREN",
6101
+ "X_V_TEXT_NO_EXPRESSION": 56,
6102
+ "56": "X_V_TEXT_NO_EXPRESSION",
6103
+ "X_V_TEXT_WITH_CHILDREN": 57,
6104
+ "57": "X_V_TEXT_WITH_CHILDREN",
6105
+ "X_V_MODEL_ON_INVALID_ELEMENT": 58,
6106
+ "58": "X_V_MODEL_ON_INVALID_ELEMENT",
6107
+ "X_V_MODEL_ARG_ON_ELEMENT": 59,
6108
+ "59": "X_V_MODEL_ARG_ON_ELEMENT",
6109
+ "X_V_MODEL_ON_FILE_INPUT_ELEMENT": 60,
6110
+ "60": "X_V_MODEL_ON_FILE_INPUT_ELEMENT",
6111
+ "X_V_MODEL_UNNECESSARY_VALUE": 61,
6112
+ "61": "X_V_MODEL_UNNECESSARY_VALUE",
6113
+ "X_V_SHOW_NO_EXPRESSION": 62,
6114
+ "62": "X_V_SHOW_NO_EXPRESSION",
6115
+ "X_TRANSITION_INVALID_CHILDREN": 63,
6116
+ "63": "X_TRANSITION_INVALID_CHILDREN",
6117
+ "X_IGNORED_SIDE_EFFECT_TAG": 64,
6118
+ "64": "X_IGNORED_SIDE_EFFECT_TAG",
6119
+ "__EXTEND_POINT__": 65,
6120
+ "65": "__EXTEND_POINT__"
6100
6121
  };
6101
6122
  const DOMErrorMessages = {
6102
- [53]: `v-html is missing expression.`,
6103
- [54]: `v-html will override element children.`,
6104
- [55]: `v-text is missing expression.`,
6105
- [56]: `v-text will override element children.`,
6106
- [57]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
6107
- [58]: `v-model argument is not supported on plain elements.`,
6108
- [59]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
6109
- [60]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
6110
- [61]: `v-show is missing expression.`,
6111
- [62]: `<Transition> expects exactly one child element or component.`,
6112
- [63]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
6123
+ [54]: `v-html is missing expression.`,
6124
+ [55]: `v-html will override element children.`,
6125
+ [56]: `v-text is missing expression.`,
6126
+ [57]: `v-text will override element children.`,
6127
+ [58]: `v-model can only be used on <input>, <textarea> and <select> elements.`,
6128
+ [59]: `v-model argument is not supported on plain elements.`,
6129
+ [60]: `v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,
6130
+ [61]: `Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,
6131
+ [62]: `v-show is missing expression.`,
6132
+ [63]: `<Transition> expects exactly one child element or component.`,
6133
+ [64]: `Tags with side effect (<script> and <style>) are ignored in client component templates.`
6113
6134
  };
6114
6135
 
6115
6136
  const transformVHtml = (dir, node, context) => {
6116
6137
  const { exp, loc } = dir;
6117
6138
  if (!exp) {
6118
6139
  context.onError(
6119
- createDOMCompilerError(53, loc)
6140
+ createDOMCompilerError(54, loc)
6120
6141
  );
6121
6142
  }
6122
6143
  if (node.children.length) {
6123
6144
  context.onError(
6124
- createDOMCompilerError(54, loc)
6145
+ createDOMCompilerError(55, loc)
6125
6146
  );
6126
6147
  node.children.length = 0;
6127
6148
  }
@@ -6139,12 +6160,12 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6139
6160
  const { exp, loc } = dir;
6140
6161
  if (!exp) {
6141
6162
  context.onError(
6142
- createDOMCompilerError(55, loc)
6163
+ createDOMCompilerError(56, loc)
6143
6164
  );
6144
6165
  }
6145
6166
  if (node.children.length) {
6146
6167
  context.onError(
6147
- createDOMCompilerError(56, loc)
6168
+ createDOMCompilerError(57, loc)
6148
6169
  );
6149
6170
  node.children.length = 0;
6150
6171
  }
@@ -6170,7 +6191,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6170
6191
  if (dir.arg) {
6171
6192
  context.onError(
6172
6193
  createDOMCompilerError(
6173
- 58,
6194
+ 59,
6174
6195
  dir.arg.loc
6175
6196
  )
6176
6197
  );
@@ -6180,7 +6201,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6180
6201
  if (value && isStaticArgOf(value.arg, "value")) {
6181
6202
  context.onError(
6182
6203
  createDOMCompilerError(
6183
- 60,
6204
+ 61,
6184
6205
  value.loc
6185
6206
  )
6186
6207
  );
@@ -6208,7 +6229,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6208
6229
  isInvalidType = true;
6209
6230
  context.onError(
6210
6231
  createDOMCompilerError(
6211
- 59,
6232
+ 60,
6212
6233
  dir.loc
6213
6234
  )
6214
6235
  );
@@ -6234,7 +6255,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6234
6255
  } else {
6235
6256
  context.onError(
6236
6257
  createDOMCompilerError(
6237
- 57,
6258
+ 58,
6238
6259
  dir.loc
6239
6260
  )
6240
6261
  );
@@ -6342,7 +6363,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6342
6363
  const { exp, loc } = dir;
6343
6364
  if (!exp) {
6344
6365
  context.onError(
6345
- createDOMCompilerError(61, loc)
6366
+ createDOMCompilerError(62, loc)
6346
6367
  );
6347
6368
  }
6348
6369
  return {
@@ -6362,7 +6383,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6362
6383
  if (hasMultipleChildren(node)) {
6363
6384
  context.onError(
6364
6385
  createDOMCompilerError(
6365
- 62,
6386
+ 63,
6366
6387
  {
6367
6388
  start: node.children[0].loc.start,
6368
6389
  end: node.children[node.children.length - 1].loc.end,
@@ -6401,7 +6422,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
6401
6422
  if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
6402
6423
  context.onError(
6403
6424
  createDOMCompilerError(
6404
- 63,
6425
+ 64,
6405
6426
  node.loc
6406
6427
  )
6407
6428
  );