Skip to content

Commit 44413a1

Browse files
committed
"os-browserify"
1 parent 00be9a4 commit 44413a1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"mini-css-extract-plugin": "^2.2.2",
8282
"minimist": "^1.2.6",
8383
"optimize-css-assets-webpack-plugin": "^6.0.1",
84+
"os-browserify": "^0.3.0",
8485
"pnp-webpack-plugin": "^1.6.4",
8586
"postcss": "8.4.16",
8687
"postcss-flexbugs-fixes": "^5.0.2",

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ module.exports = (env, argv) => {
1919
if (process.env.NODE_ENV == "development") {
2020
config.experiments = { ...config.experiments, lazyCompilation: true };
2121
}
22-
// console.log(webpackconfig);
22+
//console.log(webpackconfig.resolve);
23+
webpackconfig.resolve = Object.assign(webpackconfig.resolve, {
24+
fallback: { os: require.resolve("os-browserify/browser") },
25+
});
2326
return webpackconfig;
2427
};

0 commit comments

Comments
 (0)