Skip to content

Conversation

@awhiteside1
Copy link

Fixed four plugin hooks that were breaking source maps by modifying code without returning proper source maps:

  • rsc:vite-client-raw-import (transform)
  • rsc:virtual:vite-rsc/assets-manifest (renderChunk)
  • rsc:inject-async-local-storage (transform)
  • rsc:encryption-key (renderChunk)

All hooks now use MagicString to perform code transformations and return both code and map with generateMap({ hires: "boundary" }). Transform hooks include source, id, and includeContent in the map generation.

https://claude.ai/code/session_017TyWqNZcteH84BkF2BGMZx

Fixed four plugin hooks that were breaking source maps by modifying code
without returning proper source maps:

- rsc:vite-client-raw-import (transform)
- rsc:virtual:vite-rsc/assets-manifest (renderChunk)
- rsc:inject-async-local-storage (transform)
- rsc:encryption-key (renderChunk)

All hooks now use MagicString to perform code transformations and return
both code and map with generateMap({ hires: "boundary" }). Transform hooks
include source, id, and includeContent in the map generation.

https://claude.ai/code/session_017TyWqNZcteH84BkF2BGMZx
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.

2 participants