-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Provide information to users about code size, speed, etc #5340
Comments
Reason as I brought this up as a babel-specific feature is that although webpack can access pre and post source size via github.com/webpack/webpack-sources code, it would be a weird integration on our side to add for just babel inside of webpack. I think a good initiative for us would be to some how just show some informative +% or -% in code size in general when changes are made, etc. |
Thanks for taking the time to write this down. I think preset-env is already a very good step in the right direction. But for heavy stuff like async-await that will not help for some time, so adding some mechanism to inform users about code size tradeoffs might indeed help, whether it's in Babel or in Webpack. |
Also would be cool to have util to compare code size with preset-env) vs preset-latest (preset-env with all plugins). People could see actual benefits of specifying targets and play with it's configuration to understand how each supported browser affects the bundle size. |
I think exposing the before/after per file would make sense. Let's explore that initially? I believe break downs by transform would be pretty costly, even if you did this in the background. Perhaps explore how much value users get out of the per file top-level before/after first?
There are a few different directions we could get more intelligent with this.
|
Hi you all here, if there's anybody still listening. It can run standalone or hook into external tools (like bundlers or test frameworks) to extract infos about how they use Babel. Webpack and Jest integrations are already available. Any feedback or idea would be extremely welcome. |
Twitter thread: https://twitter.com/TheLarkInn/status/832756703275855874
Goals (that I would want)
Summary: don't use certain features until native is fast enough or help Babel be faster in those ways.
Current
Code size: don't recall anything
Time to compile: Sebastian made #3659 a while ago (mostly undocumented), and the only time I've used it was in Babili babel/minify#91, babel/minify#93
cc @addyosmani, @TheLarkInn, @bmeurer?
The text was updated successfully, but these errors were encountered: