@vue/compiler-core 3.5.24 → 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-core v3.5.24
2
+ * @vue/compiler-core v3.5.26
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -8,86 +8,86 @@
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
10
  var shared = require('@vue/shared');
11
- var decode_js = require('entities/lib/decode.js');
11
+ var decode = require('entities/decode');
12
12
  var parser = require('@babel/parser');
13
13
  var estreeWalker = require('estree-walker');
14
14
  var sourceMapJs = require('source-map-js');
15
15
 
16
- const FRAGMENT = Symbol(``);
17
- const TELEPORT = Symbol(``);
18
- const SUSPENSE = Symbol(``);
19
- const KEEP_ALIVE = Symbol(``);
20
- const BASE_TRANSITION = Symbol(
16
+ const FRAGMENT = /* @__PURE__ */ Symbol(``);
17
+ const TELEPORT = /* @__PURE__ */ Symbol(``);
18
+ const SUSPENSE = /* @__PURE__ */ Symbol(``);
19
+ const KEEP_ALIVE = /* @__PURE__ */ Symbol(``);
20
+ const BASE_TRANSITION = /* @__PURE__ */ Symbol(
21
21
  ``
22
22
  );
23
- const OPEN_BLOCK = Symbol(``);
24
- const CREATE_BLOCK = Symbol(``);
25
- const CREATE_ELEMENT_BLOCK = Symbol(
23
+ const OPEN_BLOCK = /* @__PURE__ */ Symbol(``);
24
+ const CREATE_BLOCK = /* @__PURE__ */ Symbol(``);
25
+ const CREATE_ELEMENT_BLOCK = /* @__PURE__ */ Symbol(
26
26
  ``
27
27
  );
28
- const CREATE_VNODE = Symbol(``);
29
- const CREATE_ELEMENT_VNODE = Symbol(
28
+ const CREATE_VNODE = /* @__PURE__ */ Symbol(``);
29
+ const CREATE_ELEMENT_VNODE = /* @__PURE__ */ Symbol(
30
30
  ``
31
31
  );
32
- const CREATE_COMMENT = Symbol(
32
+ const CREATE_COMMENT = /* @__PURE__ */ Symbol(
33
33
  ``
34
34
  );
35
- const CREATE_TEXT = Symbol(
35
+ const CREATE_TEXT = /* @__PURE__ */ Symbol(
36
36
  ``
37
37
  );
38
- const CREATE_STATIC = Symbol(
38
+ const CREATE_STATIC = /* @__PURE__ */ Symbol(
39
39
  ``
40
40
  );
41
- const RESOLVE_COMPONENT = Symbol(
41
+ const RESOLVE_COMPONENT = /* @__PURE__ */ Symbol(
42
42
  ``
43
43
  );
44
- const RESOLVE_DYNAMIC_COMPONENT = Symbol(
44
+ const RESOLVE_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol(
45
45
  ``
46
46
  );
47
- const RESOLVE_DIRECTIVE = Symbol(
47
+ const RESOLVE_DIRECTIVE = /* @__PURE__ */ Symbol(
48
48
  ``
49
49
  );
50
- const RESOLVE_FILTER = Symbol(
50
+ const RESOLVE_FILTER = /* @__PURE__ */ Symbol(
51
51
  ``
52
52
  );
53
- const WITH_DIRECTIVES = Symbol(
53
+ const WITH_DIRECTIVES = /* @__PURE__ */ Symbol(
54
54
  ``
55
55
  );
56
- const RENDER_LIST = Symbol(``);
57
- const RENDER_SLOT = Symbol(``);
58
- const CREATE_SLOTS = Symbol(``);
59
- const TO_DISPLAY_STRING = Symbol(
56
+ const RENDER_LIST = /* @__PURE__ */ Symbol(``);
57
+ const RENDER_SLOT = /* @__PURE__ */ Symbol(``);
58
+ const CREATE_SLOTS = /* @__PURE__ */ Symbol(``);
59
+ const TO_DISPLAY_STRING = /* @__PURE__ */ Symbol(
60
60
  ``
61
61
  );
62
- const MERGE_PROPS = Symbol(``);
63
- const NORMALIZE_CLASS = Symbol(
62
+ const MERGE_PROPS = /* @__PURE__ */ Symbol(``);
63
+ const NORMALIZE_CLASS = /* @__PURE__ */ Symbol(
64
64
  ``
65
65
  );
66
- const NORMALIZE_STYLE = Symbol(
66
+ const NORMALIZE_STYLE = /* @__PURE__ */ Symbol(
67
67
  ``
68
68
  );
69
- const NORMALIZE_PROPS = Symbol(
69
+ const NORMALIZE_PROPS = /* @__PURE__ */ Symbol(
70
70
  ``
71
71
  );
72
- const GUARD_REACTIVE_PROPS = Symbol(
72
+ const GUARD_REACTIVE_PROPS = /* @__PURE__ */ Symbol(
73
73
  ``
74
74
  );
75
- const TO_HANDLERS = Symbol(``);
76
- const CAMELIZE = Symbol(``);
77
- const CAPITALIZE = Symbol(``);
78
- const TO_HANDLER_KEY = Symbol(
75
+ const TO_HANDLERS = /* @__PURE__ */ Symbol(``);
76
+ const CAMELIZE = /* @__PURE__ */ Symbol(``);
77
+ const CAPITALIZE = /* @__PURE__ */ Symbol(``);
78
+ const TO_HANDLER_KEY = /* @__PURE__ */ Symbol(
79
79
  ``
80
80
  );
81
- const SET_BLOCK_TRACKING = Symbol(
81
+ const SET_BLOCK_TRACKING = /* @__PURE__ */ Symbol(
82
82
  ``
83
83
  );
84
- const PUSH_SCOPE_ID = Symbol(``);
85
- const POP_SCOPE_ID = Symbol(``);
86
- const WITH_CTX = Symbol(``);
87
- const UNREF = Symbol(``);
88
- const IS_REF = Symbol(``);
89
- const WITH_MEMO = Symbol(``);
90
- const IS_MEMO_SAME = Symbol(``);
84
+ const PUSH_SCOPE_ID = /* @__PURE__ */ Symbol(``);
85
+ const POP_SCOPE_ID = /* @__PURE__ */ Symbol(``);
86
+ const WITH_CTX = /* @__PURE__ */ Symbol(``);
87
+ const UNREF = /* @__PURE__ */ Symbol(``);
88
+ const IS_REF = /* @__PURE__ */ Symbol(``);
89
+ const WITH_MEMO = /* @__PURE__ */ Symbol(``);
90
+ const IS_MEMO_SAME = /* @__PURE__ */ Symbol(``);
91
91
  const helperNameMap = {
92
92
  [FRAGMENT]: `Fragment`,
93
93
  [TELEPORT]: `Teleport`,
@@ -486,8 +486,8 @@ class Tokenizer {
486
486
  this.currentSequence = void 0;
487
487
  this.sequenceIndex = 0;
488
488
  {
489
- this.entityDecoder = new decode_js.EntityDecoder(
490
- decode_js.htmlDecodeTree,
489
+ this.entityDecoder = new decode.EntityDecoder(
490
+ decode.htmlDecodeTree,
491
491
  (cp, consumed) => this.emitCodePoint(cp, consumed)
492
492
  );
493
493
  }
@@ -517,14 +517,28 @@ class Tokenizer {
517
517
  getPos(index) {
518
518
  let line = 1;
519
519
  let column = index + 1;
520
- for (let i = this.newlines.length - 1; i >= 0; i--) {
521
- const newlineIndex = this.newlines[i];
522
- if (index > newlineIndex) {
523
- line = i + 2;
524
- column = index - newlineIndex;
525
- break;
520
+ const length = this.newlines.length;
521
+ let j = -1;
522
+ if (length > 100) {
523
+ let l = -1;
524
+ let r = length;
525
+ while (l + 1 < r) {
526
+ const m = l + r >>> 1;
527
+ this.newlines[m] < index ? l = m : r = m;
528
+ }
529
+ j = l;
530
+ } else {
531
+ for (let i = length - 1; i >= 0; i--) {
532
+ if (index > this.newlines[i]) {
533
+ j = i;
534
+ break;
535
+ }
526
536
  }
527
537
  }
538
+ if (j >= 0) {
539
+ line = j + 2;
540
+ column = index - this.newlines[j];
541
+ }
528
542
  return {
529
543
  column,
530
544
  line,
@@ -1037,7 +1051,7 @@ class Tokenizer {
1037
1051
  this.state = 33;
1038
1052
  this.entityStart = this.index;
1039
1053
  this.entityDecoder.startEntity(
1040
- this.baseState === 1 || this.baseState === 32 ? decode_js.DecodingMode.Legacy : decode_js.DecodingMode.Attribute
1054
+ this.baseState === 1 || this.baseState === 32 ? decode.DecodingMode.Legacy : decode.DecodingMode.Attribute
1041
1055
  );
1042
1056
  }
1043
1057
  }
@@ -1256,7 +1270,7 @@ class Tokenizer {
1256
1270
  this.sectionStart = this.entityStart + consumed;
1257
1271
  this.index = this.sectionStart - 1;
1258
1272
  this.cbs.onattribentity(
1259
- decode_js.fromCodePoint(cp),
1273
+ decode.fromCodePoint(cp),
1260
1274
  this.entityStart,
1261
1275
  this.sectionStart
1262
1276
  );
@@ -1267,7 +1281,7 @@ class Tokenizer {
1267
1281
  this.sectionStart = this.entityStart + consumed;
1268
1282
  this.index = this.sectionStart - 1;
1269
1283
  this.cbs.ontextentity(
1270
- decode_js.fromCodePoint(cp),
1284
+ decode.fromCodePoint(cp),
1271
1285
  this.entityStart,
1272
1286
  this.sectionStart
1273
1287
  );
@@ -1453,24 +1467,26 @@ const ErrorCodes = {
1453
1467
  "43": "X_V_MODEL_ON_SCOPE_VARIABLE",
1454
1468
  "X_V_MODEL_ON_PROPS": 44,
1455
1469
  "44": "X_V_MODEL_ON_PROPS",
1456
- "X_INVALID_EXPRESSION": 45,
1457
- "45": "X_INVALID_EXPRESSION",
1458
- "X_KEEP_ALIVE_INVALID_CHILDREN": 46,
1459
- "46": "X_KEEP_ALIVE_INVALID_CHILDREN",
1460
- "X_PREFIX_ID_NOT_SUPPORTED": 47,
1461
- "47": "X_PREFIX_ID_NOT_SUPPORTED",
1462
- "X_MODULE_MODE_NOT_SUPPORTED": 48,
1463
- "48": "X_MODULE_MODE_NOT_SUPPORTED",
1464
- "X_CACHE_HANDLER_NOT_SUPPORTED": 49,
1465
- "49": "X_CACHE_HANDLER_NOT_SUPPORTED",
1466
- "X_SCOPE_ID_NOT_SUPPORTED": 50,
1467
- "50": "X_SCOPE_ID_NOT_SUPPORTED",
1468
- "X_VNODE_HOOKS": 51,
1469
- "51": "X_VNODE_HOOKS",
1470
- "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 52,
1471
- "52": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1472
- "__EXTEND_POINT__": 53,
1473
- "53": "__EXTEND_POINT__"
1470
+ "X_V_MODEL_ON_CONST": 45,
1471
+ "45": "X_V_MODEL_ON_CONST",
1472
+ "X_INVALID_EXPRESSION": 46,
1473
+ "46": "X_INVALID_EXPRESSION",
1474
+ "X_KEEP_ALIVE_INVALID_CHILDREN": 47,
1475
+ "47": "X_KEEP_ALIVE_INVALID_CHILDREN",
1476
+ "X_PREFIX_ID_NOT_SUPPORTED": 48,
1477
+ "48": "X_PREFIX_ID_NOT_SUPPORTED",
1478
+ "X_MODULE_MODE_NOT_SUPPORTED": 49,
1479
+ "49": "X_MODULE_MODE_NOT_SUPPORTED",
1480
+ "X_CACHE_HANDLER_NOT_SUPPORTED": 50,
1481
+ "50": "X_CACHE_HANDLER_NOT_SUPPORTED",
1482
+ "X_SCOPE_ID_NOT_SUPPORTED": 51,
1483
+ "51": "X_SCOPE_ID_NOT_SUPPORTED",
1484
+ "X_VNODE_HOOKS": 52,
1485
+ "52": "X_VNODE_HOOKS",
1486
+ "X_V_BIND_INVALID_SAME_NAME_ARGUMENT": 53,
1487
+ "53": "X_V_BIND_INVALID_SAME_NAME_ARGUMENT",
1488
+ "__EXTEND_POINT__": 54,
1489
+ "54": "__EXTEND_POINT__"
1474
1490
  };
1475
1491
  const errorMessages = {
1476
1492
  // parse errors
@@ -1511,7 +1527,7 @@ const errorMessages = {
1511
1527
  [32]: `v-for has invalid expression.`,
1512
1528
  [33]: `<template v-for> key should be placed on the <template> tag.`,
1513
1529
  [34]: `v-bind is missing expression.`,
1514
- [52]: `v-bind with same-name shorthand only allows static argument.`,
1530
+ [53]: `v-bind with same-name shorthand only allows static argument.`,
1515
1531
  [35]: `v-on is missing expression.`,
1516
1532
  [36]: `Unexpected custom directive on <slot> outlet.`,
1517
1533
  [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.`,
@@ -1523,16 +1539,17 @@ const errorMessages = {
1523
1539
  [43]: `v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,
1524
1540
  [44]: `v-model cannot be used on a prop, because local prop bindings are not writable.
1525
1541
  Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,
1526
- [45]: `Error parsing JavaScript expression: `,
1527
- [46]: `<KeepAlive> expects exactly one child component.`,
1528
- [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.`,
1542
+ [45]: `v-model cannot be used on a const binding because it is not writable.`,
1543
+ [46]: `Error parsing JavaScript expression: `,
1544
+ [47]: `<KeepAlive> expects exactly one child component.`,
1545
+ [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.`,
1529
1546
  // generic errors
1530
- [47]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1531
- [48]: `ES module mode is not supported in this build of compiler.`,
1532
- [49]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1533
- [50]: `"scopeId" option is only supported in module mode.`,
1547
+ [48]: `"prefixIdentifiers" option is not supported in this build of compiler.`,
1548
+ [49]: `ES module mode is not supported in this build of compiler.`,
1549
+ [50]: `"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,
1550
+ [51]: `"scopeId" option is only supported in module mode.`,
1534
1551
  // just to fulfill types
1535
- [53]: ``
1552
+ [54]: ``
1536
1553
  };
1537
1554
 
1538
1555
  function walkIdentifiers(root, onIdentifier, includeAll = false, parentStack = [], knownIds = /* @__PURE__ */ Object.create(null)) {
@@ -2258,6 +2275,20 @@ function getMemoedVNodeCall(node) {
2258
2275
  }
2259
2276
  }
2260
2277
  const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/;
2278
+ function isAllWhitespace(str) {
2279
+ for (let i = 0; i < str.length; i++) {
2280
+ if (!isWhitespace(str.charCodeAt(i))) {
2281
+ return false;
2282
+ }
2283
+ }
2284
+ return true;
2285
+ }
2286
+ function isWhitespaceText(node) {
2287
+ return node.type === 2 && isAllWhitespace(node.content) || node.type === 12 && isWhitespaceText(node.content);
2288
+ }
2289
+ function isCommentOrWhitespace(node) {
2290
+ return node.type === 3 || isWhitespaceText(node);
2291
+ }
2261
2292
 
2262
2293
  const defaultParserOptions = {
2263
2294
  parseMode: "base",
@@ -2308,7 +2339,7 @@ const tokenizer = new Tokenizer(stack, {
2308
2339
  let exp = getSlice(innerStart, innerEnd);
2309
2340
  if (exp.includes("&")) {
2310
2341
  {
2311
- exp = decode_js.decodeHTML(exp);
2342
+ exp = decode.decodeHTML(exp);
2312
2343
  }
2313
2344
  }
2314
2345
  addNode({
@@ -2847,14 +2878,6 @@ function condenseWhitespace(nodes) {
2847
2878
  }
2848
2879
  return removedWhitespace ? nodes.filter(Boolean) : nodes;
2849
2880
  }
2850
- function isAllWhitespace(str) {
2851
- for (let i = 0; i < str.length; i++) {
2852
- if (!isWhitespace(str.charCodeAt(i))) {
2853
- return false;
2854
- }
2855
- }
2856
- return true;
2857
- }
2858
2881
  function hasNewlineChar(str) {
2859
2882
  for (let i = 0; i < str.length; i++) {
2860
2883
  const c = str.charCodeAt(i);
@@ -2947,7 +2970,7 @@ function createExp(content, isStatic = false, loc, constType = 0, parseMode = 0
2947
2970
  }
2948
2971
  } catch (e) {
2949
2972
  exp.ast = false;
2950
- emitError(45, loc.start.offset, e.message);
2973
+ emitError(46, loc.start.offset, e.message);
2951
2974
  }
2952
2975
  }
2953
2976
  return exp;
@@ -4478,7 +4501,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
4478
4501
  } catch (e) {
4479
4502
  context.onError(
4480
4503
  createCompilerError(
4481
- 45,
4504
+ 46,
4482
4505
  node.loc,
4483
4506
  void 0,
4484
4507
  e.message
@@ -4637,11 +4660,7 @@ function processIf(node, dir, context, processCodegen) {
4637
4660
  let i = siblings.indexOf(node);
4638
4661
  while (i-- >= -1) {
4639
4662
  const sibling = siblings[i];
4640
- if (sibling && sibling.type === 3) {
4641
- context.removeNode(sibling);
4642
- continue;
4643
- }
4644
- if (sibling && sibling.type === 2 && !sibling.content.trim().length) {
4663
+ if (sibling && isCommentOrWhitespace(sibling)) {
4645
4664
  context.removeNode(sibling);
4646
4665
  continue;
4647
4666
  }
@@ -5153,7 +5172,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
5153
5172
  let prev;
5154
5173
  while (j--) {
5155
5174
  prev = children[j];
5156
- if (prev.type !== 3 && isNonWhitespaceContent(prev)) {
5175
+ if (!isCommentOrWhitespace(prev)) {
5157
5176
  break;
5158
5177
  }
5159
5178
  }
@@ -5231,7 +5250,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
5231
5250
  } else if (implicitDefaultChildren.length && // #3766
5232
5251
  // with whitespace: 'preserve', whitespaces between slots will end up in
5233
5252
  // implicitDefaultChildren. Ignore if all implicit children are whitespaces.
5234
- implicitDefaultChildren.some((node2) => isNonWhitespaceContent(node2))) {
5253
+ !implicitDefaultChildren.every(isWhitespaceText)) {
5235
5254
  if (hasNamedDefaultSlot) {
5236
5255
  context.onError(
5237
5256
  createCompilerError(
@@ -5304,11 +5323,6 @@ function hasForwardedSlots(children) {
5304
5323
  }
5305
5324
  return false;
5306
5325
  }
5307
- function isNonWhitespaceContent(node) {
5308
- if (node.type !== 2 && node.type !== 12)
5309
- return true;
5310
- return node.type === 2 ? !!node.content.trim() : isNonWhitespaceContent(node.content);
5311
- }
5312
5326
 
5313
5327
  const directiveImportMap = /* @__PURE__ */ new WeakMap();
5314
5328
  const transformElement = (node, context) => {
@@ -6252,6 +6266,10 @@ const transformModel = (dir, node, context) => {
6252
6266
  context.onError(createCompilerError(44, exp.loc));
6253
6267
  return createTransformProps();
6254
6268
  }
6269
+ if (bindingType === "literal-const" || bindingType === "setup-const") {
6270
+ context.onError(createCompilerError(45, exp.loc));
6271
+ return createTransformProps();
6272
+ }
6255
6273
  const maybeRef = context.inline && (bindingType === "setup-let" || bindingType === "setup-ref" || bindingType === "setup-maybe-ref");
6256
6274
  if (!expString.trim() || !isMemberExpression(exp, context) && !maybeRef) {
6257
6275
  context.onError(
@@ -6500,7 +6518,7 @@ const transformVBindShorthand = (node, context) => {
6500
6518
  if (arg.type !== 4 || !arg.isStatic) {
6501
6519
  context.onError(
6502
6520
  createCompilerError(
6503
- 52,
6521
+ 53,
6504
6522
  arg.loc
6505
6523
  )
6506
6524
  );
@@ -6548,10 +6566,10 @@ function baseCompile(source, options = {}) {
6548
6566
  const isModuleMode = options.mode === "module";
6549
6567
  const prefixIdentifiers = options.prefixIdentifiers === true || isModuleMode;
6550
6568
  if (!prefixIdentifiers && options.cacheHandlers) {
6551
- onError(createCompilerError(49));
6569
+ onError(createCompilerError(50));
6552
6570
  }
6553
6571
  if (options.scopeId && !isModuleMode) {
6554
- onError(createCompilerError(50));
6572
+ onError(createCompilerError(51));
6555
6573
  }
6556
6574
  const resolvedOptions = shared.extend({}, options, {
6557
6575
  prefixIdentifiers
@@ -6693,6 +6711,8 @@ exports.hasDynamicKeyVBind = hasDynamicKeyVBind;
6693
6711
  exports.hasScopeRef = hasScopeRef;
6694
6712
  exports.helperNameMap = helperNameMap;
6695
6713
  exports.injectProp = injectProp;
6714
+ exports.isAllWhitespace = isAllWhitespace;
6715
+ exports.isCommentOrWhitespace = isCommentOrWhitespace;
6696
6716
  exports.isCoreComponent = isCoreComponent;
6697
6717
  exports.isFnExpression = isFnExpression;
6698
6718
  exports.isFnExpressionBrowser = isFnExpressionBrowser;
@@ -6714,6 +6734,7 @@ exports.isTemplateNode = isTemplateNode;
6714
6734
  exports.isText = isText$1;
6715
6735
  exports.isVPre = isVPre;
6716
6736
  exports.isVSlot = isVSlot;
6737
+ exports.isWhitespaceText = isWhitespaceText;
6717
6738
  exports.locStub = locStub;
6718
6739
  exports.noopDirectiveTransform = noopDirectiveTransform;
6719
6740
  exports.processExpression = processExpression;
@@ -615,15 +615,16 @@ export declare enum ErrorCodes {
615
615
  X_V_MODEL_MALFORMED_EXPRESSION = 42,
616
616
  X_V_MODEL_ON_SCOPE_VARIABLE = 43,
617
617
  X_V_MODEL_ON_PROPS = 44,
618
- X_INVALID_EXPRESSION = 45,
619
- X_KEEP_ALIVE_INVALID_CHILDREN = 46,
620
- X_PREFIX_ID_NOT_SUPPORTED = 47,
621
- X_MODULE_MODE_NOT_SUPPORTED = 48,
622
- X_CACHE_HANDLER_NOT_SUPPORTED = 49,
623
- X_SCOPE_ID_NOT_SUPPORTED = 50,
624
- X_VNODE_HOOKS = 51,
625
- X_V_BIND_INVALID_SAME_NAME_ARGUMENT = 52,
626
- __EXTEND_POINT__ = 53
618
+ X_V_MODEL_ON_CONST = 45,
619
+ X_INVALID_EXPRESSION = 46,
620
+ X_KEEP_ALIVE_INVALID_CHILDREN = 47,
621
+ X_PREFIX_ID_NOT_SUPPORTED = 48,
622
+ X_MODULE_MODE_NOT_SUPPORTED = 49,
623
+ X_CACHE_HANDLER_NOT_SUPPORTED = 50,
624
+ X_SCOPE_ID_NOT_SUPPORTED = 51,
625
+ X_VNODE_HOOKS = 52,
626
+ X_V_BIND_INVALID_SAME_NAME_ARGUMENT = 53,
627
+ __EXTEND_POINT__ = 54
627
628
  }
628
629
  export declare const errorMessages: Record<ErrorCodes, string>;
629
630
 
@@ -1041,6 +1042,9 @@ export declare function toValidAssetId(name: string, type: 'component' | 'direct
1041
1042
  export declare function hasScopeRef(node: TemplateChildNode | IfBranchNode | ExpressionNode | CacheExpression | undefined, ids: TransformContext['identifiers']): boolean;
1042
1043
  export declare function getMemoedVNodeCall(node: BlockCodegenNode | MemoExpression): VNodeCall | RenderSlotCall;
1043
1044
  export declare const forAliasRE: RegExp;
1045
+ export declare function isAllWhitespace(str: string): boolean;
1046
+ export declare function isWhitespaceText(node: TemplateChildNode): boolean;
1047
+ export declare function isCommentOrWhitespace(node: TemplateChildNode): boolean;
1044
1048
 
1045
1049
  /**
1046
1050
  * Return value indicates whether the AST walked can be a constant