Skip to content

Commit bf47306

Browse files
Copilothsluoyz
andcommitted
Fix webpack 5 compatibility issue by replacing deprecated node.fs with resolve.fallback
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
1 parent 49621d2 commit bf47306

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webpack.base.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ module.exports = {
2929
},
3030
resolve: {
3131
extensions: [ '.tsx', '.ts', '.js' ],
32-
},
33-
node: {
34-
fs: "empty"
32+
fallback: {
33+
fs: false
34+
}
3535
},
3636

3737
output: {

0 commit comments

Comments
 (0)