Skip to content

Commit 4568eb4

Browse files
Add section to migration guide about esModuleInterop change (#3053)
1 parent 845161b commit 4568eb4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

source/guides/references/migration-guide.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,20 @@ Running Cypress on Linux now requires the `libgbm` dependency (on Debian-based s
340340
apt-get install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
341341
```
342342

343+
## TypeScript esModuleInterop
344+
345+
Cypress no longer forces the `esModuleInterop` compiler option for TypeScript to be `true` for spec, support, and plugin files. We recommend setting it in your project's `tsconfig.json` instead if you need to.
346+
347+
```json
348+
// tsconfig.json
349+
{
350+
"compilerOptions": {
351+
"esModuleInterop": true,
352+
/* ... other compiler options ... */
353+
}
354+
}
355+
```
356+
343357
## TypeScript 3.4+ support
344358

345359
Cypress 5.0 raises minimum required TypeScript version from 2.9+ to 3.4+. You'll need to have TypeScript 3.4+ installed within your project to have TypeScript support within Cypress.

0 commit comments

Comments
 (0)