Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,19 @@ export async function createConstantRsbuildConfig(): Promise<RsbuildConfig> {
dev: {
progressBar: false,
},
performance: {
chunkSplit: {
strategy: 'custom',
},
},
tools: {
htmlPlugin: false,
rspack: {
optimization: {
splitChunks: {
// Splitted "sync" chunks will make entry modules can't be inlined.
chunks: 'async',
},
moduleIds: 'named',
nodeEnv: false,
},
Expand Down
24 changes: 24 additions & 0 deletions packages/core/tests/__snapshots__/config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"not dead",
],
},
"performance": {
"chunkSplit": {
"strategy": "custom",
},
},
"plugins": [],
"source": {
"alias": {
Expand All @@ -71,6 +76,9 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"optimization": {
"moduleIds": "named",
"nodeEnv": false,
"splitChunks": {
"chunks": "async",
},
},
"resolve": {
"extensionAlias": {
Expand Down Expand Up @@ -199,6 +207,11 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"not dead",
],
},
"performance": {
"chunkSplit": {
"strategy": "custom",
},
},
"plugins": [
{
"name": "rsbuild:cjs-import-meta-url-shim",
Expand Down Expand Up @@ -231,6 +244,9 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"optimization": {
"moduleIds": "named",
"nodeEnv": false,
"splitChunks": {
"chunks": "async",
},
},
"resolve": {
"extensionAlias": {
Expand Down Expand Up @@ -348,6 +364,11 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"not dead",
],
},
"performance": {
"chunkSplit": {
"strategy": "custom",
},
},
"source": {
"alias": {
"bar": "bar",
Expand All @@ -370,6 +391,9 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"optimization": {
"moduleIds": "named",
"nodeEnv": false,
"splitChunks": {
"chunks": "async",
},
},
"resolve": {
"extensionAlias": {
Expand Down
Loading
Loading