Skip to content

Commit 4f6313f

Browse files
authored
fix: disable lazy compilation in edenx by default (#7582)
1 parent 4afae20 commit 4f6313f

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packages/cli/builder/src/shared/parseCommonConfig.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function parseCommonConfig(
7676
transformImport,
7777
...sourceConfig
7878
} = {},
79-
dev,
79+
dev = {},
8080
security: { checkSyntax, sri, ...securityConfig } = {},
8181
tools: {
8282
devServer,
@@ -191,6 +191,10 @@ export async function parseCommonConfig(
191191
};
192192
}
193193

194+
if (!dev.lazyCompilation) {
195+
dev.lazyCompilation = false;
196+
}
197+
194198
const { rsbuildDev, rsbuildServer } = transformToRsbuildServerOptions(
195199
dev || {},
196200
devServer || {},

packages/cli/builder/tests/__snapshots__/parseConfig.test.ts.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ exports[`parseCommonConfig > dev.xxx 1`] = `
99
"port": "<port>",
1010
},
1111
"hmr": false,
12+
"lazyCompilation": false,
1213
"liveReload": true,
1314
"progressBar": true,
1415
"writeToDisk": [Function],
@@ -74,6 +75,7 @@ exports[`parseCommonConfig > dev.xxx 2`] = `
7475
"port": "<port>",
7576
},
7677
"hmr": true,
78+
"lazyCompilation": false,
7779
"liveReload": true,
7880
"progressBar": true,
7981
"writeToDisk": [Function],
@@ -127,6 +129,7 @@ exports[`parseCommonConfig > output.disableCssModuleExtension 1`] = `
127129
"port": "<port>",
128130
},
129131
"hmr": true,
132+
"lazyCompilation": false,
130133
"liveReload": true,
131134
"progressBar": true,
132135
"writeToDisk": [Function],

0 commit comments

Comments
 (0)