Skip to content

Commit f892ffd

Browse files
committed
chore: add escape hatch
1 parent 8bc30e5 commit f892ffd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

e2e/utils/runCommands.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ 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',
98100
},
99101
});
100102
}

packages/core/src/node/initRsbuild.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async function createInternalBuildConfig(
154154
},
155155
},
156156
dev: {
157-
lazyCompilation: true,
157+
lazyCompilation: process.env.RSPRESS_LAZY_COMPILATION !== 'false', // This is an escape hatch for playwright test, playwright does not support lazyCompilation
158158
progressBar: false,
159159
// Serve static files
160160
setupMiddlewares: [

0 commit comments

Comments
 (0)