d3 / d3-format

Format numbers for human consumption.
https://d3js.org/d3-format
ISC License
625 stars 103 forks source link

Unable to import from d3-format with rollup #29

Closed darthmall closed 8 years ago

darthmall commented 8 years ago

I was trying to use the D3 microlibraries with rollup, but once I imported something from d3-scale, I started getting an error about defaultLocale being an undefined function. I dug into it and it seems that rollup is importing the call to defaultLocale in defaultLocale.js but not the function definition.

I set up a test project that illustrates the problem. https://github.com/darthmall/rollup-d3-format-test

mbostock commented 8 years ago

Please see rollup/rollup#967 (and rollup/rollup#970).

darthmall commented 8 years ago

Thanks, @mbostock. Sorry for the bother.