Skip to content

Commit f004a5f

Browse files
authored
tsconfig: default esModuleInterop & allowSyntheticDefaultImports
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 1b04911 commit f004a5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tsconfig.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171

7272
/* Interop Constraints */
7373
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
74-
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
75-
"esModuleInterop": false, /* Disable emitting additional JavaScript to ease support for importing CommonJS modules. */
74+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
75+
// "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
7676
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
7777
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
7878

0 commit comments

Comments
 (0)