Skip to content

Commit

Permalink
[compiler:playground] Update babel.config.js
Browse files Browse the repository at this point in the history
Use new defaults

ghstack-source-id: d2da1df69db9f1b01578af6d52ea4a2613769f9b
Pull Request resolved: #29205
  • Loading branch information
poteto committed May 21, 2024
1 parent b759b71 commit 0f58454
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions compiler/apps/playground/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
],
],
};
};

0 comments on commit 0f58454

Please sign in to comment.