Skip to content

Commit 7452958

Browse files
committed
fix: allow top-level-await
1 parent cad32ad commit 7452958

File tree

10 files changed

+19
-23
lines changed

10 files changed

+19
-23
lines changed

apps/component-tests/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"compilerOptions": {
44
"allowJs": true,
55
"target": "ES2017",
6-
"module": "ES2020",
7-
"lib": ["es2020", "DOM", "WebWorker", "DOM.Iterable"],
6+
"module": "ES2022",
7+
"lib": ["es2022", "DOM", "WebWorker", "DOM.Iterable"],
88
"jsx": "react-jsx",
99
"jsxImportSource": "@builder.io/qwik",
1010
"strict": true,

apps/website/tsconfig.app.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@
55
"outDir": "../../dist/out-tsc"
66
},
77
"files": [],
8-
"exclude": [],
9-
"include": [
10-
"**/*.js",
11-
"**/*.jsx",
12-
"**/*.ts",
13-
"**/*.tsx",
14-
"src/routes/docs/headless/introduction/index.mdx",
15-
"tailwind.config.cjs"
16-
]
8+
"exclude": ["tailwind.config.cjs"],
9+
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
1710
}

apps/website/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"compilerOptions": {
44
"allowJs": true,
55
"target": "ES2017",
6-
"module": "ES2020",
7-
"lib": ["es2020", "DOM", "WebWorker", "DOM.Iterable"],
6+
"module": "ES2022",
7+
"lib": ["ES2022", "DOM", "WebWorker", "DOM.Iterable"],
88
"jsx": "react-jsx",
99
"jsxImportSource": "@builder.io/qwik",
1010
"strict": true,

apps/website/vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ export default defineConfig(async () => {
9999
allow: ['../../'],
100100
},
101101
},
102+
build: {
103+
target: 'es2022',
104+
},
102105
preview: {
103106
headers: {
104107
'Cache-Control': 'public, max-age=600',

packages/kit-headless/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"compilerOptions": {
44
"allowJs": true,
55
"target": "ES2017",
6-
"module": "ES2020",
7-
"lib": ["es2020", "DOM", "WebWorker", "DOM.Iterable"],
6+
"module": "ES2022",
7+
"lib": ["ES2022", "DOM", "WebWorker", "DOM.Iterable"],
88
"jsx": "react-jsx",
99
"jsxImportSource": "@builder.io/qwik",
1010
"forceConsistentCasingInFileNames": true,

packages/kit-headless/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default defineConfig({
4848
// Configuration for building your library.
4949
// See: https://vitejs.dev/guide/build.html#library-mode
5050
build: {
51-
target: 'es2020',
51+
target: 'es2022',
5252
lib: {
5353
entry: './src/index.ts',
5454
// Could also be a dictionary or array of multiple entry points.

packages/kit-styled/tsconfig.generators.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"compilerOptions": {
44
"outDir": "../../dist/out-tsc",
55
"declaration": true,
6-
"module": "commonjs",
6+
"module": "ES2022",
77
"types": ["node"]
88
},
99
"files": [],

packages/kit-styled/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"compilerOptions": {
44
"allowJs": true,
55
"target": "ES2017",
6-
"module": "ES2020",
7-
"lib": ["es2020", "DOM", "WebWorker", "DOM.Iterable"],
6+
"module": "ES2022",
7+
"lib": ["ES2022", "DOM", "WebWorker", "DOM.Iterable"],
88
"jsx": "react-jsx",
99
"jsxImportSource": "@builder.io/qwik",
1010
"forceConsistentCasingInFileNames": true,

packages/kit-styled/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineConfig({
2828
// Configuration for building your library.
2929
// See: https://vitejs.dev/guide/build.html#library-mode
3030
build: {
31-
target: 'es2020',
31+
target: 'es2022',
3232
lib: {
3333
// Could also be a dictionary or array of multiple entry points.
3434
entry: 'src/index.ts',

tsconfig.base.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
"emitDecoratorMetadata": true,
99
"experimentalDecorators": true,
1010
"importHelpers": true,
11-
"target": "es2015",
12-
"module": "esnext",
13-
"lib": ["es2017", "dom"],
11+
"target": "ES2017",
12+
"module": "ES2022",
13+
"lib": ["ES2022", "dom", "WebWorker", "DOM.Iterable"],
1414
"skipLibCheck": true,
1515
"skipDefaultLibCheck": true,
1616
"baseUrl": ".",

0 commit comments

Comments
 (0)