[babel 8] Cleanup plugin-transform-runtime options#16311
Merged
nicolo-ribaudo merged 3 commits intoMar 6, 2024
Conversation
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/56456 |
nicolo-ribaudo
marked this pull request as draft
February 27, 2024 17:40
nicolo-ribaudo
force-pushed
the
runtime-options-cleanup
branch
3 times, most recently
from
March 5, 2024 17:13
41856b7 to
10057fa
Compare
Member
Author
|
CI green :) |
nicolo-ribaudo
marked this pull request as ready for review
March 5, 2024 17:40
liuxingbaoyu
approved these changes
Mar 6, 2024
nicolo-ribaudo
force-pushed
the
runtime-options-cleanup
branch
from
March 6, 2024 14:18
8b465e6 to
d6a3b7b
Compare
JLHwung
approved these changes
Mar 6, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes
@babel/plugin-transform-runtimea plugin whose sole purpose is to inject helpers. The only remaining options are:absoluteRuntimemoduleNameversionThis greatly simplify the surface area. Note that it still supports injecting imports to
@babel/runtime-corejs3whenbabel-plugin-polyfill-corejs3is enabled, but this isn't explicitly exposed as acorejsoption anymore.This PR also stops building
@babel/runtime-corejs2in Babel 8, and marks it as private.