@extport/wxt
WXT module for extensions publishing through extport: one config block wires up store publishing metadata, license/analytics identity injection, manifest permission checks, and Safari’s Xcode project generation.
Install
Section titled “Install”pnpm add -D @extport/wxtpnpm add @extport/sdk # needed if you enable analytics or licensingexport default defineConfig({ modules: ['@extport/wxt'], manifest: { permissions: ['storage'], // required when extport.extension is set }, extport: { extension: 'ext_…', // your extension's extport id analytics: true, // optional: daily anonymous usage ping safari: { // optional: build a Safari App Store target appCategory: 'public.app-category.productivity', bundleIdentifier: 'com.example.my-extension', developmentTeam: 'ABCDE12345', }, },})What it does
Section titled “What it does”extension— syncs the id intoextport.config.json(the static fileextportCLI and extport-dev/actions read), injectsglobalThis.__EXTPORT__.extensionIdinto every entrypoint so@extport/sdkresolves identity with zero hardcoding, and verifies at build time thatmanifest.permissionsincludes'storage'(used by@extport/sdkfor both licensing and analytics).analytics: true— attaches the daily ping to your background entrypoint and adds Firefox’sdata_collection_permissions(technicalAndInteraction) declaration to the manifest. Explicit opt-in; nothing is collected without it. Requires@extport/sdkas a dependency.safari: { … }— onwxt build -b safari/wxt zip -b safari, converts the build output into a signed-ready Xcode project (projectType:'macos' | 'ios' | 'both', default'both', with a built-in setup page for macOS, iOS, and iPadOS) forextport safari-buildto compile and upload.
Requirements
Section titled “Requirements”wxt is a peer dependency (>=0.20). The 0.20.x line is what the module is battle-tested against; wxt 0.21.x currently ships an experimental Vite 8/Rolldown pipeline with known build issues independent of this module.
Docs: extport.dev/docs
License
Section titled “License”MIT