@mpxjs/webpack-plugin 2.8.28-beta.2 → 2.8.28-beta.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.
@@ -76,13 +76,6 @@ class DynamicEntryDependency extends NullDependency {
76
76
 
77
77
  const key = [resource, filename].join('|')
78
78
 
79
- mpx.collectDynamicEntryInfo({
80
- resource,
81
- packageName,
82
- filename,
83
- entryType
84
- })
85
-
86
79
  if (alreadyOutputted) {
87
80
  const addEntryPromise = mpx.addEntryPromiseMap.get(key)
88
81
  if (addEntryPromise) {
@@ -111,6 +104,12 @@ class DynamicEntryDependency extends NullDependency {
111
104
  .catch(err => callback(err))
112
105
 
113
106
  mpx.addEntryPromiseMap.set(key, addEntryPromise)
107
+ mpx.collectDynamicEntryInfo({
108
+ resource,
109
+ packageName,
110
+ filename,
111
+ entryType
112
+ })
114
113
  }
115
114
  }
116
115
  ], callback)
@@ -762,7 +762,7 @@ function parse (template, options) {
762
762
  },
763
763
  comment: function comment (text) {
764
764
  if (!currentParent) genTempRoot()
765
- if (options.hasComment) {
765
+ if (options.hasComment || /mpx_config_/.test(text)) {
766
766
  currentParent.children.push({
767
767
  type: 3,
768
768
  text: text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.8.28-beta.2",
3
+ "version": "2.8.28-beta.4",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"
@@ -82,5 +82,5 @@
82
82
  "engines": {
83
83
  "node": ">=14.14.0"
84
84
  },
85
- "gitHead": "8b8a77ed1cc2f6fcd9def0aac15c7d31d05f62c4"
85
+ "gitHead": "935028d9a4cd51eb1ad25cdb2f1809bf41479050"
86
86
  }