@mpxjs/webpack-plugin 2.7.31 → 2.7.32
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 +2 -0
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -958,6 +958,8 @@ class MpxWebpackPlugin {
|
|
|
958
958
|
if (mpx.mode === 'wx') {
|
|
959
959
|
const dep = new DynamicEntryDependency(request, 'export', '', queryObj.root, MPX_CURRENT_CHUNK, context, range)
|
|
960
960
|
parser.state.current.addPresentationalDependency(dep)
|
|
961
|
+
// 包含require.async的模块不能被concatenate,避免DynamicEntryDependency中无法获取模块chunk以计算相对路径
|
|
962
|
+
parser.state.module.buildInfo.moduleConcatenationBailout = 'require async'
|
|
961
963
|
} else {
|
|
962
964
|
const range = expr.range
|
|
963
965
|
const dep = new CommonJsAsyncDependency(request, range)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.32",
|
|
4
4
|
"description": "mpx compile core",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mpx"
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"engines": {
|
|
81
81
|
"node": ">=14.14.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "9ce16521605ad3e64c258c601eb7dc21cb00dbbc"
|
|
84
84
|
}
|