Skip to content

Commit 0d5f371

Browse files
committed
Use esModuleInterop
1 parent 844264d commit 0d5f371

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/app.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as express from 'express';
2-
import * as bodyParser from 'body-parser';
1+
import express from 'express';
2+
import bodyParser from 'body-parser';
33

44
const app = express();
55

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"outDir": "./dist",
99
"strict": true,
1010
"skipLibCheck": true,
11-
"forceConsistentCasingInFileNames": true
11+
"forceConsistentCasingInFileNames": true,
12+
"esModuleInterop": true
1213
},
1314
"include": ["src"],
1415
"exclude": ["*.test.ts"],

0 commit comments

Comments
 (0)