@kne/modules-dev 2.1.23 → 2.2.1
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/craco-fix-plugin.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
const {when} = require("@
|
|
2
|
-
const webpack = require("webpack");
|
|
1
|
+
const {when} = require("@kne/craco");
|
|
3
2
|
const env = require("./env");
|
|
4
3
|
module.exports = {
|
|
5
4
|
overrideWebpackConfig({webpackConfig, context}) {
|
|
@@ -24,17 +23,8 @@ module.exports = {
|
|
|
24
23
|
"assert": false,
|
|
25
24
|
"querystring": false,
|
|
26
25
|
"zlib": false,
|
|
27
|
-
"fs": false
|
|
28
|
-
"diagnostics_channel": false
|
|
26
|
+
"fs": false
|
|
29
27
|
};
|
|
30
|
-
|
|
31
|
-
// 添加 NormalModuleReplacementPlugin 处理 node: 协议
|
|
32
|
-
webpackConfig.plugins.push(
|
|
33
|
-
new webpack.NormalModuleReplacementPlugin(/^node:/, (resource) => {
|
|
34
|
-
resource.request = resource.request.replace(/^node:/, '');
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
|
|
38
28
|
return webpackConfig;
|
|
39
29
|
}
|
|
40
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kne/modules-dev",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "用于辅助在项目内启动一个规范化组件开发的环境",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@kne/apply-template": "^0.1.1",
|
|
40
40
|
"@kne/camel-case": "^0.1.1",
|
|
41
|
-
"@kne/craco-module-federation": "^1.1.
|
|
41
|
+
"@kne/craco-module-federation": "^1.1.9",
|
|
42
42
|
"@kne/ensure-slash": "^0.1.0",
|
|
43
43
|
"@kne/example-driver": "^0.1.11",
|
|
44
44
|
"@kne/fetch-npm-package": "^0.1.1",
|
|
45
45
|
"@kne/md-doc": "^0.1.13",
|
|
46
46
|
"@kne/react-fetch": "^1.4.3",
|
|
47
47
|
"@kne/react-icon": "^0.1.4",
|
|
48
|
-
"ajv": "^8.
|
|
48
|
+
"ajv": "^8.18.0",
|
|
49
49
|
"chokidar": "^3.5.3",
|
|
50
50
|
"classnames": "^2.3.2",
|
|
51
51
|
"commander": "^12.1.0",
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
"webpack-virtual-modules": "^0.5.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@
|
|
61
|
+
"@kne/craco": ">=7.0.0",
|
|
62
62
|
"@kne/remote-loader": "*",
|
|
63
63
|
"antd": ">=5",
|
|
64
64
|
"loader-utils": "*",
|
|
65
65
|
"react": ">=18",
|
|
66
66
|
"react-router-dom": ">=6.4",
|
|
67
|
-
"react-scripts": ">=5"
|
|
67
|
+
"@kne/react-scripts": ">=5"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": {
|
|
70
70
|
"production": [
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@
|
|
82
|
+
"@kne/craco": "^7.1.2",
|
|
83
83
|
"@kne/microbundle": "^0.15.4"
|
|
84
84
|
}
|
|
85
85
|
}
|