wxt 0.15.0 → 0.15.1
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/{chunk-HSXPP3ZS.js → chunk-T57ALCJ4.js} +1 -1
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +16 -1
- package/dist/{external-jLnyv431.d.cts → external-2QTHXYDU.d.cts} +27 -0
- package/dist/{external-jLnyv431.d.ts → external-2QTHXYDU.d.ts} +27 -0
- package/dist/index.cjs +16 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +16 -1
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +3 -3
package/dist/cli.d.ts
ADDED
package/dist/cli.js
CHANGED
|
@@ -5,7 +5,7 @@ import "./chunk-73I7FAJU.js";
|
|
|
5
5
|
import cac from "cac";
|
|
6
6
|
|
|
7
7
|
// package.json
|
|
8
|
-
var version = "0.15.
|
|
8
|
+
var version = "0.15.1";
|
|
9
9
|
|
|
10
10
|
// src/core/utils/fs.ts
|
|
11
11
|
import fs from "fs-extra";
|
|
@@ -2779,6 +2779,7 @@ function createWslRunner() {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
|
|
2781
2781
|
// src/core/runners/web-ext.ts
|
|
2782
|
+
import defu4 from "defu";
|
|
2782
2783
|
function createWebExtRunner() {
|
|
2783
2784
|
let runner;
|
|
2784
2785
|
return {
|
|
@@ -2809,6 +2810,10 @@ function createWebExtRunner() {
|
|
|
2809
2810
|
} : {
|
|
2810
2811
|
chromiumBinary: wxtUserConfig?.binaries?.[config.browser],
|
|
2811
2812
|
chromiumProfile: wxtUserConfig?.chromiumProfile,
|
|
2813
|
+
chromiumPref: defu4(
|
|
2814
|
+
wxtUserConfig?.chromiumPref,
|
|
2815
|
+
DEFAULT_CHROMIUM_PREFS
|
|
2816
|
+
),
|
|
2812
2817
|
args: wxtUserConfig?.chromiumArgs
|
|
2813
2818
|
}
|
|
2814
2819
|
};
|
|
@@ -2838,6 +2843,16 @@ function createWebExtRunner() {
|
|
|
2838
2843
|
}
|
|
2839
2844
|
var WARN_LOG_LEVEL = 40;
|
|
2840
2845
|
var ERROR_LOG_LEVEL = 50;
|
|
2846
|
+
var DEFAULT_CHROMIUM_PREFS = {
|
|
2847
|
+
devtools: {
|
|
2848
|
+
synced_preferences_sync_disabled: {
|
|
2849
|
+
// Remove content scripts from sourcemap debugger ignore list so stack traces
|
|
2850
|
+
// and log locations show up properly, see:
|
|
2851
|
+
// https://github.com/wxt-dev/wxt/issues/236#issuecomment-1915364520
|
|
2852
|
+
skipContentScripts: false
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2855
|
+
};
|
|
2841
2856
|
|
|
2842
2857
|
// src/core/runners/safari.ts
|
|
2843
2858
|
import { relative as relative8 } from "node:path";
|
|
@@ -688,6 +688,33 @@ interface ExtensionRunnerConfig {
|
|
|
688
688
|
* @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#chromium-profile
|
|
689
689
|
*/
|
|
690
690
|
chromiumProfile?: string;
|
|
691
|
+
/**
|
|
692
|
+
* An map of chrome preferences from https://chromium.googlesource.com/chromium/src/+/main/chrome/common/pref_names.h
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
* // change your downloads directory
|
|
696
|
+
* {
|
|
697
|
+
* download: {
|
|
698
|
+
* default_directory: "/my/custom/dir",
|
|
699
|
+
* },
|
|
700
|
+
* }
|
|
701
|
+
*
|
|
702
|
+
* @default
|
|
703
|
+
* // Enable dev mode and allow content script sourcemaps
|
|
704
|
+
* {
|
|
705
|
+
* devtools: {
|
|
706
|
+
* synced_preferences_sync_disabled: {
|
|
707
|
+
* skipContentScripts: false,
|
|
708
|
+
* },
|
|
709
|
+
* }
|
|
710
|
+
* extensions: {
|
|
711
|
+
* ui: {
|
|
712
|
+
* developer_mode: true,
|
|
713
|
+
* },
|
|
714
|
+
* }
|
|
715
|
+
* }
|
|
716
|
+
*/
|
|
717
|
+
chromiumPref?: string;
|
|
691
718
|
/**
|
|
692
719
|
* @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#pref
|
|
693
720
|
*/
|
|
@@ -688,6 +688,33 @@ interface ExtensionRunnerConfig {
|
|
|
688
688
|
* @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#chromium-profile
|
|
689
689
|
*/
|
|
690
690
|
chromiumProfile?: string;
|
|
691
|
+
/**
|
|
692
|
+
* An map of chrome preferences from https://chromium.googlesource.com/chromium/src/+/main/chrome/common/pref_names.h
|
|
693
|
+
*
|
|
694
|
+
* @example
|
|
695
|
+
* // change your downloads directory
|
|
696
|
+
* {
|
|
697
|
+
* download: {
|
|
698
|
+
* default_directory: "/my/custom/dir",
|
|
699
|
+
* },
|
|
700
|
+
* }
|
|
701
|
+
*
|
|
702
|
+
* @default
|
|
703
|
+
* // Enable dev mode and allow content script sourcemaps
|
|
704
|
+
* {
|
|
705
|
+
* devtools: {
|
|
706
|
+
* synced_preferences_sync_disabled: {
|
|
707
|
+
* skipContentScripts: false,
|
|
708
|
+
* },
|
|
709
|
+
* }
|
|
710
|
+
* extensions: {
|
|
711
|
+
* ui: {
|
|
712
|
+
* developer_mode: true,
|
|
713
|
+
* },
|
|
714
|
+
* }
|
|
715
|
+
* }
|
|
716
|
+
*/
|
|
717
|
+
chromiumPref?: string;
|
|
691
718
|
/**
|
|
692
719
|
* @see https://extensionworkshop.com/documentation/develop/web-ext-command-reference/#pref
|
|
693
720
|
*/
|
package/dist/index.cjs
CHANGED
|
@@ -4414,7 +4414,7 @@ function getChunkSortWeight(filename) {
|
|
|
4414
4414
|
var import_picocolors4 = __toESM(require("picocolors"), 1);
|
|
4415
4415
|
|
|
4416
4416
|
// package.json
|
|
4417
|
-
var version = "0.15.
|
|
4417
|
+
var version = "0.15.1";
|
|
4418
4418
|
|
|
4419
4419
|
// src/core/utils/log/printHeader.ts
|
|
4420
4420
|
var import_consola2 = require("consola");
|
|
@@ -5214,6 +5214,7 @@ function createWslRunner() {
|
|
|
5214
5214
|
}
|
|
5215
5215
|
|
|
5216
5216
|
// src/core/runners/web-ext.ts
|
|
5217
|
+
var import_defu4 = __toESM(require("defu"), 1);
|
|
5217
5218
|
function createWebExtRunner() {
|
|
5218
5219
|
let runner;
|
|
5219
5220
|
return {
|
|
@@ -5244,6 +5245,10 @@ function createWebExtRunner() {
|
|
|
5244
5245
|
} : {
|
|
5245
5246
|
chromiumBinary: wxtUserConfig?.binaries?.[config.browser],
|
|
5246
5247
|
chromiumProfile: wxtUserConfig?.chromiumProfile,
|
|
5248
|
+
chromiumPref: (0, import_defu4.default)(
|
|
5249
|
+
wxtUserConfig?.chromiumPref,
|
|
5250
|
+
DEFAULT_CHROMIUM_PREFS
|
|
5251
|
+
),
|
|
5247
5252
|
args: wxtUserConfig?.chromiumArgs
|
|
5248
5253
|
}
|
|
5249
5254
|
};
|
|
@@ -5273,6 +5278,16 @@ function createWebExtRunner() {
|
|
|
5273
5278
|
}
|
|
5274
5279
|
var WARN_LOG_LEVEL = 40;
|
|
5275
5280
|
var ERROR_LOG_LEVEL = 50;
|
|
5281
|
+
var DEFAULT_CHROMIUM_PREFS = {
|
|
5282
|
+
devtools: {
|
|
5283
|
+
synced_preferences_sync_disabled: {
|
|
5284
|
+
// Remove content scripts from sourcemap debugger ignore list so stack traces
|
|
5285
|
+
// and log locations show up properly, see:
|
|
5286
|
+
// https://github.com/wxt-dev/wxt/issues/236#issuecomment-1915364520
|
|
5287
|
+
skipContentScripts: false
|
|
5288
|
+
}
|
|
5289
|
+
}
|
|
5290
|
+
};
|
|
5276
5291
|
|
|
5277
5292
|
// src/core/runners/safari.ts
|
|
5278
5293
|
var import_node_path16 = require("path");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-
|
|
2
|
-
export { q as BackgroundDefinition, h as BackgroundEntrypoint, g as BaseEntrypoint, f as BaseEntrypointOptions, d as BuildStepOutput, w as ConfigEnv, p as ContentScriptBaseDefinition, m as ContentScriptDefinition, C as ContentScriptEntrypoint, n as ContentScriptIsolatedWorldDefinition, o as ContentScriptMainWorldDefinition, j as Entrypoint, k as EntrypointGroup, t as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, l as OnContentScriptStopped, i as OptionsEntrypoint, c as OutputAsset, b as OutputChunk, O as OutputFile, s as PerBrowserOption, P as PopupEntrypoint, S as ServerInfo, T as TargetBrowser, e as TargetManifestVersion, r as UnlistedScriptDefinition, u as UserManifest, v as UserManifestFn, x as WxtBuilder, y as WxtBuilderServer, a as WxtViteConfig } from './external-
|
|
1
|
+
import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-2QTHXYDU.cjs';
|
|
2
|
+
export { q as BackgroundDefinition, h as BackgroundEntrypoint, g as BaseEntrypoint, f as BaseEntrypointOptions, d as BuildStepOutput, w as ConfigEnv, p as ContentScriptBaseDefinition, m as ContentScriptDefinition, C as ContentScriptEntrypoint, n as ContentScriptIsolatedWorldDefinition, o as ContentScriptMainWorldDefinition, j as Entrypoint, k as EntrypointGroup, t as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, l as OnContentScriptStopped, i as OptionsEntrypoint, c as OutputAsset, b as OutputChunk, O as OutputFile, s as PerBrowserOption, P as PopupEntrypoint, S as ServerInfo, T as TargetBrowser, e as TargetManifestVersion, r as UnlistedScriptDefinition, u as UserManifest, v as UserManifestFn, x as WxtBuilder, y as WxtBuilderServer, a as WxtViteConfig } from './external-2QTHXYDU.cjs';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'webextension-polyfill';
|
|
5
5
|
import 'unimport';
|
|
@@ -62,6 +62,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
|
|
|
62
62
|
*/
|
|
63
63
|
declare function zip(config?: InlineConfig): Promise<string[]>;
|
|
64
64
|
|
|
65
|
-
var version = "0.15.
|
|
65
|
+
var version = "0.15.1";
|
|
66
66
|
|
|
67
67
|
export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-
|
|
2
|
-
export { q as BackgroundDefinition, h as BackgroundEntrypoint, g as BaseEntrypoint, f as BaseEntrypointOptions, d as BuildStepOutput, w as ConfigEnv, p as ContentScriptBaseDefinition, m as ContentScriptDefinition, C as ContentScriptEntrypoint, n as ContentScriptIsolatedWorldDefinition, o as ContentScriptMainWorldDefinition, j as Entrypoint, k as EntrypointGroup, t as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, l as OnContentScriptStopped, i as OptionsEntrypoint, c as OutputAsset, b as OutputChunk, O as OutputFile, s as PerBrowserOption, P as PopupEntrypoint, S as ServerInfo, T as TargetBrowser, e as TargetManifestVersion, r as UnlistedScriptDefinition, u as UserManifest, v as UserManifestFn, x as WxtBuilder, y as WxtBuilderServer, a as WxtViteConfig } from './external-
|
|
1
|
+
import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './external-2QTHXYDU.js';
|
|
2
|
+
export { q as BackgroundDefinition, h as BackgroundEntrypoint, g as BaseEntrypoint, f as BaseEntrypointOptions, d as BuildStepOutput, w as ConfigEnv, p as ContentScriptBaseDefinition, m as ContentScriptDefinition, C as ContentScriptEntrypoint, n as ContentScriptIsolatedWorldDefinition, o as ContentScriptMainWorldDefinition, j as Entrypoint, k as EntrypointGroup, t as ExcludableEntrypoint, G as GenericEntrypoint, L as Logger, l as OnContentScriptStopped, i as OptionsEntrypoint, c as OutputAsset, b as OutputChunk, O as OutputFile, s as PerBrowserOption, P as PopupEntrypoint, S as ServerInfo, T as TargetBrowser, e as TargetManifestVersion, r as UnlistedScriptDefinition, u as UserManifest, v as UserManifestFn, x as WxtBuilder, y as WxtBuilderServer, a as WxtViteConfig } from './external-2QTHXYDU.js';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'webextension-polyfill';
|
|
5
5
|
import 'unimport';
|
|
@@ -62,6 +62,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
|
|
|
62
62
|
*/
|
|
63
63
|
declare function zip(config?: InlineConfig): Promise<string[]>;
|
|
64
64
|
|
|
65
|
-
var version = "0.15.
|
|
65
|
+
var version = "0.15.1";
|
|
66
66
|
|
|
67
67
|
export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
rebuild,
|
|
16
16
|
resolvePerBrowserOption,
|
|
17
17
|
version
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-T57ALCJ4.js";
|
|
19
19
|
import "./chunk-VBXJIVYU.js";
|
|
20
20
|
|
|
21
21
|
// src/core/build.ts
|
|
@@ -87,6 +87,7 @@ function createWslRunner() {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// src/core/runners/web-ext.ts
|
|
90
|
+
import defu from "defu";
|
|
90
91
|
function createWebExtRunner() {
|
|
91
92
|
let runner;
|
|
92
93
|
return {
|
|
@@ -117,6 +118,10 @@ function createWebExtRunner() {
|
|
|
117
118
|
} : {
|
|
118
119
|
chromiumBinary: wxtUserConfig?.binaries?.[config.browser],
|
|
119
120
|
chromiumProfile: wxtUserConfig?.chromiumProfile,
|
|
121
|
+
chromiumPref: defu(
|
|
122
|
+
wxtUserConfig?.chromiumPref,
|
|
123
|
+
DEFAULT_CHROMIUM_PREFS
|
|
124
|
+
),
|
|
120
125
|
args: wxtUserConfig?.chromiumArgs
|
|
121
126
|
}
|
|
122
127
|
};
|
|
@@ -146,6 +151,16 @@ function createWebExtRunner() {
|
|
|
146
151
|
}
|
|
147
152
|
var WARN_LOG_LEVEL = 40;
|
|
148
153
|
var ERROR_LOG_LEVEL = 50;
|
|
154
|
+
var DEFAULT_CHROMIUM_PREFS = {
|
|
155
|
+
devtools: {
|
|
156
|
+
synced_preferences_sync_disabled: {
|
|
157
|
+
// Remove content scripts from sourcemap debugger ignore list so stack traces
|
|
158
|
+
// and log locations show up properly, see:
|
|
159
|
+
// https://github.com/wxt-dev/wxt/issues/236#issuecomment-1915364520
|
|
160
|
+
skipContentScripts: false
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
};
|
|
149
164
|
|
|
150
165
|
// src/core/runners/safari.ts
|
|
151
166
|
import { relative as relative2 } from "node:path";
|
package/dist/testing.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FakeBrowser, fakeBrowser } from '@webext-core/fake-browser';
|
|
2
2
|
import * as vite from 'vite';
|
|
3
|
-
import { I as InlineConfig } from './external-
|
|
3
|
+
import { I as InlineConfig } from './external-2QTHXYDU.cjs';
|
|
4
4
|
import 'webextension-polyfill';
|
|
5
5
|
import 'unimport';
|
|
6
6
|
import 'consola';
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FakeBrowser, fakeBrowser } from '@webext-core/fake-browser';
|
|
2
2
|
import * as vite from 'vite';
|
|
3
|
-
import { I as InlineConfig } from './external-
|
|
3
|
+
import { I as InlineConfig } from './external-2QTHXYDU.js';
|
|
4
4
|
import 'webextension-polyfill';
|
|
5
5
|
import 'unimport';
|
|
6
6
|
import 'consola';
|
package/dist/testing.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.1",
|
|
5
5
|
"description": "Next gen framework for developing web extensions",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=18",
|
|
@@ -113,8 +113,8 @@
|
|
|
113
113
|
"prompts": "^2.4.2",
|
|
114
114
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
115
115
|
"unimport": "^3.4.0",
|
|
116
|
-
"vite": "^5.0.
|
|
117
|
-
"web-ext-run": "^0.
|
|
116
|
+
"vite": "^5.0.12",
|
|
117
|
+
"web-ext-run": "^0.2.0",
|
|
118
118
|
"webextension-polyfill": "^0.10.0",
|
|
119
119
|
"zip-dir": "^2.0.0"
|
|
120
120
|
},
|