Skip to content

Commit

Permalink
Clarify why we use find-cache-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and feiqitian committed Oct 25, 2016
1 parent a77bbdf commit 1828be2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions config/babel.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ module.exports = {
babelrc: false,
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/react-scripts/
// directory for faster rebuilds.
cacheDirectory: findCacheDir({ name: 'react-scripts' }),
// directory for faster rebuilds. We use findCacheDir() because of:
// https://github.com/facebookincubator/create-react-app/issues/483
cacheDirectory: findCacheDir({
name: 'react-scripts'
}),
presets: [
// Latest stable ECMAScript features
require.resolve('babel-preset-latest'),
Expand Down

0 comments on commit 1828be2

Please sign in to comment.