unplugin / unplugin/unplugin-auto-import
Add all exported entities from a module
Nobody has claimed this yet.
- 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
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
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 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