@mpxjs/webpack-plugin 2.8.9 → 2.8.10
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
CHANGED
|
@@ -59,6 +59,7 @@ const stringifyLoadersAndResource = require('./utils/stringify-loaders-resource'
|
|
|
59
59
|
const emitFile = require('./utils/emit-file')
|
|
60
60
|
const { MPX_PROCESSED_FLAG, MPX_DISABLE_EXTRACTOR_CACHE } = require('./utils/const')
|
|
61
61
|
const isEmptyObject = require('./utils/is-empty-object')
|
|
62
|
+
require('./utils/check-core-version-match')
|
|
62
63
|
|
|
63
64
|
const isProductionLikeMode = options => {
|
|
64
65
|
return options.mode === 'production' || !options.mode
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @mpxjs/webpack-plugin 2.7.x -> @mpxjs/core 2.7.x
|
|
2
|
+
// @mpxjs/webpack-plugin 2.8.x -> @mpxjs/core 2.8.x
|
|
3
|
+
const coreVersion = require('@mpxjs/core/package.json').version
|
|
4
|
+
const packageName = require('../../package.json').name
|
|
5
|
+
const packageVersion = require('../../package.json').version
|
|
6
|
+
|
|
7
|
+
if (packageVersion.slice(0, 3) !== coreVersion.slice(0, 3)) {
|
|
8
|
+
const corePath = require.resolve('@mpxjs/core')
|
|
9
|
+
const packagePath = require.resolve('../../package.json')
|
|
10
|
+
throw new Error(
|
|
11
|
+
`@mpxjs/core packages version mismatch:
|
|
12
|
+
-@mpxjs/core@${coreVersion}(${corePath})
|
|
13
|
+
-${packageName}@${packageVersion}(${packagePath})
|
|
14
|
+
This may cause things to work incorrectly, Make sure to use the same minor version for both.
|
|
15
|
+
For example: @mpxjs/core@2.7.x with @mpxjs/webpack-plugin@2.7.x
|
|
16
|
+
`
|
|
17
|
+
)
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/webpack-plugin",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.10",
|
|
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": "f17e671af3371f763cdcdcc6afbb06100f1f054d"
|
|
86
86
|
}
|