Files
Sebastian "Sebbie" SilbermannandGitHub 34039551d2 [test] Use unique error messages in server-source-maps (#79108)
Allows unambigious assertions on CLI output.
Not that interesting for dev but `next build` will have the logs for all pages in all tests.

I also made the pages static where possible so that we'll be able to assert on the logged errors during `next build`.
2025-05-19 08:38:59 +02:00

11 lines
547 B
JavaScript

// 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>;
}
//# sourceMappingURL=page.js.map