sourcemaps
Build and Publish / Metadata (push) Successful in 2s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m5s

This commit is contained in:
mats committed 2026-09-19 16:24:34 +02:00
1 parent 97743ea21c
commit 1aa264675e
11 files changed
+538 -17

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
/**
* Deliberately throws an uncaught error from application code so the RUM
* script reports it, letting a deploy verify the source-map pipeline end to
* end: the resolved stack should point at this file, not the bundle.
*/
export function triggerTestError(): void {
// Thrown from a timer so it surfaces as an uncaught window error, exactly
// like a real bug, instead of being swallowed by a React event handler.
setTimeout(() => throwTestError(new Date().toISOString()), 0)
}
function throwTestError(at: string): never {
throw new Error(`Test error from otel-ui (source-map check) ${at}`)
}