Skip to content

Commit c6714b0

Browse files
committed
Modernize js output.
This upgrades the output to es2017 (with es2015 modules generated rather than commonjs), which supports async natively, which makes it *much* easier to debug async functions in the generated js.
1 parent 8276256 commit c6714b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tsconfig.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
"compilerOptions": {
33
"declaration": true,
44
"esModuleInterop": true,
5-
"lib": ["es2015", "dom"],
6-
"module": "commonjs",
5+
"module": "ES2015",
76
"moduleResolution": "node",
87
"noEmitOnError": true,
98
"noUnusedLocals": true,
@@ -15,7 +14,7 @@
1514
// This allows us to initialize members in the "initialize" method
1615
"strictPropertyInitialization": false,
1716
"strict": true,
18-
"target": "es2015"
17+
"target": "ES2017"
1918
},
2019
"include": ["src/**/*.ts", "src/**/*.tsx"]
2120
}

0 commit comments

Comments
 (0)