Skip to content

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

Open
TrickyPi wants to merge 2 commits into
rollup:masterfrom
TrickyPi:feat/rollup-5/image
Open

TrickyPi wants to merge 2 commits 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

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge; no actionable new defect was established.

Reviews (2) · Last reviewed commit: "test(image): run tests against Rollup 5 ..." · Reviewed by Greptile

@TrickyPi TrickyPi changed the title fix(image): read images imported with import attributes in Rollup 5 feat(image): support images imported with import attributes in Rollup 5 Nov 22, 2026
@TrickyPi
TrickyPi requested a review from shellscape as a code owner November 22, 2026 06:39
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.

1 participant