unplugin / unplugin/unplugin-isolated-decl

`entryFileNames` as option

Open
#75 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.