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

Update rollup and add ESM output #17

Merged
merged 11 commits into from
May 5, 2020
Merged

Update rollup and add ESM output #17

merged 11 commits into from
May 5, 2020

Conversation

krumware
Copy link
Contributor

@krumware krumware commented Apr 10, 2020

This updates the rollup config to have some parity with the updated chart.js rollup config, and also adds ESM output.

A unit test needs to be updated, but a fix is available already in #12
This also updates the chartjs version like #12

depends on #12
closes #16

@krumware krumware changed the title Update rollup and add ESM output WIP: Update rollup and add ESM output Apr 10, 2020
@krumware
Copy link
Contributor Author

Resolved the items for review and did some extra cleanup. I'm with you, I don't think those plugins were necessary, just included them for parity with Chart.js' rollup.

One thing about the 2.8 vs 3.0 is I'm concerned that folks might mistakenly try to use the esm version with the non-esm-supported chart.js (2.8 said imports were supported, but it didn't work like it does with modules). I dropped it back anyways.

Tagged this as a WIP though, because I need to test the esm files produced here, in a live environment, or update the unit tests to test both types.

@iddings
Copy link
Contributor

iddings commented May 4, 2020

Is there still work to be done on this? If so, I'm happy to help. ES6 builds would make my life much easier.

@krumware
Copy link
Contributor Author

krumware commented May 4, 2020

Thanks for the Bump @iddings. I simply haven't tried the suggestion of removing the cleanup and babel plugins suggested above (short on free time and lost track). I'll give it a quick update.

@krumware krumware changed the title WIP: Update rollup and add ESM output Update rollup and add ESM output May 4, 2020
@krumware
Copy link
Contributor Author

krumware commented May 4, 2020

Addressed the last few items, should be good to go now 👍

@krumware krumware requested a review from benmccann May 4, 2020 19:29
@benmccann benmccann requested review from etimberg and kurkle May 4, 2020 19:35
@iddings
Copy link
Contributor

iddings commented May 5, 2020

Thanks for the Bump @iddings. I simply haven't tried the suggestion of removing the cleanup and babel plugins suggested above (short on free time and lost track). I'll give it a quick update.

Thanks for taking the time to work on this @krumware. Much appreciated!

@etimberg etimberg merged commit 657ce79 into chartjs:master May 5, 2020
etimberg pushed a commit that referenced this pull request Aug 17, 2020
* Update rollup and add ESM output (#17)

Update rollup and add ESM output

* Update README with latest version (#15)

* Remove bower (#19)

* Remove use of helpers for v3 compatibility (#20)

* Fix startOf function for isoWeek (#23)

Fix startOf function for isoWeek

* Bump version to 0.2.2 (#21)

Co-authored-by: Colin Griffin <colin@krum.io>
Co-authored-by: stockiNail <stocki.nail@gmail.com>
etimberg pushed a commit that referenced this pull request Aug 21, 2020
Update rollup and add ESM output
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.

Provide ES6 version
5 participants