mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-06-19 17:53:49 +08:00
Clarify why we use find-cache-dir
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user