Add an option to warn/list imported cjs modules
Open
Nobody has claimed this yet.
discussion
enhancement
- Dominant language
- TypeScript
- Stars
- 3.3k
- Forks
- 214
- Avg merge
- 13h 22m
- Merged PRs (30d)
- 18
Description
Describe the feature
Since it's not always clear if a given library is imported via esm or cjs (or even properly supports esm), it would be nice to have a command that deeply analyzes all imports and lists all cjs ones.
Reference: https://github.com/rollup/plugins/tree/master/packages/commonjs#inter-plugin-communication
Additional information
- Would you be willing to help implement this feature?
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
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 by reading the linked Rollup CommonJS inter-plugin communication reference and tracing how this repository exposes commands. Define the analysis boundary for deep imports and the output that identifies every CJS module; the feature is done when the command reliably lists all detected CJS imports.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rollup, typescript
- Domain
- devtools, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100