Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Remove experimental babel flag (vercel#24776)
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored May 7, 2021
1 parent 98f94b4 commit 10791f7
Show file tree
Hide file tree
Showing 15 changed files with 11,182 additions and 11,296 deletions.
26 changes: 1 addition & 25 deletions packages/next/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -979,31 +979,7 @@ export default async function getBaseWebpackConfig(
}
return /node_modules/.test(excludePath)
},
use: config.experimental.babelMultiThread
? [
// Move Babel transpilation into a thread pool (2 workers, unlimited batch size).
// Applying a cache to the off-thread work avoids paying transfer costs for unchanged modules.
{
loader: 'next/dist/compiled/cache-loader',
options: {
cacheContext: dir,
cacheDirectory: path.join(distDir, 'cache', 'webpack'),
cacheIdentifier: `webpack${isServer ? '-server' : ''}`,
},
},
{
loader: require.resolve('next/dist/compiled/thread-loader'),
options: {
workers: 2,
workerParallelJobs: Infinity,
},
},
hasReactRefresh
? require.resolve('@next/react-refresh-utils/loader')
: '',
defaultLoaders.babel,
].filter(Boolean)
: hasReactRefresh
use: hasReactRefresh
? [
require.resolve('@next/react-refresh-utils/loader'),
defaultLoaders.babel,
Expand Down
20 changes: 0 additions & 20 deletions packages/next/compiled/cache-loader/LICENSE

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/compiled/cache-loader/cjs.js

This file was deleted.

1 change: 0 additions & 1 deletion packages/next/compiled/cache-loader/package.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/next/compiled/find-cache-dir/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/next/compiled/schema-utils/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit 10791f7

Please sign in to comment.