{"library":"babel-plugin-react-compiler","type":"library","category":null,"description":"The `babel-plugin-react-compiler` package, currently at version `1.0.0`, is a core component for integrating the React Compiler (codenamed \"Forget\") into JavaScript projects. Its primary function is to automatically memoize React components and hook calls at compile-time, aiming to eliminate unnecessary re-renders and significantly improve application performance without requiring manual `useMemo` or `useCallback` optimizations. This plugin is developed as part of the broader React ecosystem by Facebook/Meta, closely tied to the React core libraries, particularly with the release of React 19. While the plugin itself is at an initial `1.0.0` stable release, the underlying React Compiler is an actively evolving project, receiving continuous updates and refinements alongside major React versions. Its release cadence is therefore coupled with the React framework's development cycle, which often sees patch releases for bug fixes and performance improvements, with feature updates aligning with major React releases. This compiler is a key differentiator for React, promising \"zero-cost\" memoization for developers.","language":"javascript","status":"active","version":"1.0.0","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-react-compiler","imports":["plugins: ['babel-plugin-react-compiler']","plugins: [['babel-plugin-react-compiler', { /* options */ }]]","import { defineConfig } from 'vite';\nimport react from '@vitejs/plugin-react';\n\nexport default defineConfig({\n  plugins: [\n    react({\n      babel: {\n        plugins: ['babel-plugin-react-compiler'], // must run first!\n      },\n    }),\n  ],\n});"]},{"cmd":"yarn add babel-plugin-react-compiler","imports":[]},{"cmd":"pnpm add babel-plugin-react-compiler","imports":[]}],"homepage":"https://react.dev","github":"https://github.com/facebook/react","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-react-compiler","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-react-compiler/compatibility"}}