wxt-dev/wxt

Automatic gathering of used files for `zip`

Open

#1,505 opened on Mar 7, 2025

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (511 forks)user submission
contribution welcomegood first issue

Repository metrics

Stars
 (9,861 stars)
PR merge metrics
 (Avg merge 11h 6m) (11 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