about summary refs log tree commit diff
path: root/metro.config.js
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-17 18:50:28 +0000
committerGitHub <noreply@github.com>2024-11-17 18:50:28 +0000
commit2f74a8dbe998c9b65a14038e9aa693e8ce980eba (patch)
tree45888d5f39da0f223ae75e1bb517f2443ad75fc0 /metro.config.js
parentdd9a2f60ddee978b82d1310b0eaf1ba595b0b2aa (diff)
downloadvoidsky-2f74a8dbe998c9b65a14038e9aa693e8ce980eba.tar.zst
Upgrade React Compiler (take two) (#6460)
* Revert "Revert "React compiler beta and reenable rule (#5898)" (#6071)"

This reverts commit 7111e38cd48c1c7e2b35ae978708fcb7a60a5dd7.

* Update the compiler

* Don't inline compiler runtime import
Diffstat (limited to 'metro.config.js')
-rw-r--r--metro.config.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/metro.config.js b/metro.config.js
index ad0a54fc8..e6a6676f0 100644
--- a/metro.config.js
+++ b/metro.config.js
@@ -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',