Skip to content

Commit

Permalink
disable rspack experiments.incremental for production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 14, 2024
1 parent b041714 commit e55ce4e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/docusaurus/src/webpack/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ export async function createBaseConfig({
function getExperiments(): Configuration['experiments'] {
if (props.currentBundler.name === 'rspack') {
return {
// Doesn't work well for now
// See https://rspack.dev/blog/announcing-1-1#new-incremental-rebuild
// This is mostly useful in dev
// See https://rspack.dev/config/experiments#experimentsincremental
// Produces warnings in production builds
// See https://github.com/web-infra-dev/rspack/pull/8311#issuecomment-2476014664
// @ts-expect-error: Rspack-only
incremental: true,
incremental: !isProd,
};
}
return undefined;
Expand Down

0 comments on commit e55ce4e

Please sign in to comment.