Skip to content

Commit 7b68651

Browse files
Steven CramerSteven Cramer
authored andcommitted
Allow esModuleInterop
Allow default imports from modules with no default export. This does not affect code emit, just typechecking. Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports.
1 parent 491b0ca commit 7b68651

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"jsx": "react",
55
"noEmit": true,
66
"moduleResolution": "node",
7-
"noImplicitAny": true
7+
"noImplicitAny": true,
8+
"allowSyntheticDefaultImports": true,
9+
"esModuleInterop": true
810
},
911
"exclude": [
1012
"node_modules"

0 commit comments

Comments
 (0)