Skip to content
GitLab
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
713eec41
Unverified
Commit
713eec41
authored
7 years ago
by
Joe Haddad
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Babel 7 disabled code highlighting by default
(#3849)
parent
f0719866
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/react-scripts/config/webpack.config.dev.js
+2
-0
packages/react-scripts/config/webpack.config.dev.js
packages/react-scripts/config/webpack.config.prod.js
+2
-0
packages/react-scripts/config/webpack.config.prod.js
with
4 additions
and
0 deletions
+4
-0
packages/react-scripts/config/webpack.config.dev.js
+
2
-
0
View file @
713eec41
...
@@ -194,6 +194,7 @@ module.exports = {
...
@@ -194,6 +194,7 @@ module.exports = {
// It enables caching results in ./node_modules/.cache/babel-loader/
// It enables caching results in ./node_modules/.cache/babel-loader/
// directory for faster rebuilds.
// directory for faster rebuilds.
cacheDirectory
:
true
,
cacheDirectory
:
true
,
highlightCode
:
true
,
},
},
},
},
],
],
...
@@ -215,6 +216,7 @@ module.exports = {
...
@@ -215,6 +216,7 @@ module.exports = {
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
],
],
cacheDirectory
:
true
,
cacheDirectory
:
true
,
highlightCode
:
true
,
},
},
},
},
],
],
...
...
This diff is collapsed.
Click to expand it.
packages/react-scripts/config/webpack.config.prod.js
+
2
-
0
View file @
713eec41
...
@@ -199,6 +199,7 @@ module.exports = {
...
@@ -199,6 +199,7 @@ module.exports = {
presets
:
[
require
.
resolve
(
'
babel-preset-react-app
'
)],
presets
:
[
require
.
resolve
(
'
babel-preset-react-app
'
)],
// @remove-on-eject-end
// @remove-on-eject-end
compact
:
true
,
compact
:
true
,
highlightCode
:
true
,
},
},
},
},
],
],
...
@@ -220,6 +221,7 @@ module.exports = {
...
@@ -220,6 +221,7 @@ module.exports = {
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
require
.
resolve
(
'
babel-preset-react-app/dependencies
'
),
],
],
cacheDirectory
:
true
,
cacheDirectory
:
true
,
highlightCode
:
true
,
},
},
},
},
],
],
...
...
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