@mpxjs/webpack-plugin 2.8.28 → 2.8.29
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.
- package/lib/index.js +3 -4
- package/lib/loader.js +1 -1
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -524,7 +524,7 @@ class MpxWebpackPlugin {
|
|
|
524
524
|
compilation.warnings = compilation.warnings.concat(warnings)
|
|
525
525
|
compilation.errors = compilation.errors.concat(errors)
|
|
526
526
|
const moduleGraph = compilation.moduleGraph
|
|
527
|
-
|
|
527
|
+
|
|
528
528
|
if (!compilation.__mpx__) {
|
|
529
529
|
// init mpx
|
|
530
530
|
mpx = compilation.__mpx__ = {
|
|
@@ -763,9 +763,8 @@ class MpxWebpackPlugin {
|
|
|
763
763
|
async.forEach(presentationalDependencies.filter((dep) => dep.mpxAction), (dep, callback) => {
|
|
764
764
|
dep.mpxAction(module, compilation, callback)
|
|
765
765
|
}, (err) => {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
})
|
|
766
|
+
if (err) compilation.errors.push(err)
|
|
767
|
+
rawProcessModuleDependencies.call(compilation, module, callback)
|
|
769
768
|
})
|
|
770
769
|
}
|
|
771
770
|
|
package/lib/loader.js
CHANGED
|
@@ -69,7 +69,7 @@ module.exports = function (content) {
|
|
|
69
69
|
|
|
70
70
|
if (ctorType === 'app') {
|
|
71
71
|
const appName = getEntryName(this)
|
|
72
|
-
this._module.addPresentationalDependency(new AppEntryDependency(resourcePath, appName))
|
|
72
|
+
if (appName) this._module.addPresentationalDependency(new AppEntryDependency(resourcePath, appName))
|
|
73
73
|
}
|
|
74
74
|
const loaderContext = this
|
|
75
75
|
const stringifyRequest = r => loaderUtils.stringifyRequest(loaderContext, r)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.29",
|
|
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": "
|
|
85
|
+
"gitHead": "5dea6151cbf77b929006943a7133cf4f34b878fc"
|
|
86
86
|
}
|