next.js/test/e2e/app-dir/server-source-maps/fixtures/default/bad-sourcemap/page.js
page.js13 lines508 B
// Compile with pnpm tsc test/e2e/app-dir/server-source-maps/fixtures/default/bad-sourcemap/page.js --allowJs --sourceMap --target esnext --outDir test/e2e/app-dir/server-source-maps/fixtures/default/app/bad-sourcemap
// Then change the `sources` entry in the sourcemap to `["custom://[badhost]/app/bad-sourcemap/page.js"]`
// tsc compile errors can be ignored

function logError() {
  console.error(new Error('bad-sourcemap'))
}

export default function Page() {
  logError()
  return <p>Hello, Dave!</p>
}
Quest for Codev2.0.0
/
SIGN IN