Skip to content

feat: support import.meta.ROLLDOWN_FILE_URL_*#10296

Merged
graphite-app[bot] merged 1 commit into
mainfrom
07-15-feat_support_import.meta.rolldown_file_url__
Jul 17, 2026
Merged

feat: support import.meta.ROLLDOWN_FILE_URL_*#10296
graphite-app[bot] merged 1 commit into
mainfrom
07-15-feat_support_import.meta.rolldown_file_url__

Conversation

@sapphi-red

@sapphi-red sapphi-red commented Jul 15, 2026

Copy link
Copy Markdown
Member

Support import.meta.ROLLDOWN_FILE_URL_* as an alias of import.meta.ROLLUP_FILE_URL_* to make it less confusing.

sapphi-red commented Jul 15, 2026

Copy link
Copy Markdown
Member Author

How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codspeed-hq

codspeed-hq Bot commented Jul 15, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing 07-15-feat_support_import.meta.rolldown_file_url__ (09b3d1e) with 07-10-feat_implement_resolvefileurl_plugin_hook (072d54e)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@sapphi-red
sapphi-red changed the base branch from 07-10-feat_implement_resolvefileurl_plugin_hook to graphite-base/10296 July 16, 2026 08:55
@sapphi-red
sapphi-red force-pushed the 07-15-feat_support_import.meta.rolldown_file_url__ branch from 42cb429 to d443874 Compare July 16, 2026 11:29
@sapphi-red
sapphi-red force-pushed the graphite-base/10296 branch from 5f32fc5 to ada3be7 Compare July 16, 2026 11:29
@sapphi-red
sapphi-red changed the base branch from graphite-base/10296 to 07-10-feat_implement_resolvefileurl_plugin_hook July 16, 2026 11:29

@hyfdev hyfdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The implementation looks good. I verified both prefixes across static, computed, and optional member access, tree-shaking, resolveFileUrl hook dispatch, IIFE/UMD fallback warnings, and unknown-reference diagnostics. The focused fixtures, Rust tests, local build, and relevant CI pass.

A few non-blocking nits:

  • For a legacy ROLLUP_FILE_URL_* reference, the IIFE/UMD warning label currently says ROLLDOWN_FILE_URL_*. Neutral wording such as “This file URL reference...” would accurately cover both aliases.
  • The compatibility tip in file-urls.md says ROLLUP_FILE_URL_referenceId is an alias of itself; the second one should be ROLLDOWN_FILE_URL_referenceId.
  • The first paragraph of the resolveFileUrl hook documentation still presents ROLLUP_FILE_URL_referenceId as the default, while the next paragraph uses ROLLDOWN_FILE_URL_referenceId.
  • internal-docs/ast-mutation/implementation.md still references the renamed EcmaView::rollup_file_url_references field. It should use rolldown_file_url_references and mention that both prefixes enter this table.

@sapphi-red
sapphi-red force-pushed the 07-10-feat_implement_resolvefileurl_plugin_hook branch from ada3be7 to ba62cde Compare July 17, 2026 03:48
@sapphi-red
sapphi-red force-pushed the 07-15-feat_support_import.meta.rolldown_file_url__ branch from d443874 to 3b64dfc Compare July 17, 2026 03:48
@sapphi-red
sapphi-red force-pushed the 07-10-feat_implement_resolvefileurl_plugin_hook branch from ba62cde to 072d54e Compare July 17, 2026 03:53
@sapphi-red
sapphi-red force-pushed the 07-15-feat_support_import.meta.rolldown_file_url__ branch from 3b64dfc to 09b3d1e Compare July 17, 2026 03:53

IWANABETHATGUY commented Jul 17, 2026

Copy link
Copy Markdown
Member

Merge activity

  • Jul 17, 4:06 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Jul 17, 6:04 AM UTC: IWANABETHATGUY added this pull request to the Graphite merge queue.
  • Jul 17, 6:11 AM UTC: Merged by the Graphite merge queue.

Support `import.meta.ROLLDOWN_FILE_URL_*` as an alias of `import.meta.ROLLUP_FILE_URL_*` to make it less confusing.
@graphite-app
graphite-app Bot force-pushed the 07-10-feat_implement_resolvefileurl_plugin_hook branch from 072d54e to c31bc56 Compare July 17, 2026 06:05
@graphite-app
graphite-app Bot force-pushed the 07-15-feat_support_import.meta.rolldown_file_url__ branch from 09b3d1e to afac8ae Compare July 17, 2026 06:06
Base automatically changed from 07-10-feat_implement_resolvefileurl_plugin_hook to main July 17, 2026 06:10
@graphite-app
graphite-app Bot merged commit afac8ae into main Jul 17, 2026
30 of 31 checks passed
@graphite-app
graphite-app Bot deleted the 07-15-feat_support_import.meta.rolldown_file_url__ branch July 17, 2026 06:11
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.

4 participants