Skip to content

[Bug]: Missing export {} #5553

@sxzz

Description

@sxzz

Reproduction link or steps

https://repl.rolldown.rs/#eNptjkEKwzAMBL8idEkLIQ/wW3IJtdymOFJw5CZg/PfKpLSXXsSudhm2YEBXcGZPx6Bb04zu53u8md1nfcDluEIZuY5MxypJoZi0AqHTlKn2mCRGLzsPN+Ew34fnl/cnOckflKcw5WjIkQHWOGmQtDjoWDx1fXtK1jWrOxsALZ/MdrQtZ6HabYOqDXkZ2SC0KdY3iLxLiQ==

What is expected?

Preserve export {}

What is actually happening?

No export {}

System Info

N/A

Any additional comments?

Potentially breaks ESM detection of Node.js

Without export {}

with (x) {
^

ReferenceError: x is not defined

With export {}

with (x) {
^^^^

SyntaxError: Strict mode code may not include a with statement

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