Skip to content

namedExport not working #2

@fschwalm

Description

@fschwalm

Hello!
I'm trying to use named exports and it's not working.

export { ReactComponent as Example } from './example.svg';
results in:
src/components/example.svg import { createElement } from "react";

It only works if i use:
export { default as Example } from './example.svg';

I have tried with the following config but it's not worked too.
svgrPlugin({namedExport: 'ReactComponent'}),

Any suggestion?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions