Playwright doesn’t have a direct equivalent to Cypress plugins like cypress-vite
, but you can achieve the same effect by configuring module path aliases in Node (or Vite) and then telling Playwright (via its config or tsconfig.json
/jsconfig.json
)