Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/wxt/src/core/utils/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,16 @@ export async function generateManifest(
);
}

if (
wxt.config.browser === "firefox" &&
!manifest.browser_specific_settings?.gecko?.id
) {
wxt.logger.warn(
"Firefox requires extension ID for MV3 and recommends it for MV2.\n" +
"For more details, see: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/browser_specific_settings"
Comment thread
PatrykKuniczak marked this conversation as resolved.
Outdated
);
}

addEntrypoints(manifest, entrypoints, buildOutput);

if (wxt.config.browser === 'firefox') {
Expand Down Expand Up @@ -162,6 +172,8 @@ export async function generateManifest(
"Manifest 'version' is missing. Either:\n1. Add a version in your <rootDir>/package.json\n2. Pass the version via the manifest option in your wxt.config.ts",
);
}

Comment thread
PatrykKuniczak marked this conversation as resolved.
Outdated


return {
manifest,
Expand Down
Loading