Babel
Use the Babel plugin when you are not using the Vite plugin path.
Install
Section titled “Install”npm install -D @usels/babel-plugin-legend-memoConfiguration
Section titled “Configuration”module.exports = { plugins: ['@usels/babel-plugin-legend-memo'],};- Prefer one transform path at a time (Babel or Vite) to keep behavior predictable.
- Ensure the transform runs before final JSX compilation.