mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

Supercedes https://github.com/microsoft/playwright/pull/31915, closes https://github.com/microsoft/playwright/issues/31811. When TypeScript resolves a specifier via path mapping, it does not interpret `package.json`. If path mapping resolves to a directory, it only looks at the `index.js` file in that directory if it's in CommonJS mode. We need to mirror this in our `esmLoader.ts`. --------- Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
BEWARE This package is EXPERIMENTAL and does not respect semver.
Read more at https://playwright.dev/docs/test-components