Open defusioner opened 3 years ago
It should be possible. Maybe importing only the used d3 libraries, instead of the whole thing, could be a solution.
Not sure if using the d3 modules will help
As an example I've created a fork with just the required modules from d3 included: https://github.com/stevenhankin/react-gauge-chart/tree/feat/use-modules
branch | dist | build |
---|---|---|
master | 24k | 275M |
feat/use-modules | 28k | 268M |
So a Production Build is larger when using individual d3 modules, but the Dev Build is a bit lighter.
The dev build is quite large because it's using React Scripts
Hello there! What a nice library!
Do you know if there is an option to lighten the dependencies during production build? Our 256Mb machine exploses just once I add the d3 as a direct dependency for this lib.
Are there any workarounds for d3 production builds that could reduce the global heap?
Is it possible to reduce d3 dependency for this library?
Thanks