Skip to content

Commit b06bb35

Browse files
authored
[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
1 parent 197d6a0 commit b06bb35

File tree

1 file changed

+4
-0
lines changed
  • compiler/packages/react-forgive/server/src/compiler

1 file changed

+4
-0
lines changed

compiler/packages/react-forgive/server/src/compiler/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ export async function compile({
3333
plugins: ['typescript', 'jsx'],
3434
},
3535
sourceType: 'module',
36+
configFile: false,
37+
babelrc: false,
3638
});
3739
if (ast == null) {
3840
return null;
@@ -48,6 +50,8 @@ export async function compile({
4850
plugins,
4951
sourceType: 'module',
5052
sourceFileName: file,
53+
configFile: false,
54+
babelrc: false,
5155
});
5256
if (result?.code == null) {
5357
throw new Error(

0 commit comments

Comments
 (0)