Skip to content

[babel 8] Remove module-specific options from @babel/core#12724

Merged
nicolo-ribaudo merged 4 commits into
babel:mainfrom
nicolo-ribaudo:remove-top-level-module-options
Mar 28, 2021
Merged

[babel 8] Remove module-specific options from @babel/core#12724
nicolo-ribaudo merged 4 commits into
babel:mainfrom
nicolo-ribaudo:remove-top-level-module-options

Conversation

@nicolo-ribaudo
Copy link
Copy Markdown
Member

@nicolo-ribaudo nicolo-ribaudo commented Jan 30, 2021

Q                       A
Fixed Issues? Fixes #5473
Patch: Bug Fix?
Major: Breaking Change? Yes, behind BABEL_8_BREAKING
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link babel/website#2765
Any Dependency Changes?
License MIT

We added these options to the various modules plugins in Babel 7.9.0 (#11194), and we can now remove them from @babel/core.

The first two commits update the two Yarn plugins that we use, to add them support for the workspace: protocol nested inside the condition: protocol. I tested them locally and they seem to work, but I'm marking this as draft until the e2e tests pass.

@nicolo-ribaudo nicolo-ribaudo marked this pull request as draft January 30, 2021 21:38
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request Jan 30, 2021
34 tasks
@babel-bot
Copy link
Copy Markdown
Collaborator

babel-bot commented Jan 30, 2021

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

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Jan 30, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8edc653:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@nicolo-ribaudo nicolo-ribaudo force-pushed the remove-top-level-module-options branch from 411a5c6 to 96f83ac Compare January 30, 2021 23:32
@nicolo-ribaudo nicolo-ribaudo marked this pull request as ready for review February 1, 2021 00:21
@nicolo-ribaudo nicolo-ribaudo force-pushed the remove-top-level-module-options branch from 1e3ec25 to 956cb1b Compare February 10, 2021 20:02
@nicolo-ribaudo nicolo-ribaudo force-pushed the remove-top-level-module-options branch from 956cb1b to 9f58a3b Compare March 27, 2021 17:26
Comment on lines +11 to +14
moduleId: rootOpts.moduleId ?? pluginOpts.moduleId,
moduleIds: rootOpts.moduleIds ?? pluginOpts.moduleIds,
getModuleId: rootOpts.getModuleId ?? pluginOpts.getModuleId,
moduleRoot: rootOpts.moduleRoot ?? pluginOpts.moduleRoot,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These should all be swapped

Copy link
Copy Markdown
Member Author

@nicolo-ribaudo nicolo-ribaudo left a comment

Choose a reason for hiding this comment

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

✔️ I haven't touched this PR for two months, so I re-reviewed it now with my reviewer hat 🤠

@nicolo-ribaudo
Copy link
Copy Markdown
Member Author

I also run the e2e Babel 8 tests

@nicolo-ribaudo nicolo-ribaudo merged commit 8e8954b into babel:main Mar 28, 2021
@nicolo-ribaudo nicolo-ribaudo deleted the remove-top-level-module-options branch March 28, 2021 00:27
@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 Jun 27, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 27, 2021
@JLHwung JLHwung added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release and removed babel 8 labels Aug 9, 2023
@JLHwung JLHwung added this to the v8.0.0 milestone Aug 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: modules outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: core 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.

[7.0] Consider moving root AMD/UMD/SystemJS options to be plugin/preset options?

4 participants