-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ts-loader's default config makes Webpack extremely slow in larger projects #91
Comments
Hey @ludvon The second method I get: when I try and run
|
Hey @ludvon the first option I got working, it has better reporting on how long it took to compile, doesn't make it run faster though:
|
@neilbo About the second method, it seems that |
@ludvon you are a legend! It went from 14-15sec to compile to 1-2sec! I've got ~ 450 unit tests
Cheers! |
Just to add that 3.5.0 is the correct version for typescript 2.x.x . I was not sure about this and maybe other person has the same doubt. |
After installing
The problem is that I can not say if it is faster because I am right now in my crappy old laptop. Edit: A quick Warning. |
Updated Webpack to 4.23.1 and used the option 2. Got the following error: ✖ 「atl」: Child process failed to process the request: TypeError: Cannot read property 'Created' of undefined Update: Upgrading typescript to 3.1.3 fixed it but the compilation is still slow. Here are my current dependencies:
Update 2: Followed @distante 's suggestions and method 2 fixed the performance issue Here are my current dependencies:
|
The nature of ts-loader makes it slower as the project's size increases.
https://github.com/TypeStrong/ts-loader#faster-builds
There are 2 options to make it fast:
ts-loader
's docs in the link above:awesome-typescript-loader
:Any inputs on if these changes breaks anything?
The text was updated successfully, but these errors were encountered: