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.
This commit is contained in:
Steven Cramer committed 2018-04-01 14:52:23 +07:00
1 parent 491b0caf18
commit 7b686518ed
1 file changed
+3 -1
+3 -1
View File
@@ -4,7 +4,9 @@
"jsx": "react",
"noEmit": true,
"moduleResolution": "node",
"noImplicitAny": true
"noImplicitAny": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true
},
"exclude": [
"node_modules"