kentcdodds / kentcdodds/babel-plugin-macros
Add to docs that plugin config can also come from babel plugin config
- 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
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