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
Hey guys! I am hoping someone here with more experience can help me analyze my build performance. Initial build doesn't bother me, but having a slow incremental build is a productivity killer so that is my main concern.
Specs
webpack: 2.0.4-beta
Typescript with ts-loader which is then piped into Babel
I have been scouring the internet for days attempting to fix this problem. As sad as it is, I have come up completely empty handed. This leads me to believe I am bound by some part of the build system that I cannot seem to find.
Essentially, I would just like to find my problem so I can begin to look for a solution.
Here is an (in-exhaustive list) of things I have tried.
There's an issue with ts-loader's incremental build performance in large projects: TypeStrong/ts-loader#78
You can try setting the transpileOnly flag and relying on your IDE for errors
Hey guys! I am hoping someone here with more experience can help me analyze my build performance. Initial build doesn't bother me, but having a slow incremental build is a productivity killer so that is my main concern.
Specs
Stats
stats.json
What I have tried
I have been scouring the internet for days attempting to fix this problem. As sad as it is, I have come up completely empty handed. This leads me to believe I am bound by some part of the build system that I cannot seem to find.
Essentially, I would just like to find my problem so I can begin to look for a solution.
Here is an (in-exhaustive list) of things I have tried.
node_modules
inresolve.moduleDirectories
as mentioned in resolve.root vs moduleDirectories #472css-loader
^0.14null-loader
for/\.tsx?$/
(this brought my initial build time down to 13s)null-loader
for/\.scss?$/
(no effect on initial build time and incremental time?)As of now, the bottleneck definitely is in the
tsx -> babel
pipeline. The question is what is it specifically?Config
I dumped the JSON of my config, and filled in portions for readability:
P.S.
Is there a way to get stats for incremental builds?
The text was updated successfully, but these errors were encountered: