Skip to content

Commit 12113fc

Browse files
mydeaclaude
andcommitted
ref(typescript): Default to esnext/bundler instead of node16
Everything we ship is bundled (Rollup emits the JS; tsc only emits .d.ts, which is byte-identical either way), so the base config now defaults to esnext/bundler — a uniform, modern default that the bundled majority of packages already used. This also avoids the node16 literal, which older toolchains (Angular's pinned TS 4.6, the TS 3.8 compat job) can't parse. Removes all now-redundant module/moduleResolution overrides across packages, leaving only genuine exceptions: - svelte: `node` resolution (Svelte 3 imports deep paths not in its exports map) - angular: inlined config with esnext/node (ng-packagr pins TS 4.6) - nextjs/remix tsconfig.test.json: Node16 (deliberately exercise node resolution) - astro tsconfig.dev.json: unchanged dev config Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6229192 commit 12113fc

29 files changed

Lines changed: 8 additions & 65 deletions

File tree

packages/astro/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"include": ["src/**/*"],
55

66
"compilerOptions": {
7-
"module": "esnext",
8-
"moduleResolution": "bundler"
97
// package-specific options
108
}
119
}

packages/browser/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"include": ["src/**/*", "test/loader.js"],
55

66
"compilerOptions": {
7-
"module": "esnext",
8-
"moduleResolution": "bundler",
97
"lib": ["DOM", "es2020", "WebWorker"]
108
}
119
}

packages/cloudflare/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"include": ["src/**/*"],
55

66
"compilerOptions": {
7-
"module": "esnext",
8-
"moduleResolution": "bundler",
97
"types": ["node", "@cloudflare/workers-types"]
108
}
119
}

packages/core/tsconfig.types.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"extends": "./tsconfig.json",
33

44
"compilerOptions": {
5-
"module": "esnext",
6-
"moduleResolution": "bundler",
75
"declaration": true,
86
"declarationMap": true,
97
"emitDeclarationOnly": true,

packages/deno/tsconfig.build.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"compilerOptions": {
55
"outDir": "build",
66
"lib": ["esnext"],
7-
"module": "esnext",
87
"target": "esnext",
98
"declaration": true,
109
"declarationMap": false

packages/deno/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
"include": ["./lib.deno.d.ts", "src/**/*", "example.ts"],
44
"compilerOptions": {
55
"lib": ["esnext"],
6-
"module": "esnext",
7-
"moduleResolution": "bundler",
86
"target": "esnext"
97
}
108
}

packages/deno/tsconfig.test.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"include": ["./lib.deno.d.ts", "test/**/*"],
44
"compilerOptions": {
55
"lib": ["esnext"],
6-
"module": "esnext",
76
"target": "esnext"
87
}
98
}

packages/effect/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"module": "esnext",
5-
"moduleResolution": "bundler",
64
"outDir": "build"
75
},
86
"include": ["src/**/*"]

packages/ember/tsconfig.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
"target": "es2022",
55
"lib": ["DOM", "ES2022"],
66
"allowJs": true,
7-
"moduleResolution": "bundler",
87
"allowSyntheticDefaultImports": true,
98
"alwaysStrict": true,
109
"strictNullChecks": true,
1110
"strictPropertyInitialization": true,
1211
"noEmitOnError": false,
1312
"noEmit": true,
1413
"baseUrl": ".",
15-
"module": "esnext",
1614
"experimentalDecorators": true,
1715
"paths": {
1816
"dummy/tests/*": ["tests/*"],

packages/feedback/tsconfig.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"module": "esnext",
5-
"moduleResolution": "bundler",
6-
74
/* Preact Config */
85
"jsx": "react-jsx",
96
"jsxImportSource": "preact",

0 commit comments

Comments
 (0)