Unverified Commit a561dd9c authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Resolve new babel loader through require.resolve (#23819)

parent 761d72fb
......@@ -237,7 +237,7 @@ export default async function getBaseWebpackConfig(
const distDir = path.join(dir, config.distDir)
const babelLoader = config.experimental.turboMode
? 'next/dist/build/babel/loader'
? require.resolve('./babel/loader/index')
: 'next-babel-loader'
const defaultLoaders = {
babel: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment