Skip to content

Commit 4d8b3f4

Browse files
committed
fix(rsbuild): use v2 branch for modern.js
Change default branch from 'main' to 'v2' for stability.
1 parent f83d8cd commit 4d8b3f4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/rsbuild/modernjs.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ export async function test(options: RunOptions) {
1212
await runInRepo({
1313
...options,
1414
repo: 'web-infra-dev/modern.js',
15-
branch: process.env.MODERN_REF ?? 'main',
15+
// Using `v2` (the stable version) as `main` is still under development.
16+
branch: process.env.MODERN_REF ?? 'v2',
1617
beforeInstall: async () => {
1718
if (isGitHubActions) {
1819
const modernJsDir = join(process.cwd(), 'workspace/modernjs/modern.js');
@@ -44,7 +45,7 @@ export async function test(options: RunOptions) {
4445
},
4546
beforeTest: async () => {
4647
cd('tests/e2e/builder');
47-
await $`pnpm playwright install --with-deps chromium`;
48+
await $`pnpm playwright install chromium`;
4849
cd('../../../');
4950
},
5051
test: ['test:rspack'],

0 commit comments

Comments
 (0)