@vue/compat 3.3.0-alpha.2 → 3.3.0-alpha.4

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.
@@ -6643,7 +6643,7 @@ function createCompatVue$1(createApp, createSingletonApp) {
6643
6643
  return vm;
6644
6644
  }
6645
6645
  }
6646
- Vue.version = `2.6.14-compat:${"3.3.0-alpha.2"}`;
6646
+ Vue.version = `2.6.14-compat:${"3.3.0-alpha.4"}`;
6647
6647
  Vue.config = singletonApp.config;
6648
6648
  Vue.use = (p, ...options) => {
6649
6649
  if (p && isFunction(p.install)) {
@@ -10635,7 +10635,7 @@ function isMemoSame(cached, memo) {
10635
10635
  return true;
10636
10636
  }
10637
10637
 
10638
- const version = "3.3.0-alpha.2";
10638
+ const version = "3.3.0-alpha.4";
10639
10639
  const ssrUtils = null;
10640
10640
  const resolveFilter = resolveFilter$1 ;
10641
10641
  const _compatUtils = {
@@ -12878,16 +12878,16 @@ function hasDynamicKeyVBind(node) {
12878
12878
  );
12879
12879
  }
12880
12880
  function isText$1(node) {
12881
- return node.type === 5 || node.type === "text";
12881
+ return node.type === 5 || node.type === 2;
12882
12882
  }
12883
12883
  function isVSlot(p) {
12884
12884
  return p.type === 7 && p.name === "slot";
12885
12885
  }
12886
12886
  function isTemplateNode(node) {
12887
- return node.type === "element" && node.tagType === 3;
12887
+ return node.type === 1 && node.tagType === 3;
12888
12888
  }
12889
12889
  function isSlotOutlet(node) {
12890
- return node.type === "element" && node.tagType === 2;
12890
+ return node.type === 1 && node.tagType === 2;
12891
12891
  }
12892
12892
  function getVNodeHelper(ssr, isComponent) {
12893
12893
  return ssr || isComponent ? CREATE_VNODE : CREATE_ELEMENT_VNODE;
@@ -13206,12 +13206,12 @@ function parseChildren(context, mode, ancestors) {
13206
13206
  const shouldCondense = context.options.whitespace !== "preserve";
13207
13207
  for (let i = 0; i < nodes.length; i++) {
13208
13208
  const node = nodes[i];
13209
- if (node.type === "text") {
13209
+ if (node.type === 2) {
13210
13210
  if (!context.inPre) {
13211
13211
  if (!/[^\t\r\n\f ]/.test(node.content)) {
13212
13212
  const prev = nodes[i - 1];
13213
13213
  const next = nodes[i + 1];
13214
- if (!prev || !next || shouldCondense && (prev.type === "comment" && next.type === "comment" || prev.type === "comment" && next.type === "element" || prev.type === "element" && next.type === "comment" || prev.type === "element" && next.type === "element" && /[\r\n]/.test(node.content))) {
13214
+ if (!prev || !next || shouldCondense && (prev.type === 3 && next.type === 3 || prev.type === 3 && next.type === 1 || prev.type === 1 && next.type === 3 || prev.type === 1 && next.type === 1 && /[\r\n]/.test(node.content))) {
13215
13215
  removedWhitespace = true;
13216
13216
  nodes[i] = null;
13217
13217
  } else {
@@ -13223,14 +13223,14 @@ function parseChildren(context, mode, ancestors) {
13223
13223
  } else {
13224
13224
  node.content = node.content.replace(/\r\n/g, "\n");
13225
13225
  }
13226
- } else if (node.type === "comment" && !context.options.comments) {
13226
+ } else if (node.type === 3 && !context.options.comments) {
13227
13227
  removedWhitespace = true;
13228
13228
  nodes[i] = null;
13229
13229
  }
13230
13230
  }
13231
13231
  if (context.inPre && parent && context.options.isPreTag(parent.tag)) {
13232
13232
  const first = nodes[0];
13233
- if (first && first.type === "text") {
13233
+ if (first && first.type === 2) {
13234
13234
  first.content = first.content.replace(/^\r?\n/, "");
13235
13235
  }
13236
13236
  }
@@ -13238,9 +13238,9 @@ function parseChildren(context, mode, ancestors) {
13238
13238
  return removedWhitespace ? nodes.filter(Boolean) : nodes;
13239
13239
  }
13240
13240
  function pushNode(nodes, node) {
13241
- if (node.type === "text") {
13241
+ if (node.type === 2) {
13242
13242
  const prev = last(nodes);
13243
- if (prev && prev.type === "text" && prev.loc.end.offset === node.loc.start.offset) {
13243
+ if (prev && prev.type === 2 && prev.loc.end.offset === node.loc.start.offset) {
13244
13244
  prev.content += node.content;
13245
13245
  prev.loc.end = node.loc.end;
13246
13246
  prev.loc.source += node.loc.source;
@@ -13287,7 +13287,7 @@ function parseComment(context) {
13287
13287
  advanceBy(context, match.index + match[0].length - prevIndex + 1);
13288
13288
  }
13289
13289
  return {
13290
- type: "comment",
13290
+ type: 3,
13291
13291
  content,
13292
13292
  loc: getSelection(context, start)
13293
13293
  };
@@ -13305,7 +13305,7 @@ function parseBogusComment(context) {
13305
13305
  advanceBy(context, closeIndex + 1);
13306
13306
  }
13307
13307
  return {
13308
- type: "comment",
13308
+ type: 3,
13309
13309
  content,
13310
13310
  loc: getSelection(context, start)
13311
13311
  };
@@ -13341,7 +13341,7 @@ function parseElement(context, ancestors) {
13341
13341
  )) {
13342
13342
  const loc = getSelection(context, element.loc.end);
13343
13343
  inlineTemplateProp.value = {
13344
- type: "text",
13344
+ type: 2,
13345
13345
  content: loc.source,
13346
13346
  loc
13347
13347
  };
@@ -13448,7 +13448,7 @@ function parseTag(context, type, parent) {
13448
13448
  }
13449
13449
  }
13450
13450
  return {
13451
- type: "element",
13451
+ type: 1,
13452
13452
  ns,
13453
13453
  tag,
13454
13454
  tagType,
@@ -13654,7 +13654,7 @@ function parseAttribute(context, nameSet) {
13654
13654
  type: 6,
13655
13655
  name,
13656
13656
  value: value && {
13657
- type: "text",
13657
+ type: 2,
13658
13658
  content: value.content,
13659
13659
  loc: value.loc
13660
13660
  },
@@ -13744,7 +13744,7 @@ function parseText(context, mode) {
13744
13744
  const start = getCursor(context);
13745
13745
  const content = parseTextData(context, endIndex, mode);
13746
13746
  return {
13747
- type: "text",
13747
+ type: 2,
13748
13748
  content,
13749
13749
  loc: getSelection(context, start)
13750
13750
  };
@@ -13853,7 +13853,7 @@ function hoistStatic(root, context) {
13853
13853
  }
13854
13854
  function isSingleElementRoot(root, child) {
13855
13855
  const { children } = root;
13856
- return children.length === 1 && child.type === "element" && !isSlotOutlet(child);
13856
+ return children.length === 1 && child.type === 1 && !isSlotOutlet(child);
13857
13857
  }
13858
13858
  function walk(node, context, doNotHoistNode = false) {
13859
13859
  const { children } = node;
@@ -13861,7 +13861,7 @@ function walk(node, context, doNotHoistNode = false) {
13861
13861
  let hoistedCount = 0;
13862
13862
  for (let i = 0; i < children.length; i++) {
13863
13863
  const child = children[i];
13864
- if (child.type === "element" && child.tagType === 0) {
13864
+ if (child.type === 1 && child.tagType === 0) {
13865
13865
  const constantType = doNotHoistNode ? 0 : getConstantType(child, context);
13866
13866
  if (constantType > 0) {
13867
13867
  if (constantType >= 2) {
@@ -13886,7 +13886,7 @@ function walk(node, context, doNotHoistNode = false) {
13886
13886
  }
13887
13887
  }
13888
13888
  }
13889
- if (child.type === "element") {
13889
+ if (child.type === 1) {
13890
13890
  const isComponent = child.tagType === 1;
13891
13891
  if (isComponent) {
13892
13892
  context.scopes.vSlot++;
@@ -13910,7 +13910,7 @@ function walk(node, context, doNotHoistNode = false) {
13910
13910
  if (hoistedCount && context.transformHoist) {
13911
13911
  context.transformHoist(children, context, node);
13912
13912
  }
13913
- if (hoistedCount && hoistedCount === originalCount && node.type === "element" && node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) {
13913
+ if (hoistedCount && hoistedCount === originalCount && node.type === 1 && node.tagType === 0 && node.codegenNode && node.codegenNode.type === 13 && isArray(node.codegenNode.children)) {
13914
13914
  node.codegenNode.children = context.hoist(
13915
13915
  createArrayExpression(node.codegenNode.children)
13916
13916
  );
@@ -13919,7 +13919,7 @@ function walk(node, context, doNotHoistNode = false) {
13919
13919
  function getConstantType(node, context) {
13920
13920
  const { constantCache } = context;
13921
13921
  switch (node.type) {
13922
- case "element":
13922
+ case 1:
13923
13923
  if (node.tagType !== 0) {
13924
13924
  return 0;
13925
13925
  }
@@ -13991,8 +13991,8 @@ function getConstantType(node, context) {
13991
13991
  constantCache.set(node, 0);
13992
13992
  return 0;
13993
13993
  }
13994
- case "text":
13995
- case "comment":
13994
+ case 2:
13995
+ case 3:
13996
13996
  return 3;
13997
13997
  case 9:
13998
13998
  case 11:
@@ -14266,7 +14266,7 @@ function createRootCodegen(root, context) {
14266
14266
  } else if (children.length > 1) {
14267
14267
  let patchFlag = 64;
14268
14268
  let patchFlagText = PatchFlagNames[64];
14269
- if (children.filter((c) => c.type !== "comment").length === 1) {
14269
+ if (children.filter((c) => c.type !== 3).length === 1) {
14270
14270
  patchFlag |= 2048;
14271
14271
  patchFlagText += `, ${PatchFlagNames[2048]}`;
14272
14272
  }
@@ -14320,7 +14320,7 @@ function traverseNode(node, context) {
14320
14320
  }
14321
14321
  }
14322
14322
  switch (node.type) {
14323
- case "comment":
14323
+ case 3:
14324
14324
  if (!context.ssr) {
14325
14325
  context.helper(CREATE_COMMENT);
14326
14326
  }
@@ -14337,7 +14337,7 @@ function traverseNode(node, context) {
14337
14337
  break;
14338
14338
  case 10:
14339
14339
  case 11:
14340
- case "element":
14340
+ case 1:
14341
14341
  case 0:
14342
14342
  traverseChildren(node, context);
14343
14343
  break;
@@ -14351,7 +14351,7 @@ function traverseNode(node, context) {
14351
14351
  function createStructuralDirectiveTransform(name, fn) {
14352
14352
  const matches = isString(name) ? (n) => n === name : (n) => name.test(n);
14353
14353
  return (node, context) => {
14354
- if (node.type === "element") {
14354
+ if (node.type === 1) {
14355
14355
  const { props } = node;
14356
14356
  if (node.tagType === 3 && props.some(isVSlot)) {
14357
14357
  return;
@@ -14594,7 +14594,7 @@ function genHoists(hoists, context) {
14594
14594
  context.pure = false;
14595
14595
  }
14596
14596
  function isText(n) {
14597
- return isString(n) || n.type === 4 || n.type === "text" || n.type === 5 || n.type === 8;
14597
+ return isString(n) || n.type === 4 || n.type === 2 || n.type === 5 || n.type === 8;
14598
14598
  }
14599
14599
  function genNodeListAsArray(nodes, context) {
14600
14600
  const multilines = nodes.length > 3 || nodes.some((n) => isArray(n) || !isText(n));
@@ -14635,7 +14635,7 @@ function genNode(node, context) {
14635
14635
  return;
14636
14636
  }
14637
14637
  switch (node.type) {
14638
- case "element":
14638
+ case 1:
14639
14639
  case 9:
14640
14640
  case 11:
14641
14641
  assert(
@@ -14644,7 +14644,7 @@ function genNode(node, context) {
14644
14644
  );
14645
14645
  genNode(node.codegenNode, context);
14646
14646
  break;
14647
- case "text":
14647
+ case 2:
14648
14648
  genText(node, context);
14649
14649
  break;
14650
14650
  case 4:
@@ -14659,7 +14659,7 @@ function genNode(node, context) {
14659
14659
  case 8:
14660
14660
  genCompoundExpression(node, context);
14661
14661
  break;
14662
- case "comment":
14662
+ case 3:
14663
14663
  genComment(node, context);
14664
14664
  break;
14665
14665
  case 13:
@@ -14965,7 +14965,7 @@ const transformExpression = (node, context) => {
14965
14965
  node.content,
14966
14966
  context
14967
14967
  );
14968
- } else if (node.type === "element") {
14968
+ } else if (node.type === 1) {
14969
14969
  for (let i = 0; i < node.props.length; i++) {
14970
14970
  const dir = node.props[i];
14971
14971
  if (dir.type === 7 && dir.name !== "for") {
@@ -15055,12 +15055,12 @@ function processIf(node, dir, context, processCodegen) {
15055
15055
  let i = siblings.indexOf(node);
15056
15056
  while (i-- >= -1) {
15057
15057
  const sibling = siblings[i];
15058
- if (sibling && sibling.type === "comment") {
15058
+ if (sibling && sibling.type === 3) {
15059
15059
  context.removeNode(sibling);
15060
15060
  comments.unshift(sibling);
15061
15061
  continue;
15062
15062
  }
15063
- if (sibling && sibling.type === "text" && !sibling.content.trim().length) {
15063
+ if (sibling && sibling.type === 2 && !sibling.content.trim().length) {
15064
15064
  context.removeNode(sibling);
15065
15065
  continue;
15066
15066
  }
@@ -15073,7 +15073,7 @@ function processIf(node, dir, context, processCodegen) {
15073
15073
  context.removeNode();
15074
15074
  const branch = createIfBranch(node, dir);
15075
15075
  if (comments.length && // #3619 ignore comments if the v-if is direct child of <transition>
15076
- !(context.parent && context.parent.type === "element" && isBuiltInType(context.parent.tag, "transition"))) {
15076
+ !(context.parent && context.parent.type === 1 && isBuiltInType(context.parent.tag, "transition"))) {
15077
15077
  branch.children = [...comments, ...branch.children];
15078
15078
  }
15079
15079
  {
@@ -15146,7 +15146,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
15146
15146
  );
15147
15147
  const { children } = branch;
15148
15148
  const firstChild = children[0];
15149
- const needFragmentWrapper = children.length !== 1 || firstChild.type !== "element";
15149
+ const needFragmentWrapper = children.length !== 1 || firstChild.type !== 1;
15150
15150
  if (needFragmentWrapper) {
15151
15151
  if (children.length === 1 && firstChild.type === 11) {
15152
15152
  const vnodeCall = firstChild.codegenNode;
@@ -15155,7 +15155,7 @@ function createChildrenCodegenNode(branch, keyIndex, context) {
15155
15155
  } else {
15156
15156
  let patchFlag = 64;
15157
15157
  let patchFlagText = PatchFlagNames[64];
15158
- if (!branch.isTemplateIf && children.filter((c) => c.type !== "comment").length === 1) {
15158
+ if (!branch.isTemplateIf && children.filter((c) => c.type !== 3).length === 1) {
15159
15159
  patchFlag |= 2048;
15160
15160
  patchFlagText += `, ${PatchFlagNames[2048]}`;
15161
15161
  }
@@ -15250,7 +15250,7 @@ const transformFor = createStructuralDirectiveTransform(
15250
15250
  const { children } = forNode;
15251
15251
  if (isTemplate) {
15252
15252
  node.children.some((c) => {
15253
- if (c.type === "element") {
15253
+ if (c.type === 1) {
15254
15254
  const key = findProp(c, "key");
15255
15255
  if (key) {
15256
15256
  context.onError(
@@ -15264,7 +15264,7 @@ const transformFor = createStructuralDirectiveTransform(
15264
15264
  }
15265
15265
  });
15266
15266
  }
15267
- const needFragmentWrapper = children.length !== 1 || children[0].type !== "element";
15267
+ const needFragmentWrapper = children.length !== 1 || children[0].type !== 1;
15268
15268
  const slotOutlet = isSlotOutlet(node) ? node : isTemplate && node.children.length === 1 && isSlotOutlet(node.children[0]) ? node.children[0] : null;
15269
15269
  if (slotOutlet) {
15270
15270
  childBlock = slotOutlet.codegenNode;
@@ -15483,7 +15483,7 @@ function createParamsList(args) {
15483
15483
 
15484
15484
  const defaultFallback = createSimpleExpression(`undefined`, false);
15485
15485
  const trackSlotScopes = (node, context) => {
15486
- if (node.type === "element" && (node.tagType === 1 || node.tagType === 3)) {
15486
+ if (node.type === 1 && (node.tagType === 1 || node.tagType === 3)) {
15487
15487
  const vSlot = findDir(node, "slot");
15488
15488
  if (vSlot) {
15489
15489
  vSlot.exp;
@@ -15529,7 +15529,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
15529
15529
  const slotElement = children[i];
15530
15530
  let slotDir;
15531
15531
  if (!isTemplateNode(slotElement) || !(slotDir = findDir(slotElement, "slot", true))) {
15532
- if (slotElement.type !== "comment") {
15532
+ if (slotElement.type !== 3) {
15533
15533
  implicitDefaultChildren.push(slotElement);
15534
15534
  }
15535
15535
  continue;
@@ -15576,7 +15576,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
15576
15576
  let prev;
15577
15577
  while (j--) {
15578
15578
  prev = children[j];
15579
- if (prev.type !== "comment") {
15579
+ if (prev.type !== 3) {
15580
15580
  break;
15581
15581
  }
15582
15582
  }
@@ -15710,7 +15710,7 @@ function hasForwardedSlots(children) {
15710
15710
  for (let i = 0; i < children.length; i++) {
15711
15711
  const child = children[i];
15712
15712
  switch (child.type) {
15713
- case "element":
15713
+ case 1:
15714
15714
  if (child.tagType === 2 || hasForwardedSlots(child.children)) {
15715
15715
  return true;
15716
15716
  }
@@ -15729,16 +15729,16 @@ function hasForwardedSlots(children) {
15729
15729
  return false;
15730
15730
  }
15731
15731
  function isNonWhitespaceContent(node) {
15732
- if (node.type !== "text" && node.type !== 12)
15732
+ if (node.type !== 2 && node.type !== 12)
15733
15733
  return true;
15734
- return node.type === "text" ? !!node.content.trim() : isNonWhitespaceContent(node.content);
15734
+ return node.type === 2 ? !!node.content.trim() : isNonWhitespaceContent(node.content);
15735
15735
  }
15736
15736
 
15737
15737
  const directiveImportMap = /* @__PURE__ */ new WeakMap();
15738
15738
  const transformElement = (node, context) => {
15739
15739
  return function postTransformElement() {
15740
15740
  node = context.currentNode;
15741
- if (!(node.type === "element" && (node.tagType === 0 || node.tagType === 1))) {
15741
+ if (!(node.type === 1 && (node.tagType === 0 || node.tagType === 1))) {
15742
15742
  return;
15743
15743
  }
15744
15744
  const { tag, props } = node;
@@ -15809,7 +15809,7 @@ const transformElement = (node, context) => {
15809
15809
  if (hasDynamicTextChild && getConstantType(child, context) === 0) {
15810
15810
  patchFlag |= 1;
15811
15811
  }
15812
- if (hasDynamicTextChild || type === "text") {
15812
+ if (hasDynamicTextChild || type === 2) {
15813
15813
  vnodeChildren = child;
15814
15814
  } else {
15815
15815
  vnodeChildren = node.children;
@@ -16493,7 +16493,7 @@ const injectPrefix = (arg, prefix) => {
16493
16493
  };
16494
16494
 
16495
16495
  const transformText = (node, context) => {
16496
- if (node.type === 0 || node.type === "element" || node.type === 11 || node.type === 10) {
16496
+ if (node.type === 0 || node.type === 1 || node.type === 11 || node.type === 10) {
16497
16497
  return () => {
16498
16498
  const children = node.children;
16499
16499
  let currentContainer = void 0;
@@ -16525,7 +16525,7 @@ const transformText = (node, context) => {
16525
16525
  // as-is since the runtime has dedicated fast path for this by directly
16526
16526
  // setting textContent of the element.
16527
16527
  // for component root it's always normalized anyway.
16528
- children.length === 1 && (node.type === 0 || node.type === "element" && node.tagType === 0 && // #3756
16528
+ children.length === 1 && (node.type === 0 || node.type === 1 && node.tagType === 0 && // #3756
16529
16529
  // custom directives can potentially add DOM elements arbitrarily,
16530
16530
  // we need to avoid setting textContent of the element at runtime
16531
16531
  // to avoid accidentally overwriting the DOM elements added
@@ -16542,7 +16542,7 @@ const transformText = (node, context) => {
16542
16542
  const child = children[i];
16543
16543
  if (isText$1(child) || child.type === 8) {
16544
16544
  const callArgs = [];
16545
- if (child.type !== "text" || child.content !== " ") {
16545
+ if (child.type !== 2 || child.content !== " ") {
16546
16546
  callArgs.push(child);
16547
16547
  }
16548
16548
  if (!context.ssr && getConstantType(child, context) === 0) {
@@ -16567,7 +16567,7 @@ const transformText = (node, context) => {
16567
16567
 
16568
16568
  const seen$1 = /* @__PURE__ */ new WeakSet();
16569
16569
  const transformOnce = (node, context) => {
16570
- if (node.type === "element" && findDir(node, "once", true)) {
16570
+ if (node.type === 1 && findDir(node, "once", true)) {
16571
16571
  if (seen$1.has(node) || context.inVOnce) {
16572
16572
  return;
16573
16573
  }
@@ -16656,7 +16656,7 @@ const transformFilter = (node, context) => {
16656
16656
  if (node.type === 5) {
16657
16657
  rewriteFilter(node.content, context);
16658
16658
  }
16659
- if (node.type === "element") {
16659
+ if (node.type === 1) {
16660
16660
  node.props.forEach((prop) => {
16661
16661
  if (prop.type === 7 && prop.name !== "for" && prop.exp) {
16662
16662
  rewriteFilter(prop.exp, context);
@@ -16797,7 +16797,7 @@ function wrapFilter(exp, filter, context) {
16797
16797
 
16798
16798
  const seen = /* @__PURE__ */ new WeakSet();
16799
16799
  const transformMemo = (node, context) => {
16800
- if (node.type === "element") {
16800
+ if (node.type === 1) {
16801
16801
  const dir = findDir(node, "memo");
16802
16802
  if (!dir || seen.has(node)) {
16803
16803
  return;
@@ -16986,7 +16986,7 @@ const parserOptions = {
16986
16986
  };
16987
16987
 
16988
16988
  const transformStyle = (node) => {
16989
- if (node.type === "element") {
16989
+ if (node.type === 1) {
16990
16990
  node.props.forEach((p, i) => {
16991
16991
  if (p.type === 6 && p.name === "style" && p.value) {
16992
16992
  node.props[i] = {
@@ -17276,7 +17276,7 @@ const transformShow = (dir, node, context) => {
17276
17276
  };
17277
17277
 
17278
17278
  const transformTransition = (node, context) => {
17279
- if (node.type === "element" && node.tagType === 1) {
17279
+ if (node.type === 1 && node.tagType === 1) {
17280
17280
  const component = context.isBuiltInComponent(node.tag);
17281
17281
  if (component === TRANSITION) {
17282
17282
  return () => {
@@ -17296,7 +17296,7 @@ const transformTransition = (node, context) => {
17296
17296
  );
17297
17297
  }
17298
17298
  const child = node.children[0];
17299
- if (child.type === "element") {
17299
+ if (child.type === 1) {
17300
17300
  for (const p of child.props) {
17301
17301
  if (p.type === 7 && p.name === "show") {
17302
17302
  node.props.push({
@@ -17314,14 +17314,14 @@ const transformTransition = (node, context) => {
17314
17314
  };
17315
17315
  function hasMultipleChildren(node) {
17316
17316
  const children = node.children = node.children.filter(
17317
- (c) => c.type !== "comment" && !(c.type === "text" && !c.content.trim())
17317
+ (c) => c.type !== 3 && !(c.type === 2 && !c.content.trim())
17318
17318
  );
17319
17319
  const child = children[0];
17320
17320
  return children.length !== 1 || child.type === 11 || child.type === 9 && child.branches.some(hasMultipleChildren);
17321
17321
  }
17322
17322
 
17323
17323
  const ignoreSideEffectTags = (node, context) => {
17324
- if (node.type === "element" && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
17324
+ if (node.type === 1 && node.tagType === 0 && (node.tag === "script" || node.tag === "style")) {
17325
17325
  context.onError(
17326
17326
  createDOMCompilerError(61, node.loc)
17327
17327
  );