Answers for "node require fs not found"

0

node require fs not found

module.exports = {
  webpack: (config, { isServer }) => {
    // Fixes npm packages that depend on `fs` module
    if (!isServer) {
      config.node = {
        fs: 'empty'
      }
    }

    return config
  }
}
Posted by: Guest on July-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language