Repository navigation
feat(babel): support rollup 5 - #2039
Open
lukastaegert wants to merge 2 commits into
Open
lukastaegert wants to merge 2 commits into
lukastaegert wants to merge 2 commits into
Conversation
To test plugins against the upcoming Rollup 5 release.
Raise the declared peer floor to 2.78.0, the first Rollup version that supports object-form plugin hooks, and extend the range to Rollup 5.
[Medium impact] The PR appears safe to merge; no actionable issues were found. Reviews (1) · Last reviewed commit: "feat(babel): support rollup 5" · Reviewed by Greptile |
There was a problem hiding this comment.
🟡 Changes recommended
Babel’s build and pretest commands now use Rollup 5, which requires Node >=22.22.0, while existing CI jobs still run them on unsupported Node 20.
1 open issue
1 file not reviewed
pnpm-lock.yaml: Generated file
What changed in this PR
Prepares @rollup/plugin-babel for Rollup 5 as part of the wider plugin compatibility work, while correcting its declared minimum Rollup version.
Changes:
- Adds Rollup 5 to the peer dependency range and raises the Rollup 2 minimum to 2.78.0.
- Switches Babel’s development dependency to the shared
rollup-nextcatalog. - Makes test expectations version-aware for warnings, chunk hashes, and output interop.
| File | Description |
|---|---|
pnpm-workspace.yaml |
Defines the Rollup 5 prerelease catalog. |
pnpm-lock.yaml |
Locks Rollup 5 and its associated dependencies. |
packages/babel/test/as-output-plugin.mjs |
Adapts warning and chunk-hash expectations across versions. |
packages/babel/test/as-input-plugin.mjs |
Adapts unresolved-import warnings and explicitly sets interop. |
packages/babel/package.json |
Updates supported Rollup versions and selects the new catalog. |
Review effort: Balanced
| "@rollup/plugin-node-resolve": "^15.0.0", | ||
| "@types/babel__core": "^7.1.9", | ||
| "rollup": "^4.0.0-24", | ||
| "rollup": "catalog:rollup-next", |
Andarist
approved these changes
Nov 3, 2026
3 of 9 tasks
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Rollup Plugin Name:
babelThis PR contains:
Are tests included?
Breaking Changes?
List any relevant issue numbers:
Description
In #2035, I found out that the babel plugin does not actually work with its minimally declared rollup version 2.0.0 as it relies on object-form plugin hooks that were introduced in 2.78.0. At the same time, no additional changes are needed to support rollup 5.
This PR adjusts both in a way that mirrors #2037.
Test against
rollup@5.0.0-2through therollup-nextcatalog. The test assertions are version-aware and shared with #2035.