Skip to content

[Bug]: rspack does not seem to warn about missing exports, like webpack does #5967

@MagicDuck

Description

@MagicDuck

System Info

"@rspack/cli": "^0.5.7",
"@rspack/core": "^0.5.7",
"@rspack/plugin-react-refresh": "^0.5.7",

Details

First, thank you for this awesome tool. It's already speeding up our build immensely!
Just running into a minor issue.
When an export is missing/invalid, webpack will helpfully warn about it. rspack seems to be missing this functionality atm.
Would be a great helper to have that warning show up.

Example warn from webpack:
image

Reproduce link

No response

Reproduce Steps

simply have an import like:

a.js
-------
import foo, {something} from 'bar'

b.js
------
export const something = 42;
// note no default export

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions