File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
packages/repack/src/commands/common/config Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @callstack/repack " : patch
3+ ---
4+
5+ Use Terser for Rspack 1.5.0 and above
Original file line number Diff line number Diff line change @@ -25,10 +25,11 @@ async function getTerserConfig(rootDir: string) {
2525 } ) ;
2626}
2727
28- // use SwcJsMinimizerRspackPlugin for Rspack 1.5.0 and above
28+ // use SwcJsMinimizerRspackPlugin for Rspack 1.4.11
29+ // Rspack 1.5.0 broke the minimizer again, pending a fix
2930function shouldUseTerserForRspack ( rspackVersion : string ) : boolean {
3031 const version = semver . coerce ( rspackVersion ) ?? '0.0.0' ;
31- return semver . lt ( version , '1.5.0 ' ) ;
32+ return semver . eq ( version , '1.4.11 ' ) ;
3233}
3334
3435async function getWebpackMinimizer ( rootDir : string ) {
You can’t perform that action at this time.
0 commit comments