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

Remove modern envs #119

Merged
merged 5 commits into from
Jun 22, 2021
Merged

Remove modern envs #119

merged 5 commits into from
Jun 22, 2021

Conversation

billyjanitsch
Copy link
Collaborator

Closes #108.

Reverts the modern envs from #88 since, per the issue, the browserslist env will be specified by apps as a top-level compiler option now. Hopefully these can be brought back into the preset someday if something like babel/babel#13317 is implemented. Another option is a higher-order Babel preset but I'd like to try to avoid that since it's so far from idiomatic Babel config.

I kept most of the runtime env assertion and the changes to the test suite since they're general, although the format will be ported to #117 shortly. I did remove the browserslistrc file in the fixtures directory in favor of specifying targets explicitly as options, since these resolve equivalently and at that point we're just re-testing @babel/preset-env. I also removed the browserslistEnv docs since it's just a straight passthrough to the env preset but ideally this should be specified as a top-level compiler option now anyway. I'll add some dual bundle guidance to internal docs.

@billyjanitsch billyjanitsch requested a review from a team as a code owner June 8, 2021 21:23
Copy link
Contributor

@nabeel- nabeel- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

One nit: Does this comment need to be updated now?

@billyjanitsch billyjanitsch merged commit 2c20e02 into main Jun 22, 2021
@billyjanitsch billyjanitsch deleted the billy/rm-modern branch June 22, 2021 15:56
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.

Migrate to top-level browserslistEnv option
2 participants