From 03356b85b88d8a1c070c20f5a4f5f85b338942da Mon Sep 17 00:00:00 2001 From: Victor Lin <13424970+victorlin@users.noreply.github.com> Date: Thu, 8 Sep 2022 15:44:06 -0700 Subject: [PATCH] webpack v4 -> v5 config cleanup 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/ --- webpack.config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 7940f4f6e..c35cb65c5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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: {