You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -82,23 +82,18 @@ build system using the [Node.js API](http://webpack.github.io/docs/node.js-api.h
82
82
}
83
83
```
84
84
85
-
2. Add a `tsconfig.json` file. <a name="tsconfig"></a>
85
+
2. Add a [`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) file. (The one below is super simple; but you can tweak this to your hearts desire)
86
86
87
-
```javascript
87
+
```json
88
88
{
89
89
"compilerOptions": {
90
-
"target": "es5",
91
-
"sourceMap": true
92
-
},
93
-
"exclude": [
94
-
"node_modules"
95
-
]
90
+
}
96
91
}
97
92
```
98
93
99
94
The [tsconfig.json](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html) file controls
100
95
TypeScript-related options so that your IDE, the `tsc` command, and this loader all share the
101
-
same options.TypeScript files from all subdirectories will get included except the ones matching `exclude`.
96
+
same options.
102
97
103
98
### Failing the build on TypeScript compilation error
0 commit comments