@mpxjs/webpack-plugin 2.9.72 → 2.9.73

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.
@@ -720,7 +720,14 @@ function parse (template, options) {
720
720
  currentParent.children.push(element)
721
721
  element.parent = currentParent
722
722
  processElement(element, root, options, meta)
723
+
723
724
  tagNames.add(element.tag)
725
+ // 统计通过抽象节点方式使用的组件
726
+ element.attrsList.forEach((attr) => {
727
+ if (genericRE.test(attr.name)) {
728
+ tagNames.add(attr.value)
729
+ }
730
+ })
724
731
 
725
732
  if (!unary) {
726
733
  currentParent = element
@@ -2464,7 +2471,7 @@ function processShow (el, options, root) {
2464
2471
  error$1(`Attrs ${config[mode].directive.show} should have a value `)
2465
2472
  return
2466
2473
  }
2467
- if (ctorType === 'component' && el.parent === root && isRealNode(el)) {
2474
+ if (ctorType === 'component' && el.parent === root && isRealNode(el) && hasVirtualHost) {
2468
2475
  show = has ? `{{${parseMustacheWithContext(show).result}&&mpxShow}}` : '{{mpxShow}}'
2469
2476
  }
2470
2477
  if (show === undefined) return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.9.72",
3
+ "version": "2.9.73",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -28,7 +28,7 @@
28
28
  "@better-scroll/wheel": "^2.5.1",
29
29
  "@better-scroll/zoom": "^2.5.1",
30
30
  "@mpxjs/template-engine": "^2.8.7",
31
- "@mpxjs/utils": "^2.9.70",
31
+ "@mpxjs/utils": "^2.9.73",
32
32
  "acorn": "^8.11.3",
33
33
  "acorn-walk": "^7.2.0",
34
34
  "async": "^2.6.0",
@@ -83,7 +83,7 @@
83
83
  "devDependencies": {
84
84
  "@ant-design/react-native": "^5.2.2",
85
85
  "@d11/react-native-fast-image": "^8.6.12",
86
- "@mpxjs/api-proxy": "^2.9.71",
86
+ "@mpxjs/api-proxy": "^2.9.73",
87
87
  "@types/babel-traverse": "^6.25.4",
88
88
  "@types/babel-types": "^7.0.4",
89
89
  "@types/react": "^18.2.79",
@@ -99,5 +99,5 @@
99
99
  "engines": {
100
100
  "node": ">=14.14.0"
101
101
  },
102
- "gitHead": "5ceca0430a79a41456260d87a81760f2cd31fad1"
102
+ "gitHead": "296482bcb03ab01081a96dcb41ce37df393c3281"
103
103
  }