Automatic gathering of used files for `zip`
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 564
- PR merge metrics
- No merged PRs in 30d
Description
Feature Request
I added the extension as a child to another project, kind of like a monorepo. The problem is that when I zip for Firefox it only includes the source files for the extension, but not files that the extension imports from the parent (or sibling) project. A possible way to do this might be; since Vite/Rollup should be aware of which files actually end up in the compiled output, zip could follow the paths and add those files.
Is your feature request related to a bug?
"N/A"
What are the alternatives?
Adding the files manually via defineConfig({ zip: {} }) which is very tedious and doesn't scale.
Additional context
"N/A"
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 tracing the zip configuration and the Vite/Rollup build output to determine where packaged files are selected. The issue names no files or tests; done should mean that files imported from parent or sibling projects are automatically included in Firefox zip output without manual configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vite
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100