Ooo there's so many good ones for build speed not listed!


Limit usage of resolver capabilities (alias, modules, extensions)


Use /* webpackMode: "lazy-once" */ for import(`./some/${expr}`) in dev mode.


Use stats: errors-only if you don't need console feedbackhttps://twitter.com/addyosmani/status/1148479395692048384 …
-
Show this thread
-
Sean Thomas Larkin 廖肖恩 Retweeted Sean Thomas Larkin 廖肖恩
Let's go full round with the tips!!
#javascript#webpack@webpackhttps://twitter.com/TheLarkInn/status/1149466691627130881?s=19 …Sean Thomas Larkin 廖肖恩 added,
Sean Thomas Larkin 廖肖恩 @TheLarkInnReplying to @addyosmaniHave you been getting spammed about build speed questions? Also:

Use latest @webpack version

Profile with @jantimon's cpuprofile-webpack-plugin

Try out webpack v5 alpha to see the new build perf. improvements with persistent caching!
https://twitter.com/TheLarkInn/status/1149466116160286725?s=19 …1 reply 3 retweets 9 likesShow this thread -
For errors-only, I just found this researching a tool called flamebearer. See how when stats are printed to console in their string form, it takes 24% of the build time. Trade-off: feedback is useful for diagnostic modes like debugging bundle size etc.pic.twitter.com/u4Jbrf4lnQ
1 reply 0 retweets 10 likesShow this thread -
-
Replying to @TheLarkInn
intl.js, not impl.js - I’m guessing this is ICU?
2 replies 0 retweets 1 like
It’s not quite ICU, it’s the old self-hosted implementation of the Intl.* APIs. We got rid of it in modern versions of @v8js: https://v8.dev/blog/intl#moving-away-from-self-hosted-js … cc @_gsathya
-
-
Replying to @mathias @bitandbang and
Should probably use (and reuse) Intl.DateTimeFormat objects for better performance
0 replies 0 retweets 2 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
Avoid PROD tasks in DEV (e.g ExtractTextPlugin)
Offload costly loaders to workers w/thread-loader
Move code rarely changed to another compilation w/DllPlugin
Source Maps: use cheap-module-eval-source-map
