[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
lauren committed
Apr 24, 2025 at 13:29 UTC
b06bb35ce9ca0cf283003a66db1aa079da93ad72
1 file changed
+4
compiler/packages/react-forgive/server/src/compiler/index.ts
+4
@@ -33,6 +33,8 @@ export async function compile({
33
plugins: ['typescript', 'jsx'],
34
},
35
sourceType: 'module',
36
+ configFile: false,
37
+ babelrc: false,
38
});
39
if (ast == null) {
40
return null;
@@ -48,6 +50,8 @@ export async function compile({
50
plugins,
51
sourceType: 'module',
52
sourceFileName: file,
53
+ configFile: false,
54
+ babelrc: false,
55
});
56
if (result?.code == null) {
57
throw new Error(