wxt 0.16.9 → 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-CKAPFUPR.js → chunk-PIVW7CL3.js} +29 -12
- package/dist/cli.js +29 -12
- package/dist/client.d.ts +1 -1
- package/dist/{index-GDr2OfIq.d.cts → index-h54vKikt.d.cts} +12 -0
- package/dist/{index-GDr2OfIq.d.ts → index-h54vKikt.d.ts} +12 -0
- package/dist/{index-nSEE-7AX.d.ts → index-v_64CCcw.d.ts} +12 -0
- package/dist/index.cjs +29 -12
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// package.json
|
|
2
|
-
var version = "0.16.
|
|
2
|
+
var version = "0.16.10";
|
|
3
3
|
|
|
4
4
|
// src/core/utils/paths.ts
|
|
5
5
|
import systemPath from "node:path";
|
|
@@ -1671,6 +1671,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
1671
1671
|
let userConfigMetadata;
|
|
1672
1672
|
if (inlineConfig.configFile !== false) {
|
|
1673
1673
|
const { config: loadedConfig, ...metadata } = await loadConfig({
|
|
1674
|
+
configFile: inlineConfig.configFile,
|
|
1674
1675
|
name: "wxt",
|
|
1675
1676
|
cwd: inlineConfig.root ?? process.cwd(),
|
|
1676
1677
|
rcFile: false,
|
|
@@ -2049,7 +2050,12 @@ function getEsbuildOptions(opts) {
|
|
|
2049
2050
|
return {
|
|
2050
2051
|
format: "cjs",
|
|
2051
2052
|
loader: isJsx ? "tsx" : "ts",
|
|
2052
|
-
|
|
2053
|
+
...isJsx ? {
|
|
2054
|
+
// `h` and `Fragment` are undefined, but that's OK because JSX is never evaluated while
|
|
2055
|
+
// grabbing the entrypoint's options.
|
|
2056
|
+
jsxFactory: "h",
|
|
2057
|
+
jsxFragment: "Fragment"
|
|
2058
|
+
} : void 0
|
|
2053
2059
|
};
|
|
2054
2060
|
}
|
|
2055
2061
|
|
|
@@ -2528,17 +2534,13 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
2528
2534
|
if (contentScripts?.length) {
|
|
2529
2535
|
const cssMap = getContentScriptsCssMap(buildOutput, contentScripts);
|
|
2530
2536
|
if (wxt.config.command === "serve" && wxt.config.manifestVersion === 3) {
|
|
2531
|
-
const hostPermissions = new Set(manifest.host_permissions ?? []);
|
|
2532
2537
|
contentScripts.forEach((script) => {
|
|
2533
2538
|
script.options.matches.forEach((matchPattern) => {
|
|
2534
|
-
|
|
2539
|
+
addHostPermission(manifest, matchPattern);
|
|
2535
2540
|
});
|
|
2536
2541
|
});
|
|
2537
|
-
hostPermissions.forEach(
|
|
2538
|
-
(permission) => addHostPermission(manifest, permission)
|
|
2539
|
-
);
|
|
2540
2542
|
} else {
|
|
2541
|
-
const hashToEntrypointsMap = contentScripts.reduce((map, script) => {
|
|
2543
|
+
const hashToEntrypointsMap = contentScripts.filter((cs) => cs.options.registration !== "runtime").reduce((map, script) => {
|
|
2542
2544
|
const hash = hashContentScriptOptions(script.options);
|
|
2543
2545
|
if (map.has(hash))
|
|
2544
2546
|
map.get(hash)?.push(script);
|
|
@@ -2546,8 +2548,10 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
2546
2548
|
map.set(hash, [script]);
|
|
2547
2549
|
return map;
|
|
2548
2550
|
}, /* @__PURE__ */ new Map());
|
|
2549
|
-
const
|
|
2550
|
-
(
|
|
2551
|
+
const manifestContentScripts = Array.from(
|
|
2552
|
+
hashToEntrypointsMap.values()
|
|
2553
|
+
).map(
|
|
2554
|
+
(scripts) => mapWxtOptionsToContentScript(
|
|
2551
2555
|
scripts[0].options,
|
|
2552
2556
|
scripts.map(
|
|
2553
2557
|
(entry) => getEntrypointBundlePath(entry, wxt.config.outDir, ".js")
|
|
@@ -2555,10 +2559,23 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
2555
2559
|
getContentScriptCssFiles(scripts, cssMap)
|
|
2556
2560
|
)
|
|
2557
2561
|
);
|
|
2558
|
-
if (
|
|
2562
|
+
if (manifestContentScripts.length >= 0) {
|
|
2559
2563
|
manifest.content_scripts ??= [];
|
|
2560
|
-
manifest.content_scripts.push(...
|
|
2564
|
+
manifest.content_scripts.push(...manifestContentScripts);
|
|
2565
|
+
}
|
|
2566
|
+
const runtimeContentScripts = contentScripts.filter(
|
|
2567
|
+
(cs) => cs.options.registration === "runtime"
|
|
2568
|
+
);
|
|
2569
|
+
if (runtimeContentScripts.length > 0 && wxt.config.manifestVersion === 2) {
|
|
2570
|
+
throw Error(
|
|
2571
|
+
'Cannot use `registration: "runtime"` with MV2 content scripts, it is a MV3-only feature.'
|
|
2572
|
+
);
|
|
2561
2573
|
}
|
|
2574
|
+
runtimeContentScripts.forEach((script) => {
|
|
2575
|
+
script.options.matches.forEach((matchPattern) => {
|
|
2576
|
+
addHostPermission(manifest, matchPattern);
|
|
2577
|
+
});
|
|
2578
|
+
});
|
|
2562
2579
|
}
|
|
2563
2580
|
const contentScriptCssResources = getContentScriptCssWebAccessibleResources(
|
|
2564
2581
|
contentScripts,
|
package/dist/cli.js
CHANGED
|
@@ -1671,6 +1671,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
1671
1671
|
let userConfigMetadata;
|
|
1672
1672
|
if (inlineConfig.configFile !== false) {
|
|
1673
1673
|
const { config: loadedConfig, ...metadata } = await loadConfig({
|
|
1674
|
+
configFile: inlineConfig.configFile,
|
|
1674
1675
|
name: "wxt",
|
|
1675
1676
|
cwd: inlineConfig.root ?? process.cwd(),
|
|
1676
1677
|
rcFile: false,
|
|
@@ -2049,7 +2050,12 @@ function getEsbuildOptions(opts) {
|
|
|
2049
2050
|
return {
|
|
2050
2051
|
format: "cjs",
|
|
2051
2052
|
loader: isJsx ? "tsx" : "ts",
|
|
2052
|
-
|
|
2053
|
+
...isJsx ? {
|
|
2054
|
+
// `h` and `Fragment` are undefined, but that's OK because JSX is never evaluated while
|
|
2055
|
+
// grabbing the entrypoint's options.
|
|
2056
|
+
jsxFactory: "h",
|
|
2057
|
+
jsxFragment: "Fragment"
|
|
2058
|
+
} : void 0
|
|
2053
2059
|
};
|
|
2054
2060
|
}
|
|
2055
2061
|
|
|
@@ -2168,7 +2174,7 @@ function getChunkSortWeight(filename) {
|
|
|
2168
2174
|
import pc4 from "picocolors";
|
|
2169
2175
|
|
|
2170
2176
|
// package.json
|
|
2171
|
-
var version = "0.16.
|
|
2177
|
+
var version = "0.16.10";
|
|
2172
2178
|
|
|
2173
2179
|
// src/core/utils/log/printHeader.ts
|
|
2174
2180
|
import { consola as consola2 } from "consola";
|
|
@@ -2537,17 +2543,13 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
2537
2543
|
if (contentScripts?.length) {
|
|
2538
2544
|
const cssMap = getContentScriptsCssMap(buildOutput, contentScripts);
|
|
2539
2545
|
if (wxt.config.command === "serve" && wxt.config.manifestVersion === 3) {
|
|
2540
|
-
const hostPermissions = new Set(manifest.host_permissions ?? []);
|
|
2541
2546
|
contentScripts.forEach((script) => {
|
|
2542
2547
|
script.options.matches.forEach((matchPattern) => {
|
|
2543
|
-
|
|
2548
|
+
addHostPermission(manifest, matchPattern);
|
|
2544
2549
|
});
|
|
2545
2550
|
});
|
|
2546
|
-
hostPermissions.forEach(
|
|
2547
|
-
(permission) => addHostPermission(manifest, permission)
|
|
2548
|
-
);
|
|
2549
2551
|
} else {
|
|
2550
|
-
const hashToEntrypointsMap = contentScripts.reduce((map, script) => {
|
|
2552
|
+
const hashToEntrypointsMap = contentScripts.filter((cs) => cs.options.registration !== "runtime").reduce((map, script) => {
|
|
2551
2553
|
const hash = hashContentScriptOptions(script.options);
|
|
2552
2554
|
if (map.has(hash))
|
|
2553
2555
|
map.get(hash)?.push(script);
|
|
@@ -2555,8 +2557,10 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
2555
2557
|
map.set(hash, [script]);
|
|
2556
2558
|
return map;
|
|
2557
2559
|
}, /* @__PURE__ */ new Map());
|
|
2558
|
-
const
|
|
2559
|
-
(
|
|
2560
|
+
const manifestContentScripts = Array.from(
|
|
2561
|
+
hashToEntrypointsMap.values()
|
|
2562
|
+
).map(
|
|
2563
|
+
(scripts) => mapWxtOptionsToContentScript(
|
|
2560
2564
|
scripts[0].options,
|
|
2561
2565
|
scripts.map(
|
|
2562
2566
|
(entry) => getEntrypointBundlePath(entry, wxt.config.outDir, ".js")
|
|
@@ -2564,10 +2568,23 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
2564
2568
|
getContentScriptCssFiles(scripts, cssMap)
|
|
2565
2569
|
)
|
|
2566
2570
|
);
|
|
2567
|
-
if (
|
|
2571
|
+
if (manifestContentScripts.length >= 0) {
|
|
2568
2572
|
manifest.content_scripts ??= [];
|
|
2569
|
-
manifest.content_scripts.push(...
|
|
2573
|
+
manifest.content_scripts.push(...manifestContentScripts);
|
|
2574
|
+
}
|
|
2575
|
+
const runtimeContentScripts = contentScripts.filter(
|
|
2576
|
+
(cs) => cs.options.registration === "runtime"
|
|
2577
|
+
);
|
|
2578
|
+
if (runtimeContentScripts.length > 0 && wxt.config.manifestVersion === 2) {
|
|
2579
|
+
throw Error(
|
|
2580
|
+
'Cannot use `registration: "runtime"` with MV2 content scripts, it is a MV3-only feature.'
|
|
2581
|
+
);
|
|
2570
2582
|
}
|
|
2583
|
+
runtimeContentScripts.forEach((script) => {
|
|
2584
|
+
script.options.matches.forEach((matchPattern) => {
|
|
2585
|
+
addHostPermission(manifest, matchPattern);
|
|
2586
|
+
});
|
|
2587
|
+
});
|
|
2571
2588
|
}
|
|
2572
2589
|
const contentScriptCssResources = getContentScriptCssWebAccessibleResources(
|
|
2573
2590
|
contentScripts,
|
package/dist/client.d.ts
CHANGED
|
@@ -571,6 +571,18 @@ interface BaseContentScriptEntrypointOptions extends BaseEntrypointOptions {
|
|
|
571
571
|
* @default "manifest"
|
|
572
572
|
*/
|
|
573
573
|
cssInjectionMode?: PerBrowserOption<'manifest' | 'manual' | 'ui'>;
|
|
574
|
+
/**
|
|
575
|
+
* Specify how the content script is registered.
|
|
576
|
+
*
|
|
577
|
+
* - `"manifest"`: The content script will be added to the `content_scripts` entry in the
|
|
578
|
+
* manifest. This is the normal and most well known way of registering a content script.
|
|
579
|
+
* - `"runtime"`: The content script's `matches` is added to `host_permissions` and you are
|
|
580
|
+
* responsible for using the scripting API to register the content script dynamically at
|
|
581
|
+
* runtime.
|
|
582
|
+
*
|
|
583
|
+
* @default "manifest"
|
|
584
|
+
*/
|
|
585
|
+
registration?: PerBrowserOption<'manifest' | 'runtime'>;
|
|
574
586
|
}
|
|
575
587
|
interface MainWorldContentScriptEntrypointOptions extends BaseContentScriptEntrypointOptions {
|
|
576
588
|
/**
|
|
@@ -571,6 +571,18 @@ interface BaseContentScriptEntrypointOptions extends BaseEntrypointOptions {
|
|
|
571
571
|
* @default "manifest"
|
|
572
572
|
*/
|
|
573
573
|
cssInjectionMode?: PerBrowserOption<'manifest' | 'manual' | 'ui'>;
|
|
574
|
+
/**
|
|
575
|
+
* Specify how the content script is registered.
|
|
576
|
+
*
|
|
577
|
+
* - `"manifest"`: The content script will be added to the `content_scripts` entry in the
|
|
578
|
+
* manifest. This is the normal and most well known way of registering a content script.
|
|
579
|
+
* - `"runtime"`: The content script's `matches` is added to `host_permissions` and you are
|
|
580
|
+
* responsible for using the scripting API to register the content script dynamically at
|
|
581
|
+
* runtime.
|
|
582
|
+
*
|
|
583
|
+
* @default "manifest"
|
|
584
|
+
*/
|
|
585
|
+
registration?: PerBrowserOption<'manifest' | 'runtime'>;
|
|
574
586
|
}
|
|
575
587
|
interface MainWorldContentScriptEntrypointOptions extends BaseContentScriptEntrypointOptions {
|
|
576
588
|
/**
|
|
@@ -176,6 +176,18 @@ interface BaseContentScriptEntrypointOptions extends BaseEntrypointOptions {
|
|
|
176
176
|
* @default "manifest"
|
|
177
177
|
*/
|
|
178
178
|
cssInjectionMode?: PerBrowserOption<'manifest' | 'manual' | 'ui'>;
|
|
179
|
+
/**
|
|
180
|
+
* Specify how the content script is registered.
|
|
181
|
+
*
|
|
182
|
+
* - `"manifest"`: The content script will be added to the `content_scripts` entry in the
|
|
183
|
+
* manifest. This is the normal and most well known way of registering a content script.
|
|
184
|
+
* - `"runtime"`: The content script's `matches` is added to `host_permissions` and you are
|
|
185
|
+
* responsible for using the scripting API to register the content script dynamically at
|
|
186
|
+
* runtime.
|
|
187
|
+
*
|
|
188
|
+
* @default "manifest"
|
|
189
|
+
*/
|
|
190
|
+
registration?: PerBrowserOption<'manifest' | 'runtime'>;
|
|
179
191
|
}
|
|
180
192
|
interface MainWorldContentScriptEntrypointOptions extends BaseContentScriptEntrypointOptions {
|
|
181
193
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -4097,6 +4097,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
4097
4097
|
let userConfigMetadata;
|
|
4098
4098
|
if (inlineConfig.configFile !== false) {
|
|
4099
4099
|
const { config: loadedConfig, ...metadata } = await (0, import_c12.loadConfig)({
|
|
4100
|
+
configFile: inlineConfig.configFile,
|
|
4100
4101
|
name: "wxt",
|
|
4101
4102
|
cwd: inlineConfig.root ?? process.cwd(),
|
|
4102
4103
|
rcFile: false,
|
|
@@ -4476,7 +4477,12 @@ function getEsbuildOptions(opts) {
|
|
|
4476
4477
|
return {
|
|
4477
4478
|
format: "cjs",
|
|
4478
4479
|
loader: isJsx ? "tsx" : "ts",
|
|
4479
|
-
|
|
4480
|
+
...isJsx ? {
|
|
4481
|
+
// `h` and `Fragment` are undefined, but that's OK because JSX is never evaluated while
|
|
4482
|
+
// grabbing the entrypoint's options.
|
|
4483
|
+
jsxFactory: "h",
|
|
4484
|
+
jsxFragment: "Fragment"
|
|
4485
|
+
} : void 0
|
|
4480
4486
|
};
|
|
4481
4487
|
}
|
|
4482
4488
|
|
|
@@ -4595,7 +4601,7 @@ function getChunkSortWeight(filename) {
|
|
|
4595
4601
|
var import_picocolors4 = __toESM(require("picocolors"), 1);
|
|
4596
4602
|
|
|
4597
4603
|
// package.json
|
|
4598
|
-
var version = "0.16.
|
|
4604
|
+
var version = "0.16.10";
|
|
4599
4605
|
|
|
4600
4606
|
// src/core/utils/log/printHeader.ts
|
|
4601
4607
|
var import_consola2 = require("consola");
|
|
@@ -4960,17 +4966,13 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
4960
4966
|
if (contentScripts?.length) {
|
|
4961
4967
|
const cssMap = getContentScriptsCssMap(buildOutput, contentScripts);
|
|
4962
4968
|
if (wxt.config.command === "serve" && wxt.config.manifestVersion === 3) {
|
|
4963
|
-
const hostPermissions = new Set(manifest.host_permissions ?? []);
|
|
4964
4969
|
contentScripts.forEach((script) => {
|
|
4965
4970
|
script.options.matches.forEach((matchPattern) => {
|
|
4966
|
-
|
|
4971
|
+
addHostPermission(manifest, matchPattern);
|
|
4967
4972
|
});
|
|
4968
4973
|
});
|
|
4969
|
-
hostPermissions.forEach(
|
|
4970
|
-
(permission) => addHostPermission(manifest, permission)
|
|
4971
|
-
);
|
|
4972
4974
|
} else {
|
|
4973
|
-
const hashToEntrypointsMap = contentScripts.reduce((map, script) => {
|
|
4975
|
+
const hashToEntrypointsMap = contentScripts.filter((cs) => cs.options.registration !== "runtime").reduce((map, script) => {
|
|
4974
4976
|
const hash = hashContentScriptOptions(script.options);
|
|
4975
4977
|
if (map.has(hash))
|
|
4976
4978
|
map.get(hash)?.push(script);
|
|
@@ -4978,8 +4980,10 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
4978
4980
|
map.set(hash, [script]);
|
|
4979
4981
|
return map;
|
|
4980
4982
|
}, /* @__PURE__ */ new Map());
|
|
4981
|
-
const
|
|
4982
|
-
(
|
|
4983
|
+
const manifestContentScripts = Array.from(
|
|
4984
|
+
hashToEntrypointsMap.values()
|
|
4985
|
+
).map(
|
|
4986
|
+
(scripts) => mapWxtOptionsToContentScript(
|
|
4983
4987
|
scripts[0].options,
|
|
4984
4988
|
scripts.map(
|
|
4985
4989
|
(entry) => getEntrypointBundlePath(entry, wxt.config.outDir, ".js")
|
|
@@ -4987,10 +4991,23 @@ function addEntrypoints(manifest, entrypoints, buildOutput) {
|
|
|
4987
4991
|
getContentScriptCssFiles(scripts, cssMap)
|
|
4988
4992
|
)
|
|
4989
4993
|
);
|
|
4990
|
-
if (
|
|
4994
|
+
if (manifestContentScripts.length >= 0) {
|
|
4991
4995
|
manifest.content_scripts ??= [];
|
|
4992
|
-
manifest.content_scripts.push(...
|
|
4996
|
+
manifest.content_scripts.push(...manifestContentScripts);
|
|
4997
|
+
}
|
|
4998
|
+
const runtimeContentScripts = contentScripts.filter(
|
|
4999
|
+
(cs) => cs.options.registration === "runtime"
|
|
5000
|
+
);
|
|
5001
|
+
if (runtimeContentScripts.length > 0 && wxt.config.manifestVersion === 2) {
|
|
5002
|
+
throw Error(
|
|
5003
|
+
'Cannot use `registration: "runtime"` with MV2 content scripts, it is a MV3-only feature.'
|
|
5004
|
+
);
|
|
4993
5005
|
}
|
|
5006
|
+
runtimeContentScripts.forEach((script) => {
|
|
5007
|
+
script.options.matches.forEach((matchPattern) => {
|
|
5008
|
+
addHostPermission(manifest, matchPattern);
|
|
5009
|
+
});
|
|
5010
|
+
});
|
|
4994
5011
|
}
|
|
4995
5012
|
const contentScriptCssResources = getContentScriptCssWebAccessibleResources(
|
|
4996
5013
|
contentScripts,
|
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 './index-
|
|
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-
|
|
1
|
+
import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-h54vKikt.cjs';
|
|
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.cjs';
|
|
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.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 { 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-
|
|
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
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