Skip to content

Commit 617bddb

Browse files
authored
Merge pull request #78 from kne-union/linzp
修改编译过程中意外报错清空
2 parents 794b1ba + 3c2d343 commit 617bddb

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

lib/craco-remote-components-plugin.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ module.exports = {
2626
})
2727
const definePlugin = webpackConfig.plugins.find((plugin) => plugin.constructor.name === "DefinePlugin");
2828
Object.assign(definePlugin.definitions["process.env"], {STATIC_BASE_URL: `"${env.staticBaseUrl}"`});
29+
webpackConfig.resolve.fallback = {
30+
"path": false,
31+
"util": false,
32+
"url": false,
33+
"http": false,
34+
"https": false,
35+
"stream": false,
36+
"assert": false,
37+
"querystring": false,
38+
"zlib": false,
39+
"fs": false
40+
};
2941
return webpackConfig;
3042
}
3143
};

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kne/modules-dev",
3-
"version": "2.0.27",
3+
"version": "2.0.28",
44
"description": "用于辅助在项目内启动一个规范化组件开发的环境",
55
"publishConfig": {
66
"source": "src/index.js",
@@ -31,7 +31,6 @@
3131
"author": "linzp",
3232
"license": "ISC",
3333
"dependencies": {
34-
"@babel/helper-module-transforms": "7.24.5",
3534
"@kne/apply-template": "^0.1.1",
3635
"@kne/camel-case": "^0.1.1",
3736
"@kne/craco-module-federation": "^1.1.5",

0 commit comments

Comments
 (0)