Using Bzlmod with Bazel 6 or greater
Add to your MODULE.bazel file:
bazel_dep(name = "rules_playwright", version = "0.5.3")
playwright = use_extension("@rules_playwright//playwright:extensions.bzl", "playwright")
playwright.repo(
name = "playwright",
playwright_version = "", # Match the exact version from your pnpm lock file of playwright-core
browser_json = "", # Or vendor the browsers.json file from playwright core into your repo
)
use_repo(playwright, "playwright")Full Changelog: v0.5.2...v0.5.3