Commit 0be495fd authored by Dan Abramov's avatar Dan Abramov Committed by GitHub
Browse files

Clarify why we use find-cache-dir

parent d45f0c54
No related merge requests found
Showing with 5 additions and 2 deletions
+5 -2
......@@ -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'),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment