A Babel plugin that optimizes React code by transforming common patterns like named imports from React, array destructuring from hooks, and React.createElement into more efficient output. The last released version is 0.0.4 (March 2019) and it is no longer maintained; the repository is archived as part of the Create React App monorepo. It only works with Babel 7 and is intended as an experimental optimization, not for production use.
npm install babel-plugin-optimize-reactNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and configure the plugin in Babel config.
Consider not using this plugin; it was experimental.
Upgrade to Babel 7.
Test thoroughly before using in production.
Run 'npm install --save-dev babel-plugin-optimize-react' and check spelling.
Use CommonJS require or configure Babel to handle ESM plugins.