wxt-dev/wxt

Automatic gathering of used files for `zip`

开放

#1,505 创建于 2025年3月7日

 (3 条评论) (0 个反应) (0 位负责人)TypeScript (511 个派生)user submission
contribution welcomegood first issue

仓库指标

星标
 (9,861 个星标)
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"

贡献者指南