Skip to content
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
Merged

Enable babel-loader cache #629

merged 2 commits into from Aug 9, 2017

Conversation

@javan
Copy link
Member

@javan 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
Copy link
Contributor

@renchap 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
Copy link
Member Author

@javan 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.

Copy link
Member

@guilleiguaran guilleiguaran left a comment

Looking good 👍

@javan javan force-pushed the babel-loader-cache branch from f6c6e3c to c22111e Aug 9, 2017
@javan javan merged commit 90b8d10 into master Aug 9, 2017
2 checks passed
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
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.