700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default

时间:2019-09-28 11:13:20

相关推荐

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default

升级项目使用外部包时报错,查了下解决方案,记录下

/blog/263

我根据我使用的的情况具体了下方案,我是使用jhipster的,所以具体如下。

首先

npm install node-polyfill-webpack-plugin

然后修改webpack.custom.js

const NodePolyfillPlugin = require('node-polyfill-webpack-plugin')module.exports = async (config, options, targetOptions) => {//......config.plugins.push(new NodePolyfillPlugin());//......})

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。