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

Enable babel-loader cache #629

Merged
merged 2 commits into from Aug 9, 2017

Conversation

Projects
None yet
3 participants
@javan
Member

javan commented Aug 9, 2017

You can also speed up babel-loader by as much as 2x by using the cacheDirectory option. This will cache transformations to the filesystem.

https://github.com/babel/babel-loader#babel-loader-is-slow

Shaves ~1s off Basecamp's compile time.

@renchap

This comment has been minimized.

Show comment
Hide comment
@renchap

renchap Aug 9, 2017

Contributor

Webpack's cache-loader (https://webpack.js.org/loaders/cache-loader/) could also help, and not only on the Babel step. Have you considered including it in the default setup ?

Contributor

renchap commented Aug 9, 2017

Webpack's cache-loader (https://webpack.js.org/loaders/cache-loader/) could also help, and not only on the Babel step. Have you considered including it in the default setup ?

@javan

This comment has been minimized.

Show comment
Hide comment
@javan

javan Aug 9, 2017

Member

TIL! These changes pave the way for more caching by sharing the cache_path. Let's start with babel-loader since it provides a significant boost and continue to explore additional options.

Member

javan commented Aug 9, 2017

TIL! These changes pave the way for more caching by sharing the cache_path. Let's start with babel-loader since it provides a significant boost and continue to explore additional options.

@guilleiguaran

Looking good 👍

@javan javan merged commit 90b8d10 into master Aug 9, 2017

2 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details

@javan javan deleted the babel-loader-cache branch Aug 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment