Skip to content

Commit

Permalink
Ensure useTypescript is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Nov 10, 2021
1 parent a18c24d commit a0f0f9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/next/build/load-jsconfig.ts
Expand Up @@ -77,6 +77,7 @@ export default async function loadJsConfig(
resolvedBaseUrl = path.resolve(dir, jsConfig.compilerOptions.baseUrl)
}
return {
useTypeScript,
jsConfig,
resolvedBaseUrl,
}
Expand Down
5 changes: 4 additions & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -554,7 +554,10 @@ export default async function getBaseWebpackConfig(
} as ClientEntries)
: undefined

const { jsConfig, resolvedBaseUrl } = await loadJsConfig(dir, config)
const { useTypeScript, jsConfig, resolvedBaseUrl } = await loadJsConfig(
dir,
config
)

function getReactProfilingInProduction() {
if (reactProductionProfiling) {
Expand Down

0 comments on commit a0f0f9f

Please sign in to comment.