From 6ad408f248af3a1a2ee031acf8a00646429d0b42 Mon Sep 17 00:00:00 2001 From: Ade Viankakrisna Fadlil Date: Fri, 23 Jun 2017 02:59:06 +0700 Subject: [PATCH] turn on ascii_only for issue with emoji and regex --- packages/react-scripts/config/webpack.config.prod.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 5943c14502c..f7235ca5fae 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -290,6 +290,9 @@ module.exports = { }, output: { comments: false, + // Turned on because emoji and regex is not minified properly using default + // https://github.com/facebookincubator/create-react-app/issues/2488 + ascii_only: true, }, sourceMap: true, }),