Skip to content

[Bug]: Browserslist target cannot parse shared config #10822

Open
@honzahruby

Description

@honzahruby

System Info

rspack 1.4.0

Details

After upgrading rspack from 1.3.11 to 1.4.0, we're getting this browserslist error:

Error: No browserslist config found to handle the 'browserslist' target.

We have a monorepo setup that exports a shared config as @company/browserslist-config/b2b.

We use the browserslist field in the app package.json to use the shared setting

"browserslist": [
    "extends @company/browserslist-config/b2b"
],

and rspack config simply specifies

target: 'browserslist'

This worked fine in the previous versions of rspack but stopped working after the upgrade to 1.4

Reproduce link

No response

Reproduce Steps

  1. create a project using rspack 1.4.0
  2. set target: 'browserslist' in rspack config
  3. use extends in browserslist query

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions