Skip to content

[Bug]: HMR patch file contains require as-is #5584

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

#5585

What is expected?

require("./foo.cjs") is replaced with __rolldown_runtime__.loadExports("./foo.cjs").

What is actually happening?

require("./foo.cjs") is output as-is.

System Info

#5585

Any additional comments?

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions