Skip to content

feat(image): support images imported with import attributes in Rollup 5 - #2052

Open
TrickyPi wants to merge 1 commit into
rollup:masterfrom
TrickyPi:feat/rollup-5/image
Open

TrickyPi wants to merge 1 commit into
rollup:masterfrom
TrickyPi:feat/rollup-5/image

Conversation

@TrickyPi

@TrickyPi TrickyPi commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Rollup Plugin Name: image

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

In Rollup 5, import attributes are appended to id as a query string, with the original ID passed via rawId. Use loadOptions.rawId (falling back to id) in load so images imported with import attributes are matched and read properly.

@TrickyPi
TrickyPi requested a review from tjenkinson as a code owner November 22, 2026 04:51
@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Confidence Score: 4/5 · The PR still needs the previously reported Node 20 CI incompatibility fixed before merging.RetriggerView in GreptileConfidence Score: 4/5

[Medium impact] The PR affects image imports handled by this plugin and its Rollup 5 compatibility.

The PR still needs the previously reported Node 20 CI incompatibility fixed before merging.

Findings

  1. P1 Build tool drops Node 20 ▶

Reviews (7) · Last reviewed commit: "feat(image): support images imported wit..." · Reviewed by Greptile

"devDependencies": {
"@rollup/plugin-buble": "^1.0.0",
"rollup": "^4.0.0-24"
"rollup": "catalog:rollup-next"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Build tool drops Node 20

The new rollup-next dependency selects Rollup 5.0.0-2, which requires Node >=22.22.0. Both CI workflows still build and test this package on Node 20, and pretest runs the build too. Required CI jobs now use a build tool that does not support their Node version.

Keep the Node 20 build on Rollup 4 and run the Rollup 5 test on a supported Node version, or update the affected CI jobs.

@TrickyPi
TrickyPi force-pushed the feat/rollup-5/image branch from 816554d to ff90310 Compare November 26, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant