From 3ad960a3c3cc957478c8dbd61bf4a25b22f9bfe4 Mon Sep 17 00:00:00 2001 From: Juan Tejada Date: Wed, 15 Sep 2021 15:58:04 -0400 Subject: [PATCH] Remove errorRecovery option --- .../src/hooks/parseHookNames/parseSourceAndMetadata.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-devtools-shared/src/hooks/parseHookNames/parseSourceAndMetadata.js b/packages/react-devtools-shared/src/hooks/parseHookNames/parseSourceAndMetadata.js index e9425b47b4492..6f87b351a014a 100644 --- a/packages/react-devtools-shared/src/hooks/parseHookNames/parseSourceAndMetadata.js +++ b/packages/react-devtools-shared/src/hooks/parseHookNames/parseSourceAndMetadata.js @@ -407,7 +407,6 @@ function parseSourceAST( '[@babel/parser] parse(originalSourceCode)', () => parse(originalSourceCode, { - errorRecovery: true, sourceType: 'unambiguous', plugins: ['jsx', plugin], }),