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
The default behavior of ts-loader is to act as a drop-in replacement for the `tsc` command,
407
+
so it respects the `include`, `files`, and `exclude` options in your `tsconfig.json`, loading
408
+
any files specified by those options. The `onlyCompileBundledFiles` option modifies this behavior,
409
+
loading only those files that are actually bundled by webpack, as well as any `.d.ts` files included
410
+
by the `tsconfig.json` settings. `.d.ts` files are still included because they may be needed for
411
+
compilation without being explicitly imported, and therefore not picked up by webpack.
412
+
404
413
### `LoaderOptionsPlugin`
405
414
406
415
[There's a known "gotcha"](https://github.com/TypeStrong/ts-loader/issues/283) if you are using webpack 2 with the `LoaderOptionsPlugin`. If you are faced with the `Cannot read property 'unsafeCache' of undefined` error then you probably need to supply a `resolve` object as below: (Thanks @jeffijoe!)
0 commit comments