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 ES6 module build to NPM package #10613

Closed
nhunzaker opened this issue Sep 6, 2017 · 2 comments
Closed

Add ES6 module build to NPM package #10613

nhunzaker opened this issue Sep 6, 2017 · 2 comments

Comments

@nhunzaker
Copy link
Contributor

nhunzaker commented Sep 6, 2017

Followup from a tweet from Unpkg (unpkg?) about ES6 module support:
https://twitter.com/unpkg/status/905239560988221440

For fun, try using import * as d3 from '//unpkg.com/d3?module inside a <script type=module> and watch those modules load!

It would be neat if you could just import { Component } from 'https://unpkg.com/react?module' in browsers like Safari (and soon Chrome). As far as I understand the problem, we'd just need to export an ES6 build target from Rollup.

I use "just" lightly. Hopefully it's that simple; it's probably more complicated. In any case, now we have an issue for it!

@aweary
Copy link
Contributor

aweary commented Sep 6, 2017

I believe this is a duplicate of #10021 :)

@nhunzaker
Copy link
Contributor Author

Ah man. Look at me... Thanks!

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

No branches or pull requests

2 participants