gopd Codemod
Introduction
This codemod replaces instances of the gopd library with native JavaScript functionality. It searches for typeof checks and calls made to gopd and transforms them into equivalent Object.getOwnPropertyDescriptor calls. This transformation helps in reducing dependencies, improving the performance of the codebase, and minimizing bundle sizes.
Before
javascript
After
javascript