mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Previously, we lost stack frame information when server hmr code was applied through `eval`.
This adds and calls \`maybeInlineSourcemap()\` to the Turbopack Node.js HMR runtime that appends \`//# sourceURL\` and \`//# sourceMappingURL\` (base64-encoded) to each `eval`ed module entry.
Test Plan: CI for #90389
6 lines
100 B
TypeScript
6 lines
100 B
TypeScript
// hmr-trigger: 0
|
|
|
|
export default function Page() {
|
|
throw new Error('hmr-sourcemap-test-error')
|
|
}
|