Skip to content

[Bug]: import defer does not work as expected #12097

@chenjiahan

Description

@chenjiahan

System Info

@rspack/core v1.6.1

Details

After upgrading to @rspack/core v1.6.1, import defer is not working as expected; all modules that are imported with defer are imported at the top level:

Image

Reproduce link

web-infra-dev/rsbuild#6490

Reproduce Steps

  1. git checkout import_defer_1103
  2. pnpm i
  3. cd packages/core
  4. pnpm build

Metadata

Metadata

Assignees

Labels

teamThe issue/pr is created by the member of Rspack.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions