nodejs / nodejs/userland-migrations
CJS → ESM: API migration - dynamic `require` → `createRequire`, `import()`, or `import.sync()`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 85
- Forks
- 55
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 9
Description
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked package-examples migration page and review its guidance for dynamic require during CJS-to-ESM migration. Determine which of createRequire, import(), or import.sync() the example should cover; done means the relevant migration documentation and example clearly address the selected API alternatives.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100