Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ export async function createConstantRsbuildConfig(): Promise<EnvironmentConfig>
chunkSplit: {
strategy: 'custom',
},
buildCache: true,
},
tools: {
htmlPlugin: false,
Expand Down
5 changes: 5 additions & 0 deletions packages/core/tests/__snapshots__/config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
"target": "node",
},
"performance": {
"buildCache": true,
"chunkSplit": {
"strategy": "custom",
},
Expand Down Expand Up @@ -382,6 +383,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
"target": "node",
},
"performance": {
"buildCache": true,
"chunkSplit": {
"strategy": "custom",
},
Expand Down Expand Up @@ -636,6 +638,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
"target": "node",
},
"performance": {
"buildCache": true,
"chunkSplit": {
"strategy": "custom",
},
Expand Down Expand Up @@ -865,6 +868,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
"target": "node",
},
"performance": {
"buildCache": true,
"chunkSplit": {
"strategy": "custom",
},
Expand Down Expand Up @@ -1048,6 +1052,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i
"target": "web",
},
"performance": {
"buildCache": true,
"chunkSplit": {
"strategy": "custom",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ export default defineConfig({
'e7',
],
},
performance: {
buildCache: false,
},
});
3 changes: 2 additions & 1 deletion tests/integration/bundle-false/basic/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
!node_modules/
!node_modules/
.cache
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export default defineConfig({
},
}),
],
performance: {
buildCache: false,
},
source: {
entry: {
index: '../__fixtures__/src/index.ts',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ export default defineConfig({
output: {
externals: ['bar', /^qux$/, 'quxx'],
},
performance: {
buildCache: false,
},
});
3 changes: 2 additions & 1 deletion tests/integration/redirect/style/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
!node_modules/
!node_modules/
.cache
1 change: 1 addition & 0 deletions tests/scripts/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ export async function getResults(
const updateConfigForTest = (rslibConfig: RslibConfig) => {
Object.assign(rslibConfig, {
performance: {
...rslibConfig.performance,
// Do not print file size in tests
printFileSize: false,
},
Expand Down
2 changes: 1 addition & 1 deletion website/rspress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default defineConfig({
dev: {
lazyCompilation: true,
},
resolve: {
source: {
alias: {
'@components': path.join(__dirname, '@components'),
'@en': path.join(__dirname, 'docs/en'),
Expand Down
Loading