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
{{ message }}
This repository was archived by the owner on Dec 1, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+10-9
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,6 @@ Thanks @andreypopp for the great project.
8
8
The main goal of this loader is to support the **watch** mode and *webpack-dev-server* with **incremental** compilation.
9
9
Also there are a lot of problems in other TypeScript loaders that were fixed here.
10
10
11
-
## Unstable TypeScript warning
12
-
13
-
Right now this library works only with the **TypeScript 1.5-beta** compiler or with *ntypescript*.
14
-
15
11
## Installation
16
12
17
13
```
@@ -53,7 +49,6 @@ After that, you would be able to build TypeScript files with webpack.
53
49
## TS defaults
54
50
55
51
* target = 'es5'
56
-
* module = 'commonjs'
57
52
58
53
## tsconfig.json
59
54
@@ -71,12 +66,14 @@ You can use .tsconfig.json file to configure your compiler and loader:
71
66
}
72
67
```
73
68
74
-
## Loader Options
69
+
## Loader options
75
70
76
71
### compiler *(string) (default='typescript')*
77
72
78
73
Allows use of TypeScript compilers other than the official one. Should be
79
74
set to the NPM name of the compiler, e.g. *ntypescript* or path to a `tsc` file.
75
+
Note that the compiler must be installed in **your** project. You can also use
76
+
nightly versions.
80
77
81
78
### emitRequireType *(boolean) (default=true)*
82
79
@@ -117,12 +114,16 @@ Use this setting to disable type checking if you want.
117
114
118
115
### forkChecker *(string) (default=false)*
119
116
120
-
Do type checking in a separate process, so webpack don't need to wait. **Significantly** improves development workflow.
117
+
Do type checking in a separate process, so webpack don't need to wait. **Significantly** improves development workflow with tools like [react-hot-loader](https://github.com/gaearon/react-hot-loader).
118
+
119
+
## Compiler options
120
+
121
+
You can pass compiler options inside loader query string or in tsconfig file.
121
122
122
123
## Using with --watch or webpack-dev-server
123
124
124
125
This loader has support of both `--watch` and `webpack-dev-server` modes. It handles file dependencies
125
-
using internal webpack dependency markers. When you change a file, the loader recompiles all dependencies.
126
+
using internal webpack dependency markers. When you change a file, the loader recompiles all the dependencies.
0 commit comments