Define Properties Codemod
Introduction
This codemod replaces the define-properties npm package with a custom define function, reducing the reliance on external libraries and streamlining the code. It checks for the usage of the supportsDescriptors method and modifies the calls to define-properties accordingly, ensuring better performance and a smaller bundle size.
Before
javascript
After
javascript