You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running npm run build (or rollup -c) will produce a bundled file at dist/d3.js which looks fine on first glance. It includes the following function call:
Note that if I add export { formatDefaultLocale } from 'd3-format'; to the d3.js file we can work around this issue. This is not a good long-term solution though.
I'm trying to generate a custom bundle of D3 v4 using rollup:
https://github.com/Turbo87/rollup-d3-issue
Running
npm run build
(orrollup -c
) will produce a bundled file atdist/d3.js
which looks fine on first glance. It includes the following function call:but the
defaultLocale()
function is not defined anywhere in the bundle even though it's in the original code (at https://github.com/d3/d3-format/blob/v1.0.2/src/defaultLocale.js).Note that if I add
export { formatDefaultLocale } from 'd3-format';
to thed3.js
file we can work around this issue. This is not a good long-term solution though.Cross-posted this as rollup/rollup#970
The text was updated successfully, but these errors were encountered: