E

e18e/@e18e/define-properties

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

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

Ready to contribute?

Build your own codemod and share it with the community.