Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sisou
Copy link
Contributor

@sisou sisou commented Jan 10, 2020

To use C3 in modern bundlers such as Rollup, an ES6 module build should be provided. Since the whole code is already in ES6 module form and Rollup supports the 'es' output target natively, this is a relative straight-forward addition.

This PR adds a second build output that is an ES6 module, which imports the D3 library internally and does not rely on a global window.d3 configuration.

I have successfully tested this in a Svelte project of mine with Rollup.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Thanks for the good addtion of supporting platform 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants