@vue/compiler-core 3.4.5 → 3.4.7

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.
@@ -2591,7 +2591,7 @@ function onCloseTag(el, end, isImplied = false) {
2591
2591
  }
2592
2592
  }
2593
2593
  }
2594
- if (isCompatEnabled(
2594
+ if (!tokenizer.inSFCRoot && isCompatEnabled(
2595
2595
  "COMPILER_NATIVE_TEMPLATE",
2596
2596
  currentOptions
2597
2597
  ) && el.tag === "template" && !isFragmentTemplate(el)) {
@@ -3226,8 +3226,7 @@ function createTransformContext(root, {
3226
3226
  }
3227
3227
  context.parent.children.splice(removalIndex, 1);
3228
3228
  },
3229
- onNodeRemoved: () => {
3230
- },
3229
+ onNodeRemoved: shared.NOOP,
3231
3230
  addIdentifiers(exp) {
3232
3231
  {
3233
3232
  if (shared.isString(exp)) {
@@ -2562,7 +2562,7 @@ function onCloseTag(el, end, isImplied = false) {
2562
2562
  }
2563
2563
  {
2564
2564
  const props = el.props;
2565
- if (isCompatEnabled(
2565
+ if (!tokenizer.inSFCRoot && isCompatEnabled(
2566
2566
  "COMPILER_NATIVE_TEMPLATE",
2567
2567
  currentOptions
2568
2568
  ) && el.tag === "template" && !isFragmentTemplate(el)) {
@@ -3171,8 +3171,7 @@ function createTransformContext(root, {
3171
3171
  }
3172
3172
  context.parent.children.splice(removalIndex, 1);
3173
3173
  },
3174
- onNodeRemoved: () => {
3175
- },
3174
+ onNodeRemoved: shared.NOOP,
3176
3175
  addIdentifiers(exp) {
3177
3176
  {
3178
3177
  if (shared.isString(exp)) {
@@ -2356,7 +2356,7 @@ function onCloseTag(el, end, isImplied = false) {
2356
2356
  }
2357
2357
  }
2358
2358
  }
2359
- if (isCompatEnabled(
2359
+ if (!tokenizer.inSFCRoot && isCompatEnabled(
2360
2360
  "COMPILER_NATIVE_TEMPLATE",
2361
2361
  currentOptions
2362
2362
  ) && el.tag === "template" && !isFragmentTemplate(el)) {
@@ -2970,8 +2970,7 @@ function createTransformContext(root, {
2970
2970
  }
2971
2971
  context.parent.children.splice(removalIndex, 1);
2972
2972
  },
2973
- onNodeRemoved: () => {
2974
- },
2973
+ onNodeRemoved: NOOP,
2975
2974
  addIdentifiers(exp) {
2976
2975
  },
2977
2976
  removeIdentifiers(exp) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-core",
3
- "version": "3.4.5",
3
+ "version": "3.4.7",
4
4
  "description": "@vue/compiler-core",
5
5
  "main": "index.js",
6
6
  "module": "dist/compiler-core.esm-bundler.js",
@@ -9,19 +9,6 @@
9
9
  "index.js",
10
10
  "dist"
11
11
  ],
12
- "exports": {
13
- ".": {
14
- "types": "./dist/compiler-core.d.ts",
15
- "node": {
16
- "production": "./dist/compiler-core.cjs.prod.js",
17
- "development": "./dist/compiler-core.cjs.js",
18
- "default": "./index.js"
19
- },
20
- "import": "./dist/compiler-core.esm-bundler.js",
21
- "require": "./index.js"
22
- },
23
- "./*": "./*"
24
- },
25
12
  "buildOptions": {
26
13
  "name": "VueCompilerCore",
27
14
  "compat": true,
@@ -49,7 +36,7 @@
49
36
  "entities": "^4.5.0",
50
37
  "estree-walker": "^2.0.2",
51
38
  "source-map-js": "^1.0.2",
52
- "@vue/shared": "3.4.5"
39
+ "@vue/shared": "3.4.7"
53
40
  },
54
41
  "devDependencies": {
55
42
  "@babel/types": "^7.23.6"