From ea7b829edbc1374f1c337ebd066d07bef4a5b9bb Mon Sep 17 00:00:00 2001 From: Darius Tall Date: Sat, 3 Aug 2019 18:11:55 -0500 Subject: [PATCH] update initial "jsx" value in tsconfig --- .../react-scripts/scripts/utils/verifyTypeScriptSetup.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js b/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js index a73b8c0db3b..ebd93d7b667 100644 --- a/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js +++ b/packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js @@ -125,9 +125,8 @@ function verifyTypeScriptSetup() { isolatedModules: { value: true, reason: 'implementation limitation' }, noEmit: { value: true }, jsx: { - parsedValue: ts.JsxEmit.Preserve, - value: 'preserve', - reason: 'JSX is compiled by Babel', + parsedValue: ts.JsxEmit.React, + suggested: 'react', }, paths: { value: undefined, reason: 'aliased imports are not supported' }, };