@vue/compiler-sfc 2.7.6 → 2.7.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.
@@ -11998,13 +11998,14 @@ function genElement(el, state) {
11998
11998
  }
11999
11999
  else {
12000
12000
  let data;
12001
- if (!el.plain || (el.pre && state.maybeComponent(el))) {
12001
+ const maybeComponent = state.maybeComponent(el);
12002
+ if (!el.plain || (el.pre && maybeComponent)) {
12002
12003
  data = genData(el, state);
12003
12004
  }
12004
12005
  let tag;
12005
12006
  // check if this is a component in <script setup>
12006
12007
  const bindings = state.options.bindings;
12007
- if (bindings && bindings.__isScriptSetup !== false) {
12008
+ if (maybeComponent && bindings && bindings.__isScriptSetup !== false) {
12008
12009
  tag =
12009
12010
  checkBindingType(bindings, el.tag) ||
12010
12011
  checkBindingType(bindings, camelize(el.tag)) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "2.7.6",
3
+ "version": "2.7.7",
4
4
  "description": "compiler-sfc for Vue 2",
5
5
  "main": "dist/compiler-sfc.js",
6
6
  "types": "dist/compiler-sfc.d.ts",