kentcdodds / kentcdodds/babel-plugin-macros

Proposal: Allow macros to be defined in `.macro.mjs` files

Open
#188 13 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.