https://cypress.io logo
**Vite + Cypress**: How to get them to work togeth...
# e2e-testing
m
**Vite + Cypress**: How to get them to work together? Vite included a change from using
process.env
to
import.meta.env
for all env variables - this is quite a problem because Cypress, when I run
cypress open/run
, is trying to transpile my Cypress code, which has imports of files using
import.meta.env
. It fails with webpack compilation errors. Has anyone resolved this issue for themselves? Note: this is specific to E2E tests not component testing.