unplugin / unplugin/unplugin-auto-import

Add all exported entities from a module

Open
#533 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
3.8k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

Clear and concise description of the problem

Currently to auto-import all entities from a module I use acorn to get all exports. Couldn't find in the documentation an example of automatic imports of all exported entities from a module

Suggested solution

Instead of manual or scripted listing of all imports needed, add for example

imports: [{ 'module-name': '*'}]

to auto import of all the exported entities from a module

Alternative

No response

Additional context

No response

Validations

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 reviewing the existing auto-import configuration and how module exports are handled. Verify whether imports: [{ 'module-name': '*' }] can import every exported entity without manual listing, then add coverage and documentation for the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.