You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(plugin-rsc): use MagicString to preserve sourcemap chain in webpack-require transform
The rsc:patch-react-server-dom-webpack transform replaces
__webpack_require__ (18 chars) with __vite_rsc_require__ (20 chars)
— a non-same-length substitution — and previously returned map: null,
which broke the Rollup sourcemap chain.
Replace the manual replaceAll + map: null with MagicString, which
generates a correct hires sourcemap reflecting the actual offset changes.
Added e2e test that builds the starter example with --sourcemap and
verifies no sourcemap warnings are emitted for this transform.
0 commit comments