Skip to content

Commit 85da873

Browse files
committed
fixup! fixup! fixup! fixup! feat(core): split exports by browser/server for bundle size
1 parent 7ea1e78 commit 85da873

10 files changed

Lines changed: 20 additions & 5 deletions

File tree

packages/astro/tsconfig.json

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

66
"compilerOptions": {
7+
"module": "esnext",
8+
"moduleResolution": "bundler"
79
// package-specific options
810
}
911
}

packages/nextjs/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55

66
"compilerOptions": {
77
// package-specific options
8+
"module": "esnext",
9+
"moduleResolution": "bundler"
810
}
911
}

packages/react/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
"compilerOptions": {
77
"lib": ["DOM", "es2020"],
8+
"module": "esnext",
9+
"moduleResolution": "bundler",
810
// package-specific options
911
"esModuleInterop": true,
1012
"jsx": "react"

packages/remix/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
"compilerOptions": {
77
"jsx": "react",
8-
"module": "es2020"
8+
"module": "esnext",
9+
"moduleResolution": "bundler"
910
}
1011
}

packages/solidstart/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33

44
"include": ["src/**/*"],
55

6-
"compilerOptions": {}
6+
"compilerOptions": {
7+
"module": "esnext",
8+
"moduleResolution": "bundler"
9+
}
710
}

packages/sveltekit/src/server-common/handle.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ async function instrumentHandle(
128128
// to avoid doing the dynamic import on every request
129129
if (options.injectFetchProxyScript == null) {
130130
try {
131-
// @ts-expect-error - the dynamic import is fine here
132131
const { VERSION } = await import('@sveltejs/kit');
133132
options.injectFetchProxyScript = isFetchProxyRequired(VERSION);
134133
} catch {

packages/sveltekit/src/vite/svelteConfig.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export async function loadSvelteConfig(): Promise<BackwardsForwardsCompatibleSve
3939
if (!fs.existsSync(configFile)) {
4040
return {};
4141
}
42-
// @ts-expect-error - we explicitly want to import the svelte config here.
4342
const svelteConfigModule = await import(`${url.pathToFileURL(configFile).href}`);
4443

4544
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

packages/sveltekit/tsconfig.json

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

66
"compilerOptions": {
7+
"module": "esnext",
8+
"moduleResolution": "bundler"
79
// package-specific options
810
}
911
}
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"extends": "../../tsconfig.json",
33
"include": ["src/**/*"],
4-
"compilerOptions": {}
4+
"compilerOptions": {
5+
"module": "esnext",
6+
"moduleResolution": "bundler"
7+
}
58
}

packages/vue/tsconfig.json

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

66
"compilerOptions": {
7+
"module": "esnext",
8+
"moduleResolution": "bundler",
79
"lib": ["DOM", "es2020"]
810
}
911
}

0 commit comments

Comments
 (0)