Skip to content

Commit 7a0fb4c

Browse files
authored
Use Babel compact mode in production (#2389)
1 parent 1f91848 commit 7a0fb4c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-scripts/config/webpack.config.prod.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,13 @@ module.exports = {
186186
test: /\.(js|jsx)$/,
187187
include: paths.appSrc,
188188
loader: require.resolve('babel-loader'),
189-
// @remove-on-eject-begin
190189
options: {
190+
// @remove-on-eject-begin
191191
babelrc: false,
192192
presets: [require.resolve('babel-preset-react-app')],
193+
// @remove-on-eject-end
194+
compact: true,
193195
},
194-
// @remove-on-eject-end
195196
},
196197
// The notation here is somewhat confusing.
197198
// "postcss" loader applies autoprefixer to our CSS.

0 commit comments

Comments
 (0)