Skip to content

[Bug]: Lazy compilation not work with playwright >= 1.43.0 #5467

@chenjiahan

Description

@chenjiahan

System Info

Browsers:
Chrome: 137.0.7151.104
Safari: 18.5
npmPackages:
@rspack/cli: ^1.3.15 => 1.3.15
@rspack/core: ^1.3.15 => 1.3.15

Details

This is an issue found in Rsbuild e2e testing, I'm not sure if it's related to Rspack lazy compilation implementation.

  • Playwright 1.42.0 - Lazy compilation works as expected, Rspack rebuilt twice:
start   build started...
ready   built in 0.02 s
start   building src/index.js
ready   built in 0.01 s
start   building src/render.js
ready   built in 0.03 s
  • Playwirght 1.43.0 - Lazy compilation not work, all modules are built at first:
start   build started...
ready   built in 0.02 s

Reproduce link

https://github.com/chenjiahan/rspack-repro-lazy-compilation-playwright

Reproduce Steps

  1. pnpm bootstrap
  2. pnpm test
  3. Update playwright version:
  "devDependencies": {
-    "@playwright/test": "1.42.0",
+    "@playwright/test": "1.43.0",
-    "playwright": "1.42.0"
+    "playwright": "1.43.0"
  },
  1. pnpm bootstrap
  2. pnpm test

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions