Skip to content

Commit e688bee

Browse files
Fix output target
For targets less than ES2016, typescript outputs `Math.pow` instead of `**`, which causes errors during exponentiation ("can't convert BigInt to number").
1 parent 020ab8c commit e688bee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"experimentalSpecifierResolution": "node"
1111
},
1212
"compilerOptions": {
13-
"target": "es6",
13+
"target": "es2016",
1414
"module": "es2020",
1515
"esModuleInterop": true,
1616
"rootDir": ".",

0 commit comments

Comments
 (0)