mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-28 17:57:48 +02:00
feat(core): enable Rspack parallelCodeSplitting
(#11067)
re-enable parallelCodeSplitting
This commit is contained in:
parent
6215983cdd
commit
979ae084a7
1 changed files with 2 additions and 5 deletions
|
@ -187,10 +187,6 @@ export async function createBaseConfig({
|
|||
// @ts-expect-error: Rspack-only, not available in Webpack typedefs
|
||||
incremental: !isProd && !process.env.DISABLE_RSPACK_INCREMENTAL,
|
||||
|
||||
// TODO re-enable later?
|
||||
// See Rspack 1.3 bug https://github.com/web-infra-dev/rspack/issues/9834
|
||||
parallelCodeSplitting: false,
|
||||
|
||||
...PersistentCacheAttributes,
|
||||
};
|
||||
}
|
||||
|
@ -253,7 +249,8 @@ export async function createBaseConfig({
|
|||
modules: ['node_modules', path.join(siteDir, 'node_modules')],
|
||||
},
|
||||
optimization: {
|
||||
removeAvailableModules: false,
|
||||
// See https://github.com/web-infra-dev/rspack/issues/9834
|
||||
removeAvailableModules: true,
|
||||
// Only minimize client bundle in production because server bundle is only
|
||||
// used for static site generation
|
||||
minimize: minimizeEnabled,
|
||||
|
|
Loading…
Add table
Reference in a new issue