How can I instruct webpack to exlude all d3-modules?
// does not work
externals: {
"d3-*": "d3"
}
So if app imports d3-submodule, then webpack should not include this submodule because I have already included d3.js.
You should be able to use regular expressions (see https://webpack.js.org/configuration/externals/#regex).
// This might work
externals: /^d3-.*/
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