Skip to content

Commit 6c02c41

Browse files
committed
build(config): update target and module options in tsconfig.json to ES2022
feat(config): enable topLevelAwait experiment in webpack.config.js
1 parent 79a7316 commit 6c02c41

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
3-
"target": "es6",
4-
"module": "commonjs",
3+
"target": "ES2022",
4+
"module": "ES2022",
55
"rootDir": "./src",
66
"baseUrl": ".",
77
"removeComments": true,

webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ module.exports = {
3232
stdin: false,
3333
}),
3434
],
35+
experiments: {
36+
topLevelAwait: true,
37+
},
3538
optimization: {
3639
minimize: true,
3740
minimizer: [

0 commit comments

Comments
 (0)