Skip to content

Remove webpack from peerDependencies #1567

Closed
@feedm3

Description

@feedm3

Modification Proposal

We are using css-loader with rsbuild. This means, we don't use webpack directly anymore / don't have it installed. css-loader still works fine with the setup, but when doing a yarn install, yarn complains about not having webpack listed in our dependencies.

➤ YN0002: │ my-awesome-rsbuild-webapp doesn't provide webpack (p1ea2d), requested by css-loader.

As css-loader doesn't use webpack directly, I think it's ok to just remove it from the peerDependencies array.

Expected Behavior / Situation

The loader will behave the same, but in the context of rsbuild won't add a warning in the install logs.

Actual Behavior / Situation

A warning in the install logs:

➤ YN0002: │ my-awesome-rsbuild-webapp doesn't provide webpack (p1ea2d), requested by css-loader.

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