Skip to content

feat(driver): bundle playwright-core in driver, keep only Node.js in driver-bundle#1936

Open
yury-s wants to merge 3 commits into
microsoft:mainfrom
yury-s:driver-bundle-node-only
Open

feat(driver): bundle playwright-core in driver, keep only Node.js in driver-bundle#1936
yury-s wants to merge 3 commits into
microsoft:mainfrom
yury-s:driver-bundle-node-only

Conversation

@yury-s

@yury-s yury-s commented Jun 18, 2026

Copy link
Copy Markdown
Member

Summary

  • Move the platform-independent playwright-core package and the DriverJar loader from driver-bundle into the always-present driver module.
  • driver-bundle now contains only the Node.js binaries (one per platform).
  • A user with a preinstalled Node.js (PLAYWRIGHT_NODEJS_PATH) can now exclude driver-bundle entirely; DriverJar extracts the package from the driver jar and uses the preinstalled node. If driver-bundle is absent and no node is configured, it fails with an actionable error.

Verified

  • Full build green; driver.jar carries DriverJar + driver/package/, driver-bundle.jar carries only the 5 Node.js binaries.
  • TestInstall (moved to the playwright module) passes, including both preinstalled-node paths.
  • With driver-bundle removed from the classpath: Playwright.create() succeeds when PLAYWRIGHT_NODEJS_PATH is set, and fails with a clear message when it is not.

References #1196
References #467

yury-s added 3 commits June 18, 2026 14:41
…driver-bundle

Move the platform-independent playwright-core package and the DriverJar loader
from driver-bundle into the always-present driver module. driver-bundle now
contains only the Node.js binaries, one per platform. DriverJar assembles the
driver directory from two classpath roots: the shared package (driver module)
and the host platform's Node.js (driver-bundle), the latter skipped when a
preinstalled Node.js is configured.

This lets a user with a preinstalled Node.js (PLAYWRIGHT_NODEJS_PATH) exclude
the driver-bundle dependency entirely.
@yury-s yury-s requested a review from dgozman June 18, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants