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> |
||
|---|---|---|
| .. | ||
| injected | ||
| cliOverrides.ts | ||
| DEPS.list | ||
| devServer.ts | ||
| mount.ts | ||
| program.ts | ||
| router.ts | ||
| tsxTransform.ts | ||
| vitePlugin.ts | ||
| viteUtils.ts | ||