mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 20:51:12 +08:00
Babel 7 disabled code highlighting by default 😢 (#3849)
This commit is contained in:
@@ -194,6 +194,7 @@ module.exports = {
|
||||
// It enables caching results in ./node_modules/.cache/babel-loader/
|
||||
// directory for faster rebuilds.
|
||||
cacheDirectory: true,
|
||||
highlightCode: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -215,6 +216,7 @@ module.exports = {
|
||||
require.resolve('babel-preset-react-app/dependencies'),
|
||||
],
|
||||
cacheDirectory: true,
|
||||
highlightCode: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -199,6 +199,7 @@ module.exports = {
|
||||
presets: [require.resolve('babel-preset-react-app')],
|
||||
// @remove-on-eject-end
|
||||
compact: true,
|
||||
highlightCode: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -220,6 +221,7 @@ module.exports = {
|
||||
require.resolve('babel-preset-react-app/dependencies'),
|
||||
],
|
||||
cacheDirectory: true,
|
||||
highlightCode: true,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user