Skip to content

[babel 8] Remove loose and spec options from preset-env#16043

Merged
nicolo-ribaudo merged 3 commits into
babel:mainfrom
nicolo-ribaudo:env-remove-loose
Dec 10, 2023
Merged

[babel 8] Remove loose and spec options from preset-env#16043
nicolo-ribaudo merged 3 commits into
babel:mainfrom
nicolo-ribaudo:env-remove-loose

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented Oct 13, 2023

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues?
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link babel/website#2840, babel/website#2852
Any Dependency Changes?
License MIT

Following the spirit of https://github.com/babel/rfcs/blob/main/rfcs/0003-top-level-assumptions.md, I think we should remove the loose and spec options from @babel/preset-env. They are not descriptive, loose enables a lot of compilation differences without letting people actually choose what they want.

The assumptions docs should have the equivalent assumptions configuration for those two options, so that people migrating can simply copy&paste them as a starting point.

I also think that the individual loose options in the various plugins are bad, but I feel less strongly about removing them.

@nicolo-ribaudo nicolo-ribaudo added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release i: discussion pkg: preset-env PR: Needs Docs labels Oct 13, 2023
@babel-bot

babel-bot commented Oct 13, 2023

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/55920/

@JLHwung

JLHwung commented Nov 27, 2023

Copy link
Copy Markdown
Contributor

@nicolo-ribaudo Can you rebase?

@liuxingbaoyu liuxingbaoyu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm in favor of removing loose in plugins to maintain uniformity.

@nicolo-ribaudo
nicolo-ribaudo merged commit 8fa2a91 into babel:main Dec 10, 2023
@nicolo-ribaudo
nicolo-ribaudo deleted the env-remove-loose branch December 10, 2023 23:09
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 11, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

i: discussion outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: preset-env PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants