Skip to content

Misleading error message when request is "" #3180

@IWANABETHATGUY

Description

@IWANABETHATGUY

System Info

system unrelated

Details

import {} from '';

rspack will throw error:

'should have context', crates/rspack_plugin_externals/src/plugin.rs:126:16

Reproduce link

No response

Reproduce Steps

  1. npm create @rspack/cli@latest
  2. change index.js to above
  3. pnpm build

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomersteamThe issue/pr is created by the member of Rspack.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions