kentcdodds / kentcdodds/babel-plugin-macros

Add to docs that plugin config can also come from babel plugin config

Open
#166 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.6k
Forks
138
PR merge metrics
No merged PRs in 30d

Description

```
https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md#config
```

The following is valid:

_babel.config.js_

```js
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
plugins: [
[
'babel-plugin-macros',
{
twin: {
preset: 'styled-components',
},
},
],
],
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the Config section in other/docs/user.md, linked in the issue, and compare it with the babel.config.js example provided here. Update the documentation to explain that plugin configuration can be supplied through the Babel plugin config, including the shown twin preset example; the docs should clearly describe this valid configuration path.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.