Skip to content

Commit

Permalink
fix types a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
ForsakenHarmony committed Oct 2, 2023
1 parent e4cd752 commit 64d0fbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/build/load-jsconfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default async function loadJsConfig(
)

let implicitBaseurl
let jsConfig
let jsConfig: { compilerOptions: Record<string, any> } | undefined
// jsconfig is a subset of tsconfig
if (useTypeScript) {
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/build/swc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ function bindingToApi(binding: any, _wasm: boolean) {
...options,
nextConfig:
options.nextConfig && (await serializeNextConfig(options.nextConfig)),
jsConfig: options.jsConfig && JSON.stringify(options.jsConfig ?? {}),
jsConfig: options.jsConfig && JSON.stringify(options.jsConfig),
env: options.env && rustifyEnv(options.env),
defineEnv: options.defineEnv && {
client: rustifyEnv(options.defineEnv.client),
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/server/lib/router-utils/setup-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async function startWatcher(opts: SetupOpts) {
projectPath: dir,
rootPath: opts.nextConfig.experimental.outputFileTracingRoot || dir,
nextConfig: opts.nextConfig,
jsConfig,
jsConfig: jsConfig ?? { compilerOptions: {} },
watch: true,
env: process.env as Record<string, string>,
defineEnv: createDefineEnv({
Expand Down

0 comments on commit 64d0fbc

Please sign in to comment.