Skip to content

feat(html): support rollup 5 - #2038

Merged
lukastaegert merged 1 commit into
masterfrom
html-rollup-5
Dec 4, 2026
Merged

lukastaegert merged 1 commit into
masterfrom
html-rollup-5

Conversation

@lukastaegert

@lukastaegert lukastaegert commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Rollup Plugin Name: html

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes
  • no

Breaking Changes?

  • yes
  • no

List any relevant issue numbers:

Description

In #2035, I found out that the html plugin does not actually work with its minimally declared rollup version 1.20.0 as it relies on the type property introduced in 1.21.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-5 through the rollup-next catalog. The dynamic-import fixture change that keeps the entry-only script filtering covered already landed with #2035, so the diff is limited to the manifest, the README and the tested Rollup version.

@lukastaegert
lukastaegert marked this pull request as ready for review November 3, 2026 05:50
Copilot AI balanced review requested due to automatic review settings November 3, 2026 05:50
@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no actionable issues were found.

Reviews (6) · Last reviewed commit: "feat(html): support rollup 5" · Reviewed by Greptile

Comment thread packages/html/package.json Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

Rollup 5 requires Node >=22.22.0, but both CI workflows still use Node 20, leaving build and pretest jobs on an unsupported runtime.

1 open issue
1 file not reviewed
  • pnpm-lock.yaml: Generated file
What changed in this PR

Prepares @rollup/plugin-html for Rollup 5 without changing plugin implementation, and corrects its declared minimum Rollup version to 1.21.0, as identified in #2035.

Changes:

  • Extends peer support to Rollup 5 and selects its prerelease through the rollup-next catalog.
  • Adds a side-effectful dynamic-import fixture to preserve entry-only script filtering coverage.
  • Updates snapshots for the fixture and Rollup 5 warning output, and removes the old AVA snapshot report.
File Description
pnpm-workspace.yaml Adds the rollup-next catalog.
pnpm-lock.yaml Locks Rollup 5 and its dependencies for HTML plugin development.
packages/​html/​test/​snapshots/​test.js.snap Updates dynamic chunk and warning expectations.
packages/​html/​test/​snapshots/​test.js.md Removes the old AVA snapshot report.
packages/​html/​test/​fixtures/​riddler.js Adds a side-effectful module to retain a separate chunk.
packages/​html/​test/​fixtures/​catwoman.js Dynamically imports the new fixture.
packages/​html/​package.json Corrects the peer minimum, adds Rollup 5 support, and switches the development dependency.

Review effort: Balanced

Comment thread packages/html/package.json Resolved
@lukastaegert lukastaegert mentioned this pull request Nov 3, 2026
3 of 9 tasks
@lukastaegert
lukastaegert force-pushed the html-rollup-5 branch 2 times, most recently from 6cbf7d5 to ced0ba6 Compare November 28, 2026 05:57
Extend the peer range to Rollup 5 and test against it through the rollup-next catalog.

Raise the declared floor to 1.21.0. The template detects entry chunks through the chunk `type` property, which Rollup only adds in 1.21.0, so on 1.20 the plugin silently emitted HTML without any script tags.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approved

No active review issues block the Rollup compatibility and minimum-version updates.

No open issues 🎉

1 resolved since last review
1 file not reviewed
  • pnpm-lock.yaml: Generated file

Review effort: Balanced

@lukastaegert
lukastaegert merged commit ac0c00f into master Dec 4, 2026
7 checks passed
@lukastaegert
lukastaegert deleted the html-rollup-5 branch December 4, 2026 12:16
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.

2 participants