Created
January 9, 2021 21:34
-
-
Save MaikelVeen/60a275a79c51174176aebf1d51ae0777 to your computer and use it in GitHub Desktop.
Fixing the client bundle build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
webpack: (config, { isServer }) => { | |
// Fixes npm packages that depend on `fs` module | |
if (!isServer) { | |
config.node = { | |
fs: 'empty' | |
} | |
} | |
return config | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment