Skip to content

Babel

Use the Babel plugin when you are not using the Vite plugin path.

Terminal window
npm install -D @usels/babel-plugin-legend-memo
babel.config.js
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.