Skip to content

Commit 607b56c

Browse files
committed
Add 'esModuleInterop' to tsconfig.json
> This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
1 parent cc73bd7 commit 607b56c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"declaration": true,
99
"pretty": true,
1010
"newLine": "lf",
11-
"outDir": "dist"
11+
"outDir": "dist",
12+
"esModuleInterop": true
1213
},
1314
"exclude": [
1415
"node_modules",
@@ -18,4 +19,4 @@
1819
"src/**/*.ts",
1920
"src/**/*.tsx"
2021
]
21-
}
22+
}

0 commit comments

Comments
 (0)