Skip to content

Commit fd49eef

Browse files
committed
test(e2e): playwright support lazyCompilation after Rsbuild 1.4.0, remove RSPRESS_LAZY_COMPILATION=false
1 parent 4e33d77 commit fd49eef

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
@@ -175,7 +175,7 @@ async function createInternalBuildConfig(
175175
},
176176
},
177177
dev: {
178-
lazyCompilation: process.env.RSPRESS_LAZY_COMPILATION !== 'false', // This is an escape hatch for playwright test, playwright does not support lazyCompilation
178+
lazyCompilation: process.env.RSPRESS_LAZY_COMPILATION !== 'false', // This is an escape hatch
179179
// Serve static files
180180
setupMiddlewares: middlewares => {
181181
middlewares.unshift(serveSearchIndexMiddleware(config));

0 commit comments

Comments
 (0)