Skip to content

Commit 50ba885

Browse files
fix types a bit
1 parent 2340c90 commit 50ba885

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/next/src/build/load-jsconfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default async function loadJsConfig(
5858
)
5959

6060
let implicitBaseurl
61-
let jsConfig
61+
let jsConfig: { compilerOptions: Record<string, any> } | undefined
6262
// jsconfig is a subset of tsconfig
6363
if (useTypeScript) {
6464
if (

packages/next/src/build/swc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ function bindingToApi(binding: any, _wasm: boolean) {
758758
...options,
759759
nextConfig:
760760
options.nextConfig && (await serializeNextConfig(options.nextConfig)),
761-
jsConfig: options.jsConfig && JSON.stringify(options.jsConfig ?? {}),
761+
jsConfig: options.jsConfig && JSON.stringify(options.jsConfig),
762762
env: options.env && rustifyEnv(options.env),
763763
defineEnv: options.defineEnv && {
764764
client: rustifyEnv(options.defineEnv.client),

packages/next/src/server/lib/router-utils/setup-dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ async function startWatcher(opts: SetupOpts) {
219219
projectPath: dir,
220220
rootPath: opts.nextConfig.experimental.outputFileTracingRoot || dir,
221221
nextConfig: opts.nextConfig,
222-
jsConfig,
222+
jsConfig: jsConfig ?? { compilerOptions: {} },
223223
watch: true,
224224
env: process.env as Record<string, string>,
225225
defineEnv: createDefineEnv({

0 commit comments

Comments
 (0)