playwright/packages/playwright-ct-core/src
Simon Knott effb1ae234
fix(test runner): align with typescript behaviour for resolving index.js and package.json through path mapping (#32078)
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>
2024-08-12 15:05:19 +02:00
..
injected fix(ct): fix component.d.ts core types (#29463) 2024-02-12 22:37:31 +01:00
cliOverrides.ts chore(ct): remove suite dependency by connecting dependency graphs at read time, not write time (#31794) 2024-07-23 10:19:58 +02:00
DEPS.list chore(ct): use sticky test server if available (#29136) 2024-01-25 08:36:13 -08:00
devServer.ts fix(ui): added test in watched file should be run (#31842) 2024-07-30 14:17:41 +02:00
mount.ts chore: rename route fixture in ct (#31817) 2024-07-23 07:43:28 -07:00
program.ts chore: move dev server to config-based framework extensibility (#30234) 2024-04-05 08:39:51 -07:00
router.ts chore: rename route fixture in ct (#31817) 2024-07-23 07:43:28 -07:00
tsxTransform.ts fix(ct): ct ID clash on similar imports (#30108) 2024-03-25 23:50:45 +01:00
vitePlugin.ts fix(test runner): align with typescript behaviour for resolving index.js and package.json through path mapping (#32078) 2024-08-12 15:05:19 +02:00
viteUtils.ts fix(test runner): align with typescript behaviour for resolving index.js and package.json through path mapping (#32078) 2024-08-12 15:05:19 +02:00