Skip to content

Commit e1bbe95

Browse files
mingquan5830andreiborza
authored andcommitted
fix(replay-worker): Maintain ES5 compatibility for web worker code
1 parent cabb611 commit e1bbe95

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": "es2020",
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)