@vue/compiler-sfc 3.4.1 → 3.4.2

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.
@@ -1743,10 +1743,10 @@ function createCache(max = 500) {
1743
1743
  }
1744
1744
 
1745
1745
  function isImportUsed(local, sfc) {
1746
- return resolveTemplateUsageCheckString(sfc).has(local);
1746
+ return resolveTemplateUsedIdentifiers(sfc).has(local);
1747
1747
  }
1748
1748
  const templateUsageCheckCache = createCache();
1749
- function resolveTemplateUsageCheckString(sfc) {
1749
+ function resolveTemplateUsedIdentifiers(sfc) {
1750
1750
  const { content, ast } = sfc.template;
1751
1751
  const cached = templateUsageCheckCache.get(content);
1752
1752
  if (cached) {
@@ -1758,9 +1758,12 @@ function resolveTemplateUsageCheckString(sfc) {
1758
1758
  var _a;
1759
1759
  switch (node.type) {
1760
1760
  case 1:
1761
- if (!CompilerDOM.parserOptions.isNativeTag(node.tag) && !CompilerDOM.parserOptions.isBuiltInComponent(node.tag)) {
1762
- ids.add(shared.camelize(node.tag));
1763
- ids.add(shared.capitalize(shared.camelize(node.tag)));
1761
+ let tag = node.tag;
1762
+ if (tag.includes("."))
1763
+ tag = tag.split(".")[0].trim();
1764
+ if (!CompilerDOM.parserOptions.isNativeTag(tag) && !CompilerDOM.parserOptions.isBuiltInComponent(tag)) {
1765
+ ids.add(shared.camelize(tag));
1766
+ ids.add(shared.capitalize(shared.camelize(tag)));
1764
1767
  }
1765
1768
  for (let i = 0; i < node.props.length; i++) {
1766
1769
  const prop = node.props[i];
@@ -20579,7 +20582,7 @@ function isStaticNode(node) {
20579
20582
  return false;
20580
20583
  }
20581
20584
 
20582
- const version = "3.4.1";
20585
+ const version = "3.4.2";
20583
20586
  const parseCache = parseCache$1;
20584
20587
  const errorMessages = {
20585
20588
  ...CompilerDOM.errorMessages,
@@ -26574,10 +26574,10 @@ function createCache(max = 500) {
26574
26574
  }
26575
26575
 
26576
26576
  function isImportUsed(local, sfc) {
26577
- return resolveTemplateUsageCheckString(sfc).has(local);
26577
+ return resolveTemplateUsedIdentifiers(sfc).has(local);
26578
26578
  }
26579
26579
  const templateUsageCheckCache = createCache();
26580
- function resolveTemplateUsageCheckString(sfc) {
26580
+ function resolveTemplateUsedIdentifiers(sfc) {
26581
26581
  const { content, ast } = sfc.template;
26582
26582
  const cached = templateUsageCheckCache.get(content);
26583
26583
  if (cached) {
@@ -26589,9 +26589,12 @@ function resolveTemplateUsageCheckString(sfc) {
26589
26589
  var _a;
26590
26590
  switch (node.type) {
26591
26591
  case 1:
26592
- if (!parserOptions.isNativeTag(node.tag) && !parserOptions.isBuiltInComponent(node.tag)) {
26593
- ids.add(camelize(node.tag));
26594
- ids.add(capitalize$1(camelize(node.tag)));
26592
+ let tag = node.tag;
26593
+ if (tag.includes("."))
26594
+ tag = tag.split(".")[0].trim();
26595
+ if (!parserOptions.isNativeTag(tag) && !parserOptions.isBuiltInComponent(tag)) {
26596
+ ids.add(camelize(tag));
26597
+ ids.add(capitalize$1(camelize(tag)));
26595
26598
  }
26596
26599
  for (let i = 0; i < node.props.length; i++) {
26597
26600
  const prop = node.props[i];
@@ -31228,7 +31231,8 @@ const ssrTransformSlotOutlet = (node, context) => {
31228
31231
  }
31229
31232
  let method = SSR_RENDER_SLOT;
31230
31233
  const parent = context.parent;
31231
- if (parent && parent.type === 1 && parent.tagType === 1 && resolveComponentType(parent, context, true) === TRANSITION && parent.children.filter((c) => c.type === 1).length === 1) {
31234
+ let componentType;
31235
+ if (parent && parent.type === 1 && parent.tagType === 1 && ((componentType = resolveComponentType(parent, context, true)) === TRANSITION || componentType === TRANSITION_GROUP) && parent.children.filter((c) => c.type === 1).length === 1) {
31232
31236
  method = SSR_RENDER_SLOT_INNER;
31233
31237
  if (!(context.scopeId && context.slotted !== false)) {
31234
31238
  args.push("null");
@@ -48598,7 +48602,7 @@ var __spreadValues = (a, b) => {
48598
48602
  }
48599
48603
  return a;
48600
48604
  };
48601
- const version = "3.4.1";
48605
+ const version = "3.4.2";
48602
48606
  const parseCache = parseCache$1;
48603
48607
  const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
48604
48608
  const walk = walk$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "@vue/compiler-sfc",
5
5
  "main": "dist/compiler-sfc.cjs.js",
6
6
  "module": "dist/compiler-sfc.esm-browser.js",
@@ -37,10 +37,10 @@
37
37
  "magic-string": "^0.30.5",
38
38
  "postcss": "^8.4.32",
39
39
  "source-map-js": "^1.0.2",
40
- "@vue/compiler-core": "3.4.1",
41
- "@vue/compiler-dom": "3.4.1",
42
- "@vue/compiler-ssr": "3.4.1",
43
- "@vue/shared": "3.4.1"
40
+ "@vue/compiler-dom": "3.4.2",
41
+ "@vue/shared": "3.4.2",
42
+ "@vue/compiler-core": "3.4.2",
43
+ "@vue/compiler-ssr": "3.4.2"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@babel/types": "^7.23.6",