-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9478c45
commit 84ad9ed
Showing
5 changed files
with
123 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
|
||
<ItemGroup> | ||
<None Remove="node_modules\**" /> | ||
<None Remove="ts_out\**" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84ad9ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve TypeScript compilation performance
Till no, we have had typescript compiler splitted in two:
noEmit
was set, since e are only interesting in the type checking (error generation).noEmit
was disabled buttranspileOnly
as enabled, since we are only interested in the generated javascript as fast as possible.Since TS 3.4 there is a new
incremental
feature that promises to improve performance on rebuilds. Unfortunately it doesn't work with noEmit yet, so I've:"noEmit": true
to disabled it.outDir: "/ts_out"
to keep the generated .js files in a different folder. This JS files are not used by webpack in any way!!"incremental":true
tsOut
in .tsconfigtsOut
to git ignore.I recommend you to do the same in your application too, to improve performance. In my test a rebuild went from 30s to 10s
84ad9ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried in a biggest solution and rebuild all the React projects (Signum.React, Signum.React.Extensions, App.React) went from 120s to 30s in total.
An incredible 4x speedup! 🥇