Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Dec 6, 2024
1 parent 0a140dc commit 27372f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/core/src/node/initRsbuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ async function createInternalBuildConfig(
if (isServer) {
chain.output.filename('main.cjs');
}

const enableIncremental =
!isProduction() && !process.env.DISABLE_RSPACK_INCREMENTAL;
if (enableIncremental) {
chain.merge({ experiments: { incremental: true } });
}
},
},
environments: {
Expand Down

0 comments on commit 27372f6

Please sign in to comment.