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

Support "esm" as an alias of "es" format #722

Merged
merged 4 commits into from
Sep 28, 2020
Merged

Conversation

developit
Copy link
Owner

@developit developit commented Sep 8, 2020

I constantly get tripped up by this. Without this change, Microbundle compiles -f esm without any errors, but it actually writes an ES Module bundle to the configured CJS output file (even if there's also -f cjs listed). With this change, -f esm is identical to -f es.

I constantly get tripped up by this. It compiles without errors, but writes an ES Module to the configured CJS output file.
@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2020

🦋 Changeset detected

Latest commit: 2176727

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ForsakenHarmony ForsakenHarmony merged commit 0527862 into master Sep 28, 2020
@ForsakenHarmony ForsakenHarmony deleted the esm-format-alias branch September 28, 2020 01:24
This was referenced Sep 28, 2020
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.

3 participants