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> |
||
|---|---|---|
| .. | ||
| src | ||
| types | ||
| .eslintrc.js | ||
| .npmignore | ||
| index.d.ts | ||
| index.js | ||
| package.json | ||
| README.md | ||
BEWARE This package is EXPERIMENTAL and does not respect semver.
Read more at https://playwright.dev/docs/test-components