Cypress and webpack are having issues with the new multi Ts-config setup proposed in recent vite projects.
We have to add module: EsNext in the tsconfig.json at the root for it to compile to ESM... otherwise the cypress.config.ts is compiled to CJS...
We can not use path imports as they are not picked up by webpack when bundling the tests ... this is very annoying as it is not correctly marked by typescript when writing the tests ...
We should consider moving to a different framework maybe.
Cypress and webpack are having issues with the new multi Ts-config setup proposed in recent vite projects.
We have to add
module: EsNext
in thetsconfig.json
at the root for it to compile to ESM... otherwise the cypress.config.ts is compiled to CJS...We can not use path imports as they are not picked up by webpack when bundling the tests ... this is very annoying as it is not correctly marked by typescript when writing the tests ...
We should consider moving to a different framework maybe.