babel-plugin-macros
babel-plugin-macros copied to clipboard
Add to docs that plugin config can also come from babel plugin config
https://github.com/kentcdodds/babel-plugin-macros/blob/master/other/docs/user.md#config
The following is valid:
babel.config.js
module.exports = {
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
plugins: [
[
'babel-plugin-macros',
{
twin: {
preset: 'styled-components',
},
},
],
],
}
Sure, feel free to open a PR. Thanks.