feat: support import.meta.ROLLDOWN_FILE_URL_*#10296
Conversation
How to use the Graphite Merge QueueAdd 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. |
Merging this PR will not alter performance
Comparing Footnotes
|
42cb429 to
d443874
Compare
5f32fc5 to
ada3be7
Compare
hyfdev
left a comment
There was a problem hiding this comment.
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 saysROLLDOWN_FILE_URL_*. Neutral wording such as “This file URL reference...” would accurately cover both aliases. - The compatibility tip in
file-urls.mdsaysROLLUP_FILE_URL_referenceIdis an alias of itself; the second one should beROLLDOWN_FILE_URL_referenceId. - The first paragraph of the
resolveFileUrlhook documentation still presentsROLLUP_FILE_URL_referenceIdas the default, while the next paragraph usesROLLDOWN_FILE_URL_referenceId. internal-docs/ast-mutation/implementation.mdstill references the renamedEcmaView::rollup_file_url_referencesfield. It should userolldown_file_url_referencesand mention that both prefixes enter this table.
ada3be7 to
ba62cde
Compare
d443874 to
3b64dfc
Compare
ba62cde to
072d54e
Compare
3b64dfc to
09b3d1e
Compare
Merge activity
|
Support `import.meta.ROLLDOWN_FILE_URL_*` as an alias of `import.meta.ROLLUP_FILE_URL_*` to make it less confusing.
072d54e to
c31bc56
Compare
09b3d1e to
afac8ae
Compare

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