Skip to content

rspack compatibility #1694

Open
Open

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.

Activity

  1. johnnyreilly commented on May 19, 2026

    @johnnyreilly
    Member

    I'd be happy to look at a PR. I'm not sure if this is something we'd want to explicitly support or not. If it requires very little change to the package then maybe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions