Math Cbrt Codemod
Introduction
This codemod replaces the usage of the math.cbrt/polyfill
with the built-in Math.cbrt
function, enhancing performance by eliminating unnecessary dependencies and reducing the bundle size.
Before
import { cbrt } from 'math.cbrt/polyfill';const result = cbrt(27);
After
const result = Math.cbrt(27);
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community