Upgrade React Compiler (take two) (#6460)

* Revert "Revert "React compiler beta and reenable rule (#5898)" (#6071)"

This reverts commit 7111e38cd4.

* Update the compiler

* Don't inline compiler runtime import
This commit is contained in:
dan
2024-11-17 18:50:28 +00:00
committed by GitHub
parent dd9a2f60dd
commit 2f74a8dbe9
7 changed files with 32 additions and 126 deletions
+2 -1
View File
@@ -38,9 +38,10 @@ cfg.transformer.getTransformOptions = async () => ({
inlineRequires: true,
nonInlinedRequires: [
// We can remove this option and rely on the default after
// https://github.com/facebook/metro/pull/1126 is released.
// https://github.com/facebook/metro/pull/1390 is released.
'React',
'react',
'react-compiler-runtime',
'react/jsx-dev-runtime',
'react/jsx-runtime',
'react-native',