Skip to content

Commit

Permalink
tweak config
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Sep 6, 2023
1 parent 30da48f commit 3eb0193
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/next/src/build/webpack-config.ts
Expand Up @@ -1731,6 +1731,9 @@ export default async function getBaseWebpackConfig(
reuseExistingChunk: true,
test: /[\\/]node_modules[\\/]/,
minSize: 0,
minChunks: 0,
maxAsyncRequests: 300,
maxInitialRequests: 300,
name: (module: webpack.Module) => {
const moduleId = module.nameForCondition()!
const rootModule = extractRootNodeModule(moduleId)
Expand All @@ -1743,6 +1746,9 @@ export default async function getBaseWebpackConfig(
}
},
},
// disable the default chunk groups
default: false,
defaultVendors: false,
},
}
}
Expand Down

0 comments on commit 3eb0193

Please sign in to comment.