这个问题是我从未遇到过的,但它只是在我完成游戏一个多月后随机开始的。
每当我跑步
npm run webpack --watch ./lib/saviors.js bundle.js
我不断得到
[BABEL] Note: The code generator has deoptimised the styling of "/Users/steven/Desktop/Saviors/bundle.js" as it exceeds the max of "500KB".
我的 bundle.js.map 的大小继续增加。有人能告诉我这是什么原因吗?我很困惑,因为它只是随机开始的。在网上查看时,我注意到人们提到我们需要拥有我已经拥有的 /node_modules/。其他人找到了解决此问题的不同方法吗?
module: {
loaders: [
{
test: [/\.jsx?$/, /\.js?$/],
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015']
}
}
]
},
感谢那些帮助并提供一些建议的人。