Skip to content

Commit ae09ed1

Browse files
committed
updated tsconfig with commonjs module interop config
1 parent e2e1906 commit ae09ed1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/markdown/4_recipes.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
// in webpack you need to add -> resolve: { alias: { '@src': PATH_TO_SRC } }
1515
},
1616
"outDir": "dist/", // target for compiled files
17-
"allowSyntheticDefaultImports": true, // no errors on commonjs default import
17+
"allowSyntheticDefaultImports": true, // no errors with commonjs modules interop
18+
"esModuleInterop": true,
1819
"allowJs": true, // include js files
1920
"checkJs": true, // typecheck js files
2021
"declaration": false, // don't emit declarations

playground/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
// in webpack you need to add -> resolve: { alias: { '@src': PATH_TO_SRC } }
88
},
99
"outDir": "dist/", // target for compiled files
10-
"allowSyntheticDefaultImports": true, // no errors on commonjs default import
10+
"allowSyntheticDefaultImports": true, // no errors with commonjs modules interop
11+
"esModuleInterop": true,
1112
"allowJs": true, // include js files
1213
"checkJs": true, // typecheck js files
1314
"declaration": false, // don't emit declarations

0 commit comments

Comments
 (0)