Skip to content

Rolldown behaves differently from node for import('cjs-module') #4289

@sxzz

Description

@sxzz

Reproduction link or steps

https://stackblitz.com/edit/github-tavgmypk?file=src%2Findex.js

  • pnpm run build && node dist/index.js
  • Got { parse: undefined }

What is expected?

Without bundle:

  • node src/index.js
  • Got { parse: [Function: parse$1] }

What is actually happening?

undefined parse

System Info

N/A

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions