Skip to content

Commit 848f830

Browse files
authored
Fix TS compiler options. (#4078)
## Motivation There's some cleanup work being done in linera-io/linera-web#49 that's incompatible with current configuration and yields `Uncaught ReferenceError: require is not defined` error. ## Proposal Update the compilation options to more modern ones that fix the error. ## Test Plan CI ## Release Plan - Nothing to do ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent 62e462e commit 848f830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

linera-web/signer/tsconfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"compilerOptions": {
3-
"target": "ES2020",
4-
"module": "CommonJS",
5-
"lib": ["ES2020"],
6-
"moduleResolution": "node",
3+
"target": "ES2023",
4+
"lib": ["ES2020", "WebWorker", "DOM"],
5+
"module": "ESNext",
6+
"moduleResolution": "bundler",
77
"esModuleInterop": true,
88
"strict": true,
99
"sourceMap": true,

0 commit comments

Comments
 (0)