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

Migrate to esm #24

Closed
wants to merge 1 commit into from
Closed

Migrate to esm #24

wants to merge 1 commit into from

Conversation

TrySound
Copy link
Contributor

In this diff I convert source to esm so we can easily use this lib with
native browser modules. This also allow bundlers do not add additional
runtime to work around cjs.

I converted warning.js to esm and built warning.cjs.js with rollup.

In this diff I convert source to esm so we can easily use this lib with
native browser modules. This also allow bundlers do not add additional
runtime to work around cjs.

I converted warning.js to esm and built warning.cjs.js with rollup.
@TrySound
Copy link
Contributor Author

Do you have thoughts on this @BerkeleyTrue ?

@BerkeleyTrue
Copy link
Owner

Thanks @TrySound. I've gave it some thought and IMHO this strays too far from the purpose of this library, to provide a mirror of fbjs/warning.

At the moment, fbjs does not provide an ESM module. Until they do I won't be providing one here. Feel free to open an issue on the fbjs library to see if they would be receptive to this change.

Happy Coding

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