nuxt / nuxt/devtools

Add an option to warn/list imported cjs modules

Open
#719 1 comment 0 reactions 0 assignees View on GitHub

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.