📜  未找到节点需要 fs - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:22.690000             🧑  作者: Mango

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

    return config
  }
}