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
+11-8
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,17 @@
9
9
npm install awesome-typescript-loader --save-dev
10
10
```
11
11
12
+
## Performance issues
13
+
14
+
Please note that ATL works **the same way as a TypeScript compiler** as much as possible. So please be careful with your `files`/`exclude`/`include` sections.
15
+
16
+
**ADVICE**: Typically you want your `files` section to include only entry points.
17
+
18
+
**ADVICE**: The loader works faster if you use `isolatedModules` or `forceIsolatedModules` options.
19
+
20
+
The world is changing, other solutions are evolving and ATL may work **slower**
21
+
for [some workloads](https://github.com/s-panferov/awesome-typescript-loader/issues/497). Feel free to try [`ts-loader`](https://github.com/TypeStrong/ts-loader) with [`HappyPack`](https://github.com/amireh/happypack) or [`thread-loader`](https://webpack.js.org/loaders/thread-loader/) and [hard-source-webpack-plugin](https://github.com/mzgoddard/hard-source-webpack-plugin).
22
+
12
23
## Differences between [`ts-loader`](https://github.com/TypeStrong/ts-loader)
13
24
14
25
`awesome-typescript-loader` loader was created mostly to speed-up compilation in my own projects.
@@ -102,14 +113,6 @@ resolve: {
102
113
}
103
114
```
104
115
105
-
## Performance issues
106
-
107
-
Please note that ATL works **the same way as a TypeScript compiler** as much as possible. So please be careful with your `files`/`exclude`/`include` sections.
108
-
109
-
**ADVICE**: Typically you want your `files` section to include only entry points.
110
-
111
-
**ADVICE**: The loader works faster if you use `isolatedModules` or `forceIsolatedModules` options.
0 commit comments