Skip to content

Commit

Permalink
fix: Default safari to MV2
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Oct 5, 2023
1 parent f58d69d commit 5807931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/utils/getInternalConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ export async function getInternalConfig(

const browser = mergedConfig.browser ?? 'chrome';
const manifestVersion =
mergedConfig.manifestVersion ?? (browser == 'firefox' ? 2 : 3);
mergedConfig.manifestVersion ??
(browser === 'firefox' || browser === 'safari' ? 2 : 3);
const mode =
mergedConfig.mode ?? (command === 'build' ? 'production' : 'development');
const env: ConfigEnv = { browser, command, manifestVersion, mode };
Expand Down

0 comments on commit 5807931

Please sign in to comment.