and others added 2 commits
January 7, 2026 11:13
DRoet
mentioned this pull request
Closed
Merged
DRoet deleted the mischnic/scope-hoisting-pure-enum branch
April 10, 2026 05:46mischnic added a commit that referenced this pull request
Apr 13, 2026Needs swc-project/swc#11777 swc-project/swc#10560 added `Files.map_raw_pos` which can be used to translate BytePos before generating the sourcemap. The same is also needed in `SourceMapper`, so that the `pos.is_pure()` in `emit_leading_comments` uses the decoded BytePos. This came up in #88205 where my BytePos re-encoding mechanism caused `BytePos::PURE` to not codegen the pure comment anymore. Closes #88009 Closes #90004 Closes PACK-6424
github-actions
Bot
locked as resolved and limited conversation to collaborators
m-kawafuji pushed a commit to m-kawafuji/next.js that referenced this pull request
Aug 8, 2026…l#88205) Needs swc-project/swc#11777 swc-project/swc#10560 added `Files.map_raw_pos` which can be used to translate BytePos before generating the sourcemap. The same is also needed in `SourceMapper`, so that the `pos.is_pure()` in `emit_leading_comments` uses the decoded BytePos. This came up in vercel#88205 where my BytePos re-encoding mechanism caused `BytePos::PURE` to not codegen the pure comment anymore. Closes vercel#88009 Closes vercel#90004 Closes PACK-6424