Skip to content

Default export #6

@timdp

Description

@timdp

Sorry to be a pain with all these feature requests. :-)

I wrote rollup-load-plugins a while back to avoid having to do the import xyz from 'rollup-plugin-xyz' dance for every plugin. That code expects a default export, which seems to be the convention in Rollup land.

As you're well aware, rollup-plugin-analyzer exports { plugin } instead. In code that uses both, I therefore have to update the alias manually after calling loadPlugins(), which is of course a bit unsightly.

I see some other exports in the source code but those aren't documented in the readme. I don't suppose you'd be willing to use a default export for the plugin?

Alternatively, I'd be happy to agree on a good way for rollup-load-plugins to recognize the { plugin } export from your code. I'm a bit reluctant to inspect the exports object for every plugin though.

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