Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cli): support ESM-based codemods #1282

Merged
merged 6 commits into from
Aug 27, 2024
Merged

feat(cli): support ESM-based codemods #1282

merged 6 commits into from
Aug 27, 2024

Conversation

r4zendev
Copy link
Contributor

  • Added support for ESM-based codemods via global boolean esm flag to explicitly make our internal bundler build with appropriate target
  • Added support for .mts, .mjs extension files
  • codemod init now builds the output file also using mentioned logic
  • Improved safe arguments logic for standalone codemods. Fixes a crucial bug that's been there for standalone executions
  • Improved transformer logic to support both ESM and CJS and also caching loaded modules to maintain performance
  • Updated docs

@r4zendev r4zendev self-assigned this Aug 27, 2024
Copy link

vercel bot commented Aug 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
codemod ⬜️ Ignored (Inspect) Visit Preview Aug 27, 2024 1:43pm

@r4zendev r4zendev merged commit daea47d into main Aug 27, 2024
13 checks passed
@r4zendev r4zendev deleted the mok/esm branch August 27, 2024 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants