Webpack is throwing a warning: "This seems to be a pre-built javascript file. Though this is possible, it's not recommended. 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?
Fix 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With