wxt-dev/wxt

Automatic gathering of used files for `zip`

Open

#1,505 建立於 2025年3月7日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)TypeScript (511 fork)user submission
contribution welcomegood first issue

倉庫指標

Star
 (9,861 star)
PR 合併指標
 (平均合併 11天 22小時) (30 天內合併 51 個 PR)

描述

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"

貢獻者指南