Skip to content

Commit

Permalink
webpack v4 -> v5 config cleanup
Browse files Browse the repository at this point in the history
From the migration doc [1]:

> If you are using something like node.fs: 'empty' replace it with resolve.fallback.fs: false.

[1]: https://webpack.js.org/migrate/5/
  • Loading branch information
victorlin committed Sep 8, 2022
1 parent ffe9375 commit 03356b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ const generateConfig = ({extensionPath, devMode=false, customOutputPath, analyze
publicPath: "/dist/"
},
resolve: {
alias: aliasesToResolve
},
node: {
fs: 'empty'
alias: aliasesToResolve,
fallback: {
fs: false
}
},
plugins,
optimization: {
Expand Down

0 comments on commit 03356b8

Please sign in to comment.