wxt 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +13 -8
- package/dist/index.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -7
- package/dist/index.js.map +1 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -502,7 +502,7 @@ interface ExcludableEntrypoint {
|
|
|
502
502
|
* Manifest customization available in the `wxt.config.ts` file. You cannot configure entrypoints
|
|
503
503
|
* here, they are configured inline.
|
|
504
504
|
*/
|
|
505
|
-
type UserManifest = Partial<Omit<Manifest.WebExtensionManifest, '
|
|
505
|
+
type UserManifest = Partial<Omit<Manifest.WebExtensionManifest, 'background' | 'chrome_url_overrides' | 'devtools_page' | 'manifest_version' | 'options_page' | 'options_ui' | 'sandbox' | 'sidepanel' | 'sidebar_action'>>;
|
|
506
506
|
type UserManifestFn = (env: ConfigEnv) => UserManifest | Promise<UserManifest>;
|
|
507
507
|
interface ConfigEnv {
|
|
508
508
|
mode: string;
|
|
@@ -580,7 +580,7 @@ type EntrypointGroup = Entrypoint | Entrypoint[];
|
|
|
580
580
|
*/
|
|
581
581
|
declare function clean(root?: string): Promise<void>;
|
|
582
582
|
|
|
583
|
-
var version = "0.8.
|
|
583
|
+
var version = "0.8.4";
|
|
584
584
|
|
|
585
585
|
declare function defineConfig(config: UserConfig): UserConfig;
|
|
586
586
|
|
package/dist/index.d.ts
CHANGED
|
@@ -502,7 +502,7 @@ interface ExcludableEntrypoint {
|
|
|
502
502
|
* Manifest customization available in the `wxt.config.ts` file. You cannot configure entrypoints
|
|
503
503
|
* here, they are configured inline.
|
|
504
504
|
*/
|
|
505
|
-
type UserManifest = Partial<Omit<Manifest.WebExtensionManifest, '
|
|
505
|
+
type UserManifest = Partial<Omit<Manifest.WebExtensionManifest, 'background' | 'chrome_url_overrides' | 'devtools_page' | 'manifest_version' | 'options_page' | 'options_ui' | 'sandbox' | 'sidepanel' | 'sidebar_action'>>;
|
|
506
506
|
type UserManifestFn = (env: ConfigEnv) => UserManifest | Promise<UserManifest>;
|
|
507
507
|
interface ConfigEnv {
|
|
508
508
|
mode: string;
|
|
@@ -580,7 +580,7 @@ type EntrypointGroup = Entrypoint | Entrypoint[];
|
|
|
580
580
|
*/
|
|
581
581
|
declare function clean(root?: string): Promise<void>;
|
|
582
582
|
|
|
583
|
-
var version = "0.8.
|
|
583
|
+
var version = "0.8.4";
|
|
584
584
|
|
|
585
585
|
declare function defineConfig(config: UserConfig): UserConfig;
|
|
586
586
|
|
package/dist/index.js
CHANGED
|
@@ -2740,18 +2740,23 @@ function addEntrypoints(manifest, entrypoints, buildOutput, config) {
|
|
|
2740
2740
|
config.outDir,
|
|
2741
2741
|
".html"
|
|
2742
2742
|
);
|
|
2743
|
-
const options2 = {
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2743
|
+
const options2 = {};
|
|
2744
|
+
if (popup.options.defaultIcon)
|
|
2745
|
+
options2.default_icon = popup.options.defaultIcon;
|
|
2746
|
+
if (popup.options.defaultTitle)
|
|
2747
|
+
options2.default_title = popup.options.defaultTitle;
|
|
2748
|
+
if (popup.options.browserStyle)
|
|
2749
|
+
options2.browser_style = popup.options.browserStyle;
|
|
2748
2750
|
if (manifest.manifest_version === 3) {
|
|
2749
2751
|
manifest.action = {
|
|
2752
|
+
...manifest.action ?? {},
|
|
2750
2753
|
...options2,
|
|
2751
2754
|
default_popup
|
|
2752
2755
|
};
|
|
2753
2756
|
} else {
|
|
2754
|
-
|
|
2757
|
+
const key = popup.options.mv2Key ?? "browser_action";
|
|
2758
|
+
manifest[key] = {
|
|
2759
|
+
...manifest[key] ?? {},
|
|
2755
2760
|
...options2,
|
|
2756
2761
|
default_popup
|
|
2757
2762
|
};
|
|
@@ -4621,7 +4626,7 @@ async function clean(root = process.cwd()) {
|
|
|
4621
4626
|
}
|
|
4622
4627
|
|
|
4623
4628
|
// package.json
|
|
4624
|
-
var version2 = "0.8.
|
|
4629
|
+
var version2 = "0.8.4";
|
|
4625
4630
|
|
|
4626
4631
|
// src/core/utils/defineConfig.ts
|
|
4627
4632
|
function defineConfig(config) {
|