From b06bb35ce9ca0cf283003a66db1aa079da93ad72 Mon Sep 17 00:00:00 2001 From: lauren Date: Thu, 24 Apr 2025 13:29:56 -0400 Subject: [PATCH] [forgive] Don't look up user babel configs (#33010) Projects with existing babel config files may confuse the LSP, so explictly opt out of looking them up. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33010). * #33012 * #33011 * __->__ #33010 --- compiler/packages/react-forgive/server/src/compiler/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/packages/react-forgive/server/src/compiler/index.ts b/compiler/packages/react-forgive/server/src/compiler/index.ts index 3723785cfb..fe192c6213 100644 --- a/compiler/packages/react-forgive/server/src/compiler/index.ts +++ b/compiler/packages/react-forgive/server/src/compiler/index.ts @@ -33,6 +33,8 @@ export async function compile({ plugins: ['typescript', 'jsx'], }, sourceType: 'module', + configFile: false, + babelrc: false, }); if (ast == null) { return null; @@ -48,6 +50,8 @@ export async function compile({ plugins, sourceType: 'module', sourceFileName: file, + configFile: false, + babelrc: false, }); if (result?.code == null) { throw new Error(