Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an ES6 module output #2740

Merged
merged 1 commit into from
Jan 13, 2020
Merged

Add an ES6 module output #2740

merged 1 commit into from
Jan 13, 2020

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