feat: pass filename to the Babel transform#443
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR enables Babel plugins to identify source files by name during transformation. The Babel transform now forwards the filename from input options instead of always using an empty string, allowing plugins to conditionally enable processing for files matching specific patterns (e.g., ChangesBabel filename forwarding
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Resolves #442
Passes the file name from the transform options into the
filenamesetting of Babel.Added a test to check that it's received on the Babel plugin side.
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests