Skip to content

Commit 2cc7b99

Browse files
committed
test(e2e): playwright support lazyCompilation after Rsbuild 1.4.0, remove RSPRESS_LAZY_COMPILATION=false
1 parent 20565ea commit 2cc7b99

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

e2e/utils/runCommands.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ export async function runDevCommand(
9595
appDir,
9696
env: {
9797
PORT: port.toString(),
98-
// This is an escape hatch for playwright test, playwright does not support lazyCompilation
99-
RSPRESS_LAZY_COMPILATION: 'false',
10098
},
10199
});
102100
}

packages/core/src/node/initRsbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async function createInternalBuildConfig(
172172
...(base.length > 0 ? { base: removeTrailingSlash(base) } : {}),
173173
},
174174
dev: {
175-
lazyCompilation: process.env.RSPRESS_LAZY_COMPILATION !== 'false', // This is an escape hatch for playwright test, playwright does not support lazyCompilation
175+
lazyCompilation: process.env.RSPRESS_LAZY_COMPILATION !== 'false', // This is an escape hatch
176176
// Serve static files
177177
setupMiddlewares: middlewares => {
178178
middlewares.unshift(serveSearchIndexMiddleware(config));

0 commit comments

Comments
 (0)