admin管理员组文章数量:1335380
Webpack is throwing a warning: "This seems to be a pre-built javascript file. Though this is possible, it's not remended. Try to require the original source to get better results."
However, this library I am including is intentionally pre-built such that consuming applications do not need to replicate its build steps and configuration.
How do I ignore this warning?
Webpack is throwing a warning: "This seems to be a pre-built javascript file. Though this is possible, it's not remended. Try to require the original source to get better results."
However, this library I am including is intentionally pre-built such that consuming applications do not need to replicate its build steps and configuration.
How do I ignore this warning?
Share Improve this question asked Sep 29, 2016 at 10:42 ngokevinngokevin 13.2k5 gold badges44 silver badges87 bronze badges2 Answers
Reset to default 9Fix this by adding the path to the prebuilt module into your webpack config under module:
module: {
// ...
noParse: [
'/node_modules/prebuiltlib/dist/build.js',
]
// ...
}
This has the added benefit of slightly faster build times.
I just copy and paste the same node_module from another solution into my repo, it's works for me i got error for jspdf.js library of node module. this is due to the different versions and code i guess.
本文标签:
版权声明:本文标题:How to ignore "Seems to be a pre-built javascript file...Try to require the original source to get better results.& 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742216330a2434633.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论