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
🏗️🚀 Babel compile with sourcemaps #27447
🏗️🚀 Babel compile with sourcemaps #27447
Conversation
Hey @erwinmombay, these files were changed:
|
d6966a4
to
9b7c9d6
Compare
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 like this PR! Thanks for working on it.
However, it substantially increases the running time of gulp dist
.
Macbook:
With #27426: 6:30
With this PR: 8:55
Travis:
With #27426: 5:45
With this PR: 7:25
Maybe addressing #27447 (comment) will improve things?
I tried moving all the initialization code out of I think we should make just the sourcemaps fixes in this PR, and independently try out |
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 think we should make just the sourcemaps fixes in this PR, and independently try out gulp-babel and gulp-cache in two separate future PRs to see what the time differences are for each of them. WDYT?
gulp-babel
is necessary to support sourcemaps. It's essentially a wrapper around babel.transformFile
with sourcemap soupport.
But as I used gulp-cache
more, I started to dislike it. I'll remove.
Fixes the sourcemap generation for our pre-closure babel compile. Aditionally, replaces our in-memory cache with a persistent disk cache, so re-compiling will be even faster: ```bash $ npx gulp dist --core_runtime_only --noextensions ...snip... [00:10:11] Finished 'dist' after 1.08 min $ npx gulp dist --core_runtime_only --noextensions ...snip... [00:11:03] Finished 'dist' after 26 s ```
It was giving sooo many problems.
9b7c9d6
to
1d6565c
Compare
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.
gulp-babel is necessary to support sourcemaps. It's essentially a wrapper around babel.transformFile with sourcemap soupport.
Gotcha. Definitely cleaner now, and it's back to being fast. LGTM after you update the PR description.
|
Sheesh. Sorry, and thank you! |
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.
Latest changes LGTM. 👍
This reverts commit bcde1ec.
Fixes the sourcemap generation for our pre-closure babel compile.
Additionally, replaces our in-memory cache with a persistent disk cache, so re-compiling will be even faster: