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
+26-48
Original file line number
Diff line number
Diff line change
@@ -3,12 +3,6 @@
3
3
[](https://gitter.im/s-panferov/awesome-typescript-loader?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Allows the use of libraries other than the `target`'s default one. Useful when you want to use ES6 library with ES5 target. Additionally you might use `library=es6` with Node.
112
+
Specify whether or not the loader emits webpacks's require type.
103
113
104
114
### instanceName *(string) (default='default')*
105
115
@@ -174,42 +184,10 @@ Use pre-compiled files if any. Files must be named as `{filename}.js` and `{file
174
184
175
185
Directory when cache is stored.
176
186
177
-
### resolveGlobs *(string) (default=true)*
178
-
179
-
Invoke glob resolver using 'filesGlob' and 'exclude' sections of `tsconfig`.
Skip declaration files typechecking. Use this only if you understand consequences.
184
190
185
191
## Compiler options
186
192
187
-
You can pass compiler options inside loader query string or in tsconfig file.
188
-
189
-
## Using with --watch or webpack-dev-server
190
-
191
-
This loader supports both `--watch` and `webpack-dev-server` modes. It handles file dependencies
192
-
using internal webpack dependency markers. When you change a file, the loader recompiles all the dependencies.
193
-
194
-
## External Modules
195
-
196
-
The most natural way to structure your code with TypeScript and webpack is to use [external modules](https://github.com/Microsoft/TypeScript/wiki/Modules#going-external), and these work as you would expect.
197
-
198
-
```
199
-
npm install --save react
200
-
```
201
-
202
-
```typescript
203
-
import*asReactfrom'react';
204
-
```
205
-
206
-
## Internal Modules
207
-
208
-
This project doesn't aim to support internal modules, because it's hard to resolve dependencies for the watch mode. Of course, you can still use them without watch, but this function is **unstable**.
209
-
210
-
## Declaration files
211
-
212
-
All declaration files should be resolvable from the entry file.
213
-
The easiest way to do this is to create a `references.d.ts` file which contains
214
-
references to all of your declaration files. Then reference
215
-
`references.d.ts` from your entry file.
193
+
You can pass compiler options inside loader query string or in tsconfig file.
0 commit comments