Skip to content

rspack compatibility #1694

@onigoetz

Description

@onigoetz

Hello,

I'm using this loader with both Webpack and Rspack, and it is working nicely.

However, when using it with Rspack, it requires installing Webpack, which I would like to avoid.

Would you be open to a PR that allows the use of Rspack or Webpack independently?

My idea is that when using a hook, when we get an instance of compiler, there is a compiler.webpack property (also in Rspack) with a full webpack export inside, which can avoid importing the webpack package itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions