From 2f74a8dbe998c9b65a14038e9aa693e8ce980eba Mon Sep 17 00:00:00 2001 From: dan Date: Sun, 17 Nov 2024 18:50:28 +0000 Subject: 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 --- metro.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'metro.config.js') 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', -- cgit 1.4.1