[英]Webpack migration v4 to v5
How to write the following code in Webpack v5?如何在 Webpack v5 中编写以下代码?
module.exports = {
//...
node: {
fs: 'empty',
}
};
I saw the changes in the migration notice, but I don't quite get it.我看到迁移通知中的更改,但我不太明白。
In your module.export
like you have in question.在你的
module.export
就像你有问题一样。 remove node.fs.empty
and replace with below删除
node.fs.empty
并替换为下面
...
resolve:
{
fallback: {
fs: false
}
},
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.