From 0f584548038335d3aa36d2dbc379cde664158eb3 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 21 May 2024 17:51:41 -0400 Subject: [PATCH] [compiler:playground] Update babel.config.js Use new defaults ghstack-source-id: d2da1df69db9f1b01578af6d52ea4a2613769f9b Pull Request resolved: https://github.com/facebook/react/pull/29205 --- compiler/apps/playground/babel.config.js | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/compiler/apps/playground/babel.config.js b/compiler/apps/playground/babel.config.js index 9b9b3cdf52558..900b52dd3028c 100644 --- a/compiler/apps/playground/babel.config.js +++ b/compiler/apps/playground/babel.config.js @@ -9,20 +9,13 @@ module.exports = function (api) { api.cache(true); return { presets: ["next/babel"], - overrides: [ - { - test: /^((?!node_modules).)*$/g, - plugins: [ - [ - "babel-plugin-react-compiler", - { - compilationMode: "infer", - panicThreshold: "NONE", - runtimeModule: "react-compiler-runtime", - }, - ], - ], - }, + plugins: [ + [ + "babel-plugin-react-compiler", + { + runtimeModule: "react-compiler-runtime", + }, + ], ], }; };