Closed TkhiienLok closed 2 years ago
I guess this issue is more likely related to https://github.com/d3/d3-selection repository, right? Because in release 3.0.0 they "adopted type: module" https://github.com/d3/d3-selection/releases
Ok, I found an issue. Ishould have used providedExports
option of webpack optimization set to true
. https://webpack.js.org/configuration/optimization/
I am not sure that this issue should be opened in this repository but after I upgraded d3 packages I got a problem bundling project with
minimize: true
in webpack .After upgare when I run command
webpack --config ./webpack.config.js
I am getting this error:This is a part of webpack config
So this is a difference between old versions and new ones:
And these are versions of webpack and webpack minimize plugins
First I didn't upgrade them but then I found that for webpack there is a newer release 5.68.0 and css-minimizer-webpack-plugin can be upgraded to v3.4.1, but nothing changed when I upgraded these packages.
Again, if
minimize
is set tofalse
everything works fine, but need to minimize bundle for production. Do I need to add something to my webpack config or downgrade d3-transition package to be able to bundle project?