uber / react-vis

Data Visualization Components
https://uber.github.io/react-vis
MIT License
8.74k stars 835 forks source link

Fix build #1478

Closed kenns29 closed 1 year ago

kenns29 commented 1 year ago

Browserify doesn't seem to support defining custom entry point for modules in node_modules Add a build script that replaces the entry point (the main field of package.json) of d3 libraries to the files defined in the unpkg field when building browser bundles. The replacement are reverted after the build finishes.

Serves as a temporary fix for build issues with d3 libraries.