Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: do not emit assets in ssr
Browse files Browse the repository at this point in the history
SoonIter committed Oct 14, 2024
1 parent ad6132e commit d292974
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/src/node/initRsbuild.ts
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ import {
MDX_REGEXP,
RSPRESS_TEMP_DIR,
removeTrailingSlash,
isDebugMode,
} from '@rspress/shared';
import fs from '@rspress/shared/fs-extra';
import type {
@@ -284,9 +285,10 @@ async function createInternalBuildConfig(
},
},
performance: {
printFileSize: false,
printFileSize: isDebugMode(),
},
output: {
emitAssets: false,
target: 'node',
overrideBrowserslist: ssrBrowserslist,
distPath: {

0 comments on commit d292974

Please sign in to comment.