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

feat: support named exports for wrapper components #28

Merged
merged 2 commits into from
Aug 4, 2023

Conversation

mattjennings
Copy link
Owner

@mattjennings mattjennings commented Aug 4, 2023

This adds support for a custom Wrapper when the component is a named export.

Via remark config:

{
  remarkPlugins: [
    [
      examples,
      {
        defaults: {
          Wrapper: ['some-package', 'CustomExample'] // -> import { CustomExample } from 'some-package'
        }
      }
    ]
  ]
}

Via inline config:

```svelte example Wrapper=["some-package", "CustomExample"]

```

@mattjennings mattjennings merged commit f6bb7f6 into main Aug 4, 2023
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant