@mpxjs/webpack-plugin 2.9.29 → 2.9.30

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.
@@ -27,7 +27,8 @@ class ImportDependencyTemplate extends (
27
27
  message: 'import()',
28
28
  runtimeRequirements
29
29
  })
30
- content = content.replace(/(__webpack_require__\.t\.bind\(.+, )(\d+)(\))/, (_, p1, p2, p3) => {
30
+ // replace fakeType by 9 to fix require.async to commonjs2 module like 'module.exports = function(){...}'
31
+ content = content.replace(/(__webpack_require__\.t\.bind\(.+,\s*)(\d+)(\s*\))/, (_, p1, p2, p3) => {
31
32
  return p1 + '9' + p3
32
33
  })
33
34
  source.replace(dep.range[0], dep.range[1] - 1, content)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.9.29",
3
+ "version": "2.9.30",
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": "62469adf246993e5ca7fd1c0a49cc70faa585c45"
85
+ "gitHead": "5c1a417a5f474f071bd5b3ae43f668772c704ad3"
86
86
  }