unplugin / unplugin/unplugin-isolated-decl
`entryFileNames` as option
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 193
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Clear and concise description of the problem
Would it be possible to add an entryFileNames option to override the bundler configuration?
I'd like to generate .d.ts files with a different format than .js files.
I can't currently build a library with vite by specifying the output fileName because I have to set the entryFileNames option in rollup output.
Suggested solution
Pass entryFileNames as plugin option:
isolatedDeclPlugin({ entryFileNames: '[name].[ext]' })
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
No file or test is named in the issue. Start by tracing how isolatedDeclPlugin options reach the Rollup output configuration, then check how the existing output fileName is handled. Done means the plugin accepts entryFileNames, passes it through to the bundler, and supports the requested .d.ts naming format without changing .js output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100