Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vjpr opened this issue Jan 13, 2021 · 1 comment
Open

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

vjpr opened this issue Jan 13, 2021 · 1 comment

Comments

@vjpr
Copy link

vjpr commented Jan 13, 2021

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',
        },
      },
    ],
  ],
}
@kentcdodds
Copy link
Owner

Sure, feel free to open a PR. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants