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
+8-10Lines changed: 8 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Take a look at our [examples](examples/). You can also find some older tutorial
17
17
18
18
#### TypeScript
19
19
20
-
ts-loader supports the latest and greatest version of TypeScript right back to v1.6. (Including the [nightly build](http://blogs.msdn.com/b/typescript/archive/2015/07/27/introducing-typescript-nightlies.aspx).)
20
+
ts-loader supports the latest and greatest version of TypeScript right back to v1.6.
21
21
22
22
A full test suite runs each night (and on each pull request). It runs both on [Linux](https://travis-ci.org/TypeStrong/ts-loader) and [Windows](https://ci.appveyor.com/project/JohnReilly/ts-loader), testing ts-loader against each major release of TypeScript from the latest right back to 1.6. The test suite also runs against TypeScript@next (because we want to use it as much as you do).
23
23
@@ -171,6 +171,10 @@ different dependencies in your application will be lost. You should also
171
171
set the `isolatedModules` TypeScript option if you plan to ever make use
172
172
ofthis.
173
173
174
+
##### happyPackMode *(boolean) (default=false)*
175
+
176
+
Enables [`happypack`](https://github.com/amireh/happypack) compatibility mode. This implicitly sets `*transpileOnly*` to `true`. **WARNING!** Some errors will be silently ignored in `happypack` mode (`tsconfig.json` parsing errors, dependency resolution errors, etc.).
177
+
174
178
##### logInfoToStdOut *(boolean) (default=false)*
175
179
176
180
This is important if you read from stdout or stderr and for proper error handling.
@@ -215,10 +219,6 @@ Advanced option to force files to go through different instances of the
215
219
TypeScript compiler. Can be used to force segregation between different parts
216
220
of your code.
217
221
218
-
##### happyPackMode *(boolean) (default=false)*
219
-
220
-
Enables [`happypack`](https://github.com/amireh/happypack) compatibility mode. This implicitly sets `*transpileOnly*` to `true`. **WARNING!** Some errors will be silently ignored in `happypack` mode (`tsconfig.json` parsing errors, dependency resolution errors, etc.).
221
-
222
222
#### entryFileIsJs *(boolean) (default=false)*
223
223
224
224
To be used in concert with the `allowJs` compiler option. If your entry file is JS then you'll need to set this option to true. Please note that this is rather unusual and will generally not be necessary when using `allowJs`.
@@ -289,16 +289,14 @@ See [this example](test/comparison-tests/codeSplitting) and [this example](test/
289
289
290
290
### Faster incremental builds
291
291
292
-
As your project becomes bigger and bigger, compilation time increases linearly. It's because typescript's semantic checker has to inspect
293
-
all files on every rebuild.
292
+
As your project becomes bigger and bigger, compilation time increases linearly. It's because typescript's semantic checker has to inspect all files on every rebuild.
294
293
295
294
The simple solution is to disable it by `transpileOnly: true` option but it leaves you without type checking.
296
295
297
296
If you don't want give up type checking, you can use [fork-ts-checker-webpack-plugin](https://github.com/Realytics/fork-ts-checker-webpack-plugin).
298
-
It runs checker on separate process, so your build is as fast as with `transpileOnly: true`. Also, it has several optimizations to make
299
-
incremental type checking faster (AST cache, multiple workers).
297
+
It runs checker on separate process, so your build is as fast as with `transpileOnly: true`. Also, it has several optimizations to make incremental type checking faster (AST cache, multiple workers).
300
298
301
-
If you'd like to see a simple setup take a look at [our example](examples/webpack2-fork-ts-checker/).
299
+
If you'd like to see a simple setup take a look at [our simple example](examples/webpack2-fork-ts-checker/). For a more complex setup take a look at our [more involved example](examples\fork-ts-checker-react-babel-karma-gulp).
0 commit comments