Skip to content

Commit 7946af8

Browse files
committed
fix(replay-worker): Maintain ES5 compatibility for web worker code
1 parent 8393b79 commit 7946af8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/replay-worker/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"module": "esnext",
55
"lib": ["webworker", "scripthost"],
66
"esModuleInterop": true,
7-
"target": "es2018",
7+
// Keep ES5 target for web worker compatibility
8+
// Web worker code is embedded as strings and cannot be transpiled by user build tools
9+
"target": "es5",
810
"strictPropertyInitialization": false
911
},
1012
"include": ["src/**/*.ts"]

0 commit comments

Comments
 (0)