Skip to content

[Bug]: Incorrect define type in StylusOptions #4840

@bardliu

Description

@bardliu

Version

npmPackages: @rsbuild/plugin-vue@1.0.7

https://github.com/webpack-contrib/stylus-loader#stylusoptions


define: [
  ["$development", process.env.NODE_ENV === "development"],
  ["rawVar", 42, true],
],


`define` is wrong

Details

StylusOptions is wrong, define should be Array like:

define?: [string, any, boolean?][];

Reproduce link

https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example/csb-64pvxj/draft/rough-framework

Reproduce Steps

check /project/workspace/rsbuild.config.mjs -> stylusOptions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions