wxt 0.16.8 → 0.16.10
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-N26YUOBL.js → chunk-PIVW7CL3.js} +178 -145
- package/dist/cli.js +180 -163
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -2
- package/dist/{index-sl22zA2Z.d.ts → index-h54vKikt.d.cts} +163 -107
- package/dist/{index-sl22zA2Z.d.cts → index-h54vKikt.d.ts} +163 -107
- package/dist/{index-TYmXqKVq.d.ts → index-v_64CCcw.d.ts} +69 -36
- package/dist/index.cjs +180 -163
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +5 -21
- package/dist/sandbox.d.ts +1 -1
- package/dist/testing.cjs +1 -0
- package/dist/testing.d.cts +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/package.json +1 -1
- package/dist/cli.d.ts +0 -2
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 './index-
|
|
2
|
-
export {
|
|
1
|
+
import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-h54vKikt.js';
|
|
2
|
+
export { v as BackgroundDefinition, l as BackgroundEntrypoint, g as BackgroundEntrypointOptions, h as BaseContentScriptEntrypointOptions, k as BaseEntrypoint, f as BaseEntrypointOptions, d as BuildStepOutput, D as ConfigEnv, u as ContentScriptDefinition, C as ContentScriptEntrypoint, p as Entrypoint, q as EntrypointGroup, _ as EslintGlobalsPropValue, $ as Eslintrc, Y as ExtensionRunner, X as FsCache, G as GenericEntrypoint, K as HookResult, s as IsolatedWorldContentScriptDefinition, i as IsolatedWorldContentScriptEntrypointOptions, L as Logger, t as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, r as OnContentScriptStopped, n as OptionsEntrypoint, j as OptionsEntrypointOptions, c as OutputAsset, b as OutputChunk, O as OutputFile, y as PerBrowserMap, x as PerBrowserOption, m as PopupEntrypoint, P as PopupEntrypointOptions, V as ResolvedConfig, a0 as ResolvedEslintrc, R as ResolvedPerBrowserOptions, J as ServerInfo, o as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, e as TargetManifestVersion, w as UnlistedScriptDefinition, z as UserManifest, A as UserManifestFn, Z as VirtualEntrypointType, Q as Wxt, F as WxtBuilder, H as WxtBuilderServer, N as WxtHooks, a2 as WxtResolvedUnimportOptions, a1 as WxtUnimportOptions, a as WxtViteConfig } from './index-h54vKikt.js';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import 'webextension-polyfill';
|
|
5
5
|
import 'unimport';
|
|
@@ -64,6 +64,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
|
|
|
64
64
|
*/
|
|
65
65
|
declare function zip(config?: InlineConfig): Promise<string[]>;
|
|
66
66
|
|
|
67
|
-
var version = "0.16.
|
|
67
|
+
var version = "0.16.10";
|
|
68
68
|
|
|
69
69
|
export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
|
package/dist/index.js
CHANGED
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
getPackageJson,
|
|
10
10
|
internalBuild,
|
|
11
11
|
kebabCaseAlphanumeric,
|
|
12
|
+
mapWxtOptionsToRegisteredContentScript,
|
|
12
13
|
printFileList,
|
|
13
14
|
rebuild,
|
|
14
15
|
registerWxt,
|
|
15
|
-
resolvePerBrowserOption,
|
|
16
16
|
unnormalizePath,
|
|
17
17
|
version,
|
|
18
18
|
wxt
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PIVW7CL3.js";
|
|
20
20
|
import "./chunk-VBXJIVYU.js";
|
|
21
21
|
|
|
22
22
|
// src/core/build.ts
|
|
@@ -369,25 +369,9 @@ function reloadContentScripts(steps, server) {
|
|
|
369
369
|
const js = [getEntrypointBundlePath(entry, wxt.config.outDir, ".js")];
|
|
370
370
|
const cssMap = getContentScriptsCssMap(server.currentOutput, [entry]);
|
|
371
371
|
const css = getContentScriptCssFiles([entry], cssMap);
|
|
372
|
-
server.reloadContentScript(
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
wxt.config.browser
|
|
376
|
-
),
|
|
377
|
-
excludeMatches: resolvePerBrowserOption(
|
|
378
|
-
entry.options.excludeMatches,
|
|
379
|
-
wxt.config.browser
|
|
380
|
-
),
|
|
381
|
-
matches: resolvePerBrowserOption(
|
|
382
|
-
entry.options.matches,
|
|
383
|
-
wxt.config.browser
|
|
384
|
-
),
|
|
385
|
-
runAt: resolvePerBrowserOption(entry.options.runAt, wxt.config.browser),
|
|
386
|
-
// @ts-expect-error: Chrome accepts this, not typed in webextension-polyfill (https://developer.chrome.com/docs/extensions/reference/scripting/#type-RegisteredContentScript)
|
|
387
|
-
world: resolvePerBrowserOption(entry.options.world, wxt.config.browser),
|
|
388
|
-
js,
|
|
389
|
-
css
|
|
390
|
-
});
|
|
372
|
+
server.reloadContentScript(
|
|
373
|
+
mapWxtOptionsToRegisteredContentScript(entry.options, js, css)
|
|
374
|
+
);
|
|
391
375
|
});
|
|
392
376
|
} else {
|
|
393
377
|
server.reloadExtension();
|
package/dist/sandbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as UnlistedScriptDefinition, B as BackgroundDefinition, C as ContentScriptDefinition } from './index-
|
|
1
|
+
import { U as UnlistedScriptDefinition, B as BackgroundDefinition, C as ContentScriptDefinition } from './index-v_64CCcw.js';
|
|
2
2
|
export * from '@webext-core/match-patterns';
|
|
3
3
|
import 'webextension-polyfill';
|
|
4
4
|
|
package/dist/testing.cjs
CHANGED
|
@@ -977,6 +977,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
977
977
|
let userConfigMetadata;
|
|
978
978
|
if (inlineConfig.configFile !== false) {
|
|
979
979
|
const { config: loadedConfig, ...metadata } = await (0, import_c12.loadConfig)({
|
|
980
|
+
configFile: inlineConfig.configFile,
|
|
980
981
|
name: "wxt",
|
|
981
982
|
cwd: inlineConfig.root ?? process.cwd(),
|
|
982
983
|
rcFile: false,
|
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 './index-
|
|
3
|
+
import { I as InlineConfig } from './index-h54vKikt.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 './index-
|
|
3
|
+
import { I as InlineConfig } from './index-h54vKikt.js';
|
|
4
4
|
import 'webextension-polyfill';
|
|
5
5
|
import 'unimport';
|
|
6
6
|
import 'consola';
|
package/dist/testing.js
CHANGED
package/package.json
CHANGED
package/dist/cli.d.ts
DELETED