Skip to content

Commit ea2af1e

Browse files
peterblazejewiczmontogeek
authored andcommittedJun 14, 2018
docs(configuration) Update TypeScript configuration for Webpack config (webpack#2263)
This changes the content of sample `tsconfig-for-webpack-config.json` configuration file to include settings for '--allowSyntheticDefaultImports' for better typesystem compatibility fixing issues like: ` error TS1192: Module '"path"' has no default export.` Thanks!
1 parent c959a29 commit ea2af1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/content/configuration/configuration-languages.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ __tsconfig-for-webpack-config.json__
6767
{
6868
"compilerOptions": {
6969
"module": "commonjs",
70-
"target": "es5"
70+
"target": "es5",
71+
"esModuleInterop": true
7172
}
7273
}
7374
```

0 commit comments

Comments
 (0)
Please sign in to comment.