Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
0be495fd
Commit
0be495fd
authored
8 years ago
by
Dan Abramov
Committed by
GitHub
8 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Clarify why we use find-cache-dir
parent
d45f0c54
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/babel.dev.js
+5
-2
config/babel.dev.js
with
5 additions
and
2 deletions
+5
-2
config/babel.dev.js
+
5
-
2
View file @
0be495fd
...
...
@@ -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
'
),
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets