From 1828be2e2f8b103b426941d41485df01e177d0e4 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 18 Sep 2016 00:50:22 +0300 Subject: [PATCH] Clarify why we use find-cache-dir --- config/babel.dev.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/babel.dev.js b/config/babel.dev.js index ee7d4fdf6d..0113b84782 100644 --- a/config/babel.dev.js +++ b/config/babel.dev.js @@ -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'),