kentcdodds / kentcdodds/babel-plugin-macros
Proposal: Allow macros to be defined in `.macro.mjs` files
Open
- Dominant language
- JavaScript
- Stars
- 2.6k
- Forks
- 138
- PR merge metrics
- No merged PRs in 30d
Description
Currently babel-plugin-macros requires macros to be defined in files that match `/[./]macro(\.c?js)?$/`. What if that was `/[./]macro(\.[cm]?js)?$/`?
Contributor guide
Research direction
Locate the macro filename matching logic and any existing coverage for accepted macro extensions. Check how current .macro.js and related patterns are handled. Done means the proposed .macro.mjs filename is accepted without changing existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100