Skip to content

feat(virtual): support virtual modules imported with import attributes in Rollup 5 - #2054

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

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

Conversation

@TrickyPi

@TrickyPi TrickyPi commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Rollup Plugin Name: virtual

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 module IDs as a query string, with the original IDs passed via importerRawId and rawId. Use resolveOptions.importerRawId in resolveId and loadOptions.rawId in load (falling back to importer / id).

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

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge; no new blocking issue was found.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new blocking issue was found.

Reviews (6) · Last reviewed commit: "feat(virtual): support virtual modules i..." · Reviewed by Greptile

Comment thread packages/virtual/test/test.js Resolved
@TrickyPi
TrickyPi force-pushed the feat/rollup-5/virtual branch from efb854f to d77bac6 Compare November 28, 2026 08:53
@TrickyPi TrickyPi mentioned this pull request Nov 28, 2026
3 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant