diff --git a/cypress.config.js b/cypress.config.js index 37363cd41d..9c006835c6 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -14,7 +14,15 @@ export default defineConfig({ }, e2e: { setupNodeEvents(on) { - on('file:preprocessor', vitePreprocessor()) + on('file:preprocessor', vitePreprocessor({ + build: { + rollupOptions: { + output: { + format: 'es' + } + } + } + })) } } })