Skip to content

fix: fix ROLLUP_FILE_URL for emitted chunks#3507

Merged
underfin merged 6 commits intorolldown:mainfrom
hi-ogawa:fix-rollup-file-url-for-emitFile-chunk
Feb 6, 2025
Merged

fix: fix ROLLUP_FILE_URL for emitted chunks#3507
underfin merged 6 commits intorolldown:mainfrom
hi-ogawa:fix-rollup-file-url-for-emitFile-chunk

Conversation

@hi-ogawa
Copy link
Collaborator

@hi-ogawa hi-ogawa commented Feb 6, 2025

Description

Follow up to #3488. I forgot to test emitFile({ type: "chunk" }) case and I just realized it's not working on hi-ogawa/vite-environment-examples#154.

Currently, FileEmitter::emitted_chunks is not defined during scope hoisting finalizer, but it looks possible to define it earlier right after generate_chunk_name_and_preliminary_filenames instead of waiting until instantiate_chunks.

@hi-ogawa hi-ogawa marked this pull request as ready for review February 6, 2025 07:35
@underfin underfin added this pull request to the merge queue Feb 6, 2025
Merged via the queue into rolldown:main with commit 63b4e88 Feb 6, 2025
23 checks passed
@hi-ogawa hi-ogawa deleted the fix-rollup-file-url-for-emitFile-chunk branch February 6, 2025 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants