Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Nov 6, 2022
1 parent ce88e9a commit 3dd6f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack-config.ts
Expand Up @@ -660,7 +660,7 @@ export default async function getBaseWebpackConfig(
loggedIgnoredCompilerOptions = true
}

if (!useSWCLoader && config.experimental.fontLoaders) {
if (!useSWCLoader && babelConfigFile && config.experimental.fontLoaders) {
Log.error(
`"experimental.fontLoaders" is enabled which requires SWC although Babel is being used due to custom babel config being present "${path.relative(
dir,
Expand Down

0 comments on commit 3dd6f3a

Please sign in to comment.