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