wxt 0.17.11 → 0.17.12

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/README.md CHANGED
@@ -29,6 +29,8 @@
29
29
  <a href="https://wxt.dev/api/config.html" target="_blank">Configuration</a>
30
30
  &bull;
31
31
  <a href="https://wxt.dev/examples.html" target="_blank">Examples</a>
32
+ &bull;
33
+ <a href="https://discord.gg/ZFsZqGery9" target="_blank">Discord</a>
32
34
  </p>
33
35
 
34
36
  ![Example CLI Output](./docs/assets/cli-output.png)
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-VBXJIVYU.js";
9
9
 
10
10
  // package.json
11
- var version = "0.17.11";
11
+ var version = "0.17.12";
12
12
 
13
13
  // src/core/utils/paths.ts
14
14
  import systemPath from "node:path";
@@ -2994,10 +2994,12 @@ var packageManagers = {
2994
2994
  };
2995
2995
 
2996
2996
  // src/core/builders/vite/index.ts
2997
- async function createViteBuilder(wxtConfig, server) {
2997
+ async function createViteBuilder(wxtConfig, hooks, server) {
2998
2998
  const vite = await import("vite");
2999
2999
  const getBaseConfig = async () => {
3000
- const config = await wxtConfig.vite(wxtConfig.env);
3000
+ const config = await wxtConfig.vite({
3001
+ ...wxtConfig.env
3002
+ });
3001
3003
  config.root = wxtConfig.root;
3002
3004
  config.configFile = false;
3003
3005
  config.logLevel = "warn";
@@ -3142,6 +3144,11 @@ async function createViteBuilder(wxtConfig, server) {
3142
3144
  else
3143
3145
  entryConfig = getLibModeConfig(group);
3144
3146
  const buildConfig = vite.mergeConfig(await getBaseConfig(), entryConfig);
3147
+ await hooks.callHook(
3148
+ "vite:build:extendConfig",
3149
+ toArray(group),
3150
+ buildConfig
3151
+ );
3145
3152
  const result = await vite.build(buildConfig);
3146
3153
  return {
3147
3154
  entrypoints: group,
@@ -3158,9 +3165,9 @@ async function createViteBuilder(wxtConfig, server) {
3158
3165
  }
3159
3166
  };
3160
3167
  const baseConfig = await getBaseConfig();
3161
- const viteServer = await vite.createServer(
3162
- vite.mergeConfig(baseConfig, serverConfig)
3163
- );
3168
+ const finalConfig = vite.mergeConfig(baseConfig, serverConfig);
3169
+ await hooks.callHook("vite:devServer:extendConfig", finalConfig);
3170
+ const viteServer = await vite.createServer(finalConfig);
3164
3171
  const server2 = {
3165
3172
  async listen() {
3166
3173
  await viteServer.listen(info.port);
@@ -3216,7 +3223,7 @@ async function registerWxt(command, inlineConfig = {}, getServer) {
3216
3223
  const hooks = createHooks();
3217
3224
  const config = await resolveConfig(inlineConfig, command);
3218
3225
  const server = await getServer?.(config);
3219
- const builder = await createViteBuilder(config, server);
3226
+ const builder = await createViteBuilder(config, hooks, server);
3220
3227
  const pm = await createWxtPackageManager(config.root);
3221
3228
  wxt = {
3222
3229
  config,
package/dist/cli.js CHANGED
@@ -840,11 +840,33 @@ function defineImportMeta() {
840
840
  };
841
841
  }
842
842
 
843
+ // src/core/utils/arrays.ts
844
+ function every(array, predicate) {
845
+ for (let i = 0; i < array.length; i++)
846
+ if (!predicate(array[i], i))
847
+ return false;
848
+ return true;
849
+ }
850
+ function some(array, predicate) {
851
+ for (let i = 0; i < array.length; i++)
852
+ if (predicate(array[i], i))
853
+ return true;
854
+ return false;
855
+ }
856
+ function toArray(a) {
857
+ return Array.isArray(a) ? a : [a];
858
+ }
859
+ function filterTruthy(array) {
860
+ return array.filter((item) => !!item);
861
+ }
862
+
843
863
  // src/core/builders/vite/index.ts
844
- async function createViteBuilder(wxtConfig, server) {
864
+ async function createViteBuilder(wxtConfig, hooks, server) {
845
865
  const vite = await import("vite");
846
866
  const getBaseConfig = async () => {
847
- const config = await wxtConfig.vite(wxtConfig.env);
867
+ const config = await wxtConfig.vite({
868
+ ...wxtConfig.env
869
+ });
848
870
  config.root = wxtConfig.root;
849
871
  config.configFile = false;
850
872
  config.logLevel = "warn";
@@ -989,6 +1011,11 @@ async function createViteBuilder(wxtConfig, server) {
989
1011
  else
990
1012
  entryConfig = getLibModeConfig(group);
991
1013
  const buildConfig = vite.mergeConfig(await getBaseConfig(), entryConfig);
1014
+ await hooks.callHook(
1015
+ "vite:build:extendConfig",
1016
+ toArray(group),
1017
+ buildConfig
1018
+ );
992
1019
  const result = await vite.build(buildConfig);
993
1020
  return {
994
1021
  entrypoints: group,
@@ -1005,9 +1032,9 @@ async function createViteBuilder(wxtConfig, server) {
1005
1032
  }
1006
1033
  };
1007
1034
  const baseConfig = await getBaseConfig();
1008
- const viteServer = await vite.createServer(
1009
- vite.mergeConfig(baseConfig, serverConfig)
1010
- );
1035
+ const finalConfig = vite.mergeConfig(baseConfig, serverConfig);
1036
+ await hooks.callHook("vite:devServer:extendConfig", finalConfig);
1037
+ const viteServer = await vite.createServer(finalConfig);
1011
1038
  const server2 = {
1012
1039
  async listen() {
1013
1040
  await viteServer.listen(info.port);
@@ -1063,7 +1090,7 @@ async function registerWxt(command, inlineConfig = {}, getServer) {
1063
1090
  const hooks = createHooks();
1064
1091
  const config = await resolveConfig(inlineConfig, command);
1065
1092
  const server = await getServer?.(config);
1066
- const builder = await createViteBuilder(config, server);
1093
+ const builder = await createViteBuilder(config, hooks, server);
1067
1094
  const pm = await createWxtPackageManager(config.root);
1068
1095
  wxt = {
1069
1096
  config,
@@ -1100,28 +1127,6 @@ async function getPublicFiles() {
1100
1127
  import fs4 from "fs-extra";
1101
1128
  import { dirname as dirname3, resolve as resolve5 } from "path";
1102
1129
  import pc from "picocolors";
1103
-
1104
- // src/core/utils/arrays.ts
1105
- function every(array, predicate) {
1106
- for (let i = 0; i < array.length; i++)
1107
- if (!predicate(array[i], i))
1108
- return false;
1109
- return true;
1110
- }
1111
- function some(array, predicate) {
1112
- for (let i = 0; i < array.length; i++)
1113
- if (predicate(array[i], i))
1114
- return true;
1115
- return false;
1116
- }
1117
- function toArray(a) {
1118
- return Array.isArray(a) ? a : [a];
1119
- }
1120
- function filterTruthy(array) {
1121
- return array.filter((item) => !!item);
1122
- }
1123
-
1124
- // src/core/utils/building/build-entrypoints.ts
1125
1130
  async function buildEntrypoints(groups, spinner) {
1126
1131
  const steps = [];
1127
1132
  for (let i = 0; i < groups.length; i++) {
@@ -2415,7 +2420,7 @@ function getChunkSortWeight(filename) {
2415
2420
  import pc4 from "picocolors";
2416
2421
 
2417
2422
  // package.json
2418
- var version = "0.17.11";
2423
+ var version = "0.17.12";
2419
2424
 
2420
2425
  // src/core/utils/log/printHeader.ts
2421
2426
  import { consola as consola2 } from "consola";
package/dist/client.js CHANGED
@@ -244,10 +244,13 @@ function createIntegratedUi(ctx, options) {
244
244
  const remove = () => {
245
245
  options.onRemove?.(mounted);
246
246
  wrapper.remove();
247
+ mounted = void 0;
247
248
  };
248
249
  ctx.onInvalidated(remove);
249
250
  return {
250
- mounted,
251
+ get mounted() {
252
+ return mounted;
253
+ },
251
254
  wrapper,
252
255
  mount,
253
256
  remove
@@ -268,10 +271,13 @@ function createIframeUi(ctx, options) {
268
271
  const remove = () => {
269
272
  options.onRemove?.(mounted);
270
273
  wrapper.remove();
274
+ mounted = void 0;
271
275
  };
272
276
  ctx.onInvalidated(remove);
273
277
  return {
274
- mounted,
278
+ get mounted() {
279
+ return mounted;
280
+ },
275
281
  iframe,
276
282
  wrapper,
277
283
  mount,
@@ -308,6 +314,7 @@ async function createShadowRootUi(ctx, options) {
308
314
  shadowHost.remove();
309
315
  while (uiContainer.lastChild)
310
316
  uiContainer.removeChild(uiContainer.lastChild);
317
+ mounted = void 0;
311
318
  };
312
319
  ctx.onInvalidated(remove);
313
320
  return {
@@ -316,7 +323,9 @@ async function createShadowRootUi(ctx, options) {
316
323
  uiContainer,
317
324
  mount,
318
325
  remove,
319
- mounted
326
+ get mounted() {
327
+ return mounted;
328
+ }
320
329
  };
321
330
  }
322
331
  function applyPosition(root, positionedElement, options) {
@@ -967,6 +967,23 @@ interface ServerInfo {
967
967
  origin: string;
968
968
  }
969
969
  type HookResult = Promise<void> | void;
970
+ interface WxtHooks {
971
+ /**
972
+ * Called when WXT has created Vite's config for a build step. Useful if you
973
+ * want to add plugins or update the vite config per entrypoint group.
974
+ *
975
+ * @param entrypoints The list of entrypoints being built with the provided config.
976
+ * @param viteConfig The config that will be used for the dev server.
977
+ */
978
+ 'vite:build:extendConfig': (entrypoints: readonly Entrypoint[], viteConfig: vite.InlineConfig) => HookResult;
979
+ /**
980
+ * Called when WXT has created Vite's config for the dev server. Useful if
981
+ * you want to add plugins or update the vite config per entrypoint group.
982
+ *
983
+ * @param viteConfig The config that will be used to build the entrypoints. Can be updated by reference.
984
+ */
985
+ 'vite:devServer:extendConfig': (config: vite.InlineConfig) => HookResult;
986
+ }
970
987
  interface WxtHooks {
971
988
  /**
972
989
  * Called after WXT initialization, when the WXT instance is ready to work.
@@ -1185,4 +1202,4 @@ interface Dependency {
1185
1202
  version: string;
1186
1203
  }
1187
1204
 
1188
- export type { EslintGlobalsPropValue as $, ResolvedPerBrowserOptions as A, BuildOutput as B, ContentScriptEntrypoint as C, UserManifest as D, ExtensionRunnerConfig as E, UserManifestFn as F, GenericEntrypoint as G, ConfigEnv as H, InlineConfig as I, WxtCommand as J, WxtBuilder as K, Logger as L, MainWorldContentScriptEntrypointOptions as M, WxtBuilderServer as N, OutputFile as O, PopupEntrypointOptions as P, ServerInfo as Q, ResolvedConfig as R, SidepanelEntrypointOptions as S, TargetBrowser as T, UserConfig as U, HookResult as V, WxtDevServer as W, WxtHooks as X, Wxt as Y, FsCache as Z, ExtensionRunner as _, WxtViteConfig as a, Eslintrc as a0, ResolvedEslintrc as a1, WxtUnimportOptions as a2, WxtResolvedUnimportOptions as a3, WxtPackageManager as a4, Dependency as a5, OutputChunk as b, OutputAsset as c, BuildStepOutput as d, ReloadContentScriptPayload as e, TargetManifestVersion as f, BaseEntrypointOptions as g, BackgroundEntrypointOptions as h, BaseContentScriptEntrypointOptions as i, IsolatedWorldContentScriptEntrypointOptions as j, OptionsEntrypointOptions as k, BaseEntrypoint as l, BackgroundEntrypoint as m, PopupEntrypoint as n, OptionsEntrypoint as o, SidepanelEntrypoint as p, Entrypoint as q, EntrypointGroup as r, OnContentScriptStopped as s, IsolatedWorldContentScriptDefinition as t, MainWorldContentScriptDefinition as u, ContentScriptDefinition as v, BackgroundDefinition as w, UnlistedScriptDefinition as x, PerBrowserOption as y, PerBrowserMap as z };
1205
+ export type { EslintGlobalsPropValue as $, PerBrowserMap as A, BuildOutput as B, ContentScriptEntrypoint as C, ResolvedPerBrowserOptions as D, ExtensionRunnerConfig as E, UserManifest as F, GenericEntrypoint as G, UserManifestFn as H, InlineConfig as I, ConfigEnv as J, WxtCommand as K, Logger as L, MainWorldContentScriptEntrypointOptions as M, WxtBuilder as N, OutputFile as O, PopupEntrypointOptions as P, WxtBuilderServer as Q, ResolvedConfig as R, SidepanelEntrypointOptions as S, TargetBrowser as T, UserConfig as U, ServerInfo as V, WxtDevServer as W, HookResult as X, Wxt as Y, FsCache as Z, ExtensionRunner as _, WxtViteConfig as a, Eslintrc as a0, ResolvedEslintrc as a1, WxtUnimportOptions as a2, WxtResolvedUnimportOptions as a3, WxtPackageManager as a4, Dependency as a5, WxtHooks as b, OutputChunk as c, OutputAsset as d, BuildStepOutput as e, ReloadContentScriptPayload as f, TargetManifestVersion as g, BaseEntrypointOptions as h, BackgroundEntrypointOptions as i, BaseContentScriptEntrypointOptions as j, IsolatedWorldContentScriptEntrypointOptions as k, OptionsEntrypointOptions as l, BaseEntrypoint as m, BackgroundEntrypoint as n, PopupEntrypoint as o, OptionsEntrypoint as p, SidepanelEntrypoint as q, Entrypoint as r, EntrypointGroup as s, OnContentScriptStopped as t, IsolatedWorldContentScriptDefinition as u, MainWorldContentScriptDefinition as v, ContentScriptDefinition as w, BackgroundDefinition as x, UnlistedScriptDefinition as y, PerBrowserOption as z };
@@ -967,6 +967,23 @@ interface ServerInfo {
967
967
  origin: string;
968
968
  }
969
969
  type HookResult = Promise<void> | void;
970
+ interface WxtHooks {
971
+ /**
972
+ * Called when WXT has created Vite's config for a build step. Useful if you
973
+ * want to add plugins or update the vite config per entrypoint group.
974
+ *
975
+ * @param entrypoints The list of entrypoints being built with the provided config.
976
+ * @param viteConfig The config that will be used for the dev server.
977
+ */
978
+ 'vite:build:extendConfig': (entrypoints: readonly Entrypoint[], viteConfig: vite.InlineConfig) => HookResult;
979
+ /**
980
+ * Called when WXT has created Vite's config for the dev server. Useful if
981
+ * you want to add plugins or update the vite config per entrypoint group.
982
+ *
983
+ * @param viteConfig The config that will be used to build the entrypoints. Can be updated by reference.
984
+ */
985
+ 'vite:devServer:extendConfig': (config: vite.InlineConfig) => HookResult;
986
+ }
970
987
  interface WxtHooks {
971
988
  /**
972
989
  * Called after WXT initialization, when the WXT instance is ready to work.
@@ -1185,4 +1202,4 @@ interface Dependency {
1185
1202
  version: string;
1186
1203
  }
1187
1204
 
1188
- export type { EslintGlobalsPropValue as $, ResolvedPerBrowserOptions as A, BuildOutput as B, ContentScriptEntrypoint as C, UserManifest as D, ExtensionRunnerConfig as E, UserManifestFn as F, GenericEntrypoint as G, ConfigEnv as H, InlineConfig as I, WxtCommand as J, WxtBuilder as K, Logger as L, MainWorldContentScriptEntrypointOptions as M, WxtBuilderServer as N, OutputFile as O, PopupEntrypointOptions as P, ServerInfo as Q, ResolvedConfig as R, SidepanelEntrypointOptions as S, TargetBrowser as T, UserConfig as U, HookResult as V, WxtDevServer as W, WxtHooks as X, Wxt as Y, FsCache as Z, ExtensionRunner as _, WxtViteConfig as a, Eslintrc as a0, ResolvedEslintrc as a1, WxtUnimportOptions as a2, WxtResolvedUnimportOptions as a3, WxtPackageManager as a4, Dependency as a5, OutputChunk as b, OutputAsset as c, BuildStepOutput as d, ReloadContentScriptPayload as e, TargetManifestVersion as f, BaseEntrypointOptions as g, BackgroundEntrypointOptions as h, BaseContentScriptEntrypointOptions as i, IsolatedWorldContentScriptEntrypointOptions as j, OptionsEntrypointOptions as k, BaseEntrypoint as l, BackgroundEntrypoint as m, PopupEntrypoint as n, OptionsEntrypoint as o, SidepanelEntrypoint as p, Entrypoint as q, EntrypointGroup as r, OnContentScriptStopped as s, IsolatedWorldContentScriptDefinition as t, MainWorldContentScriptDefinition as u, ContentScriptDefinition as v, BackgroundDefinition as w, UnlistedScriptDefinition as x, PerBrowserOption as y, PerBrowserMap as z };
1205
+ export type { EslintGlobalsPropValue as $, PerBrowserMap as A, BuildOutput as B, ContentScriptEntrypoint as C, ResolvedPerBrowserOptions as D, ExtensionRunnerConfig as E, UserManifest as F, GenericEntrypoint as G, UserManifestFn as H, InlineConfig as I, ConfigEnv as J, WxtCommand as K, Logger as L, MainWorldContentScriptEntrypointOptions as M, WxtBuilder as N, OutputFile as O, PopupEntrypointOptions as P, WxtBuilderServer as Q, ResolvedConfig as R, SidepanelEntrypointOptions as S, TargetBrowser as T, UserConfig as U, ServerInfo as V, WxtDevServer as W, HookResult as X, Wxt as Y, FsCache as Z, ExtensionRunner as _, WxtViteConfig as a, Eslintrc as a0, ResolvedEslintrc as a1, WxtUnimportOptions as a2, WxtResolvedUnimportOptions as a3, WxtPackageManager as a4, Dependency as a5, WxtHooks as b, OutputChunk as c, OutputAsset as d, BuildStepOutput as e, ReloadContentScriptPayload as f, TargetManifestVersion as g, BaseEntrypointOptions as h, BackgroundEntrypointOptions as i, BaseContentScriptEntrypointOptions as j, IsolatedWorldContentScriptEntrypointOptions as k, OptionsEntrypointOptions as l, BaseEntrypoint as m, BackgroundEntrypoint as n, PopupEntrypoint as o, OptionsEntrypoint as p, SidepanelEntrypoint as q, Entrypoint as r, EntrypointGroup as s, OnContentScriptStopped as t, IsolatedWorldContentScriptDefinition as u, MainWorldContentScriptDefinition as v, ContentScriptDefinition as w, BackgroundDefinition as x, UnlistedScriptDefinition as y, PerBrowserOption as z };
package/dist/index.cjs CHANGED
@@ -3257,11 +3257,30 @@ function defineImportMeta() {
3257
3257
  };
3258
3258
  }
3259
3259
 
3260
+ // src/core/utils/arrays.ts
3261
+ function every(array, predicate) {
3262
+ for (let i = 0; i < array.length; i++)
3263
+ if (!predicate(array[i], i))
3264
+ return false;
3265
+ return true;
3266
+ }
3267
+ function some(array, predicate) {
3268
+ for (let i = 0; i < array.length; i++)
3269
+ if (predicate(array[i], i))
3270
+ return true;
3271
+ return false;
3272
+ }
3273
+ function toArray(a) {
3274
+ return Array.isArray(a) ? a : [a];
3275
+ }
3276
+
3260
3277
  // src/core/builders/vite/index.ts
3261
- async function createViteBuilder(wxtConfig, server) {
3278
+ async function createViteBuilder(wxtConfig, hooks, server) {
3262
3279
  const vite = await import("vite");
3263
3280
  const getBaseConfig = async () => {
3264
- const config = await wxtConfig.vite(wxtConfig.env);
3281
+ const config = await wxtConfig.vite({
3282
+ ...wxtConfig.env
3283
+ });
3265
3284
  config.root = wxtConfig.root;
3266
3285
  config.configFile = false;
3267
3286
  config.logLevel = "warn";
@@ -3406,6 +3425,11 @@ async function createViteBuilder(wxtConfig, server) {
3406
3425
  else
3407
3426
  entryConfig = getLibModeConfig(group);
3408
3427
  const buildConfig = vite.mergeConfig(await getBaseConfig(), entryConfig);
3428
+ await hooks.callHook(
3429
+ "vite:build:extendConfig",
3430
+ toArray(group),
3431
+ buildConfig
3432
+ );
3409
3433
  const result = await vite.build(buildConfig);
3410
3434
  return {
3411
3435
  entrypoints: group,
@@ -3422,9 +3446,9 @@ async function createViteBuilder(wxtConfig, server) {
3422
3446
  }
3423
3447
  };
3424
3448
  const baseConfig = await getBaseConfig();
3425
- const viteServer = await vite.createServer(
3426
- vite.mergeConfig(baseConfig, serverConfig)
3427
- );
3449
+ const finalConfig = vite.mergeConfig(baseConfig, serverConfig);
3450
+ await hooks.callHook("vite:devServer:extendConfig", finalConfig);
3451
+ const viteServer = await vite.createServer(finalConfig);
3428
3452
  const server2 = {
3429
3453
  async listen() {
3430
3454
  await viteServer.listen(info.port);
@@ -3480,7 +3504,7 @@ async function registerWxt(command, inlineConfig = {}, getServer) {
3480
3504
  const hooks = (0, import_hookable.createHooks)();
3481
3505
  const config = await resolveConfig(inlineConfig, command);
3482
3506
  const server = await getServer?.(config);
3483
- const builder = await createViteBuilder(config, server);
3507
+ const builder = await createViteBuilder(config, hooks, server);
3484
3508
  const pm = await createWxtPackageManager(config.root);
3485
3509
  wxt = {
3486
3510
  config,
@@ -3517,25 +3541,6 @@ async function getPublicFiles() {
3517
3541
  var import_fs_extra5 = __toESM(require("fs-extra"), 1);
3518
3542
  var import_path3 = require("path");
3519
3543
  var import_picocolors = __toESM(require("picocolors"), 1);
3520
-
3521
- // src/core/utils/arrays.ts
3522
- function every(array, predicate) {
3523
- for (let i = 0; i < array.length; i++)
3524
- if (!predicate(array[i], i))
3525
- return false;
3526
- return true;
3527
- }
3528
- function some(array, predicate) {
3529
- for (let i = 0; i < array.length; i++)
3530
- if (predicate(array[i], i))
3531
- return true;
3532
- return false;
3533
- }
3534
- function toArray(a) {
3535
- return Array.isArray(a) ? a : [a];
3536
- }
3537
-
3538
- // src/core/utils/building/build-entrypoints.ts
3539
3544
  async function buildEntrypoints(groups, spinner) {
3540
3545
  const steps = [];
3541
3546
  for (let i = 0; i < groups.length; i++) {
@@ -4831,7 +4836,7 @@ function getChunkSortWeight(filename) {
4831
4836
  var import_picocolors4 = __toESM(require("picocolors"), 1);
4832
4837
 
4833
4838
  // package.json
4834
- var version = "0.17.11";
4839
+ var version = "0.17.12";
4835
4840
 
4836
4841
  // src/core/utils/log/printHeader.ts
4837
4842
  var import_consola2 = require("consola");
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-2A45qoLY.cjs';
2
- export { w as BackgroundDefinition, m as BackgroundEntrypoint, h as BackgroundEntrypointOptions, i as BaseContentScriptEntrypointOptions, l as BaseEntrypoint, g as BaseEntrypointOptions, d as BuildStepOutput, H as ConfigEnv, v as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, q as Entrypoint, r as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, V as HookResult, t as IsolatedWorldContentScriptDefinition, j as IsolatedWorldContentScriptEntrypointOptions, L as Logger, u as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, s as OnContentScriptStopped, o as OptionsEntrypoint, k as OptionsEntrypointOptions, c as OutputAsset, b as OutputChunk, O as OutputFile, z as PerBrowserMap, y as PerBrowserOption, n as PopupEntrypoint, P as PopupEntrypointOptions, e as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, A as ResolvedPerBrowserOptions, Q as ServerInfo, p as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, f as TargetManifestVersion, x as UnlistedScriptDefinition, D as UserManifest, F as UserManifestFn, Y as Wxt, K as WxtBuilder, N as WxtBuilderServer, J as WxtCommand, X as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-2A45qoLY.cjs';
1
+ import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-NHTTcok1.cjs';
2
+ export { x as BackgroundDefinition, n as BackgroundEntrypoint, i as BackgroundEntrypointOptions, j as BaseContentScriptEntrypointOptions, m as BaseEntrypoint, h as BaseEntrypointOptions, e as BuildStepOutput, J as ConfigEnv, w as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, r as Entrypoint, s as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, X as HookResult, u as IsolatedWorldContentScriptDefinition, k as IsolatedWorldContentScriptEntrypointOptions, L as Logger, v as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, t as OnContentScriptStopped, p as OptionsEntrypoint, l as OptionsEntrypointOptions, d as OutputAsset, c as OutputChunk, O as OutputFile, A as PerBrowserMap, z as PerBrowserOption, o as PopupEntrypoint, P as PopupEntrypointOptions, f as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, D as ResolvedPerBrowserOptions, V as ServerInfo, q as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, g as TargetManifestVersion, y as UnlistedScriptDefinition, F as UserManifest, H as UserManifestFn, Y as Wxt, N as WxtBuilder, Q as WxtBuilderServer, K as WxtCommand, b as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-NHTTcok1.cjs';
3
3
  import 'vite';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
@@ -65,6 +65,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
65
65
  */
66
66
  declare function zip(config?: InlineConfig): Promise<string[]>;
67
67
 
68
- var version = "0.17.11";
68
+ var version = "0.17.12";
69
69
 
70
70
  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-2A45qoLY.js';
2
- export { w as BackgroundDefinition, m as BackgroundEntrypoint, h as BackgroundEntrypointOptions, i as BaseContentScriptEntrypointOptions, l as BaseEntrypoint, g as BaseEntrypointOptions, d as BuildStepOutput, H as ConfigEnv, v as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, q as Entrypoint, r as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, V as HookResult, t as IsolatedWorldContentScriptDefinition, j as IsolatedWorldContentScriptEntrypointOptions, L as Logger, u as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, s as OnContentScriptStopped, o as OptionsEntrypoint, k as OptionsEntrypointOptions, c as OutputAsset, b as OutputChunk, O as OutputFile, z as PerBrowserMap, y as PerBrowserOption, n as PopupEntrypoint, P as PopupEntrypointOptions, e as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, A as ResolvedPerBrowserOptions, Q as ServerInfo, p as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, f as TargetManifestVersion, x as UnlistedScriptDefinition, D as UserManifest, F as UserManifestFn, Y as Wxt, K as WxtBuilder, N as WxtBuilderServer, J as WxtCommand, X as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-2A45qoLY.js';
1
+ import { I as InlineConfig, B as BuildOutput, U as UserConfig, E as ExtensionRunnerConfig, W as WxtDevServer } from './index-NHTTcok1.js';
2
+ export { x as BackgroundDefinition, n as BackgroundEntrypoint, i as BackgroundEntrypointOptions, j as BaseContentScriptEntrypointOptions, m as BaseEntrypoint, h as BaseEntrypointOptions, e as BuildStepOutput, J as ConfigEnv, w as ContentScriptDefinition, C as ContentScriptEntrypoint, a5 as Dependency, r as Entrypoint, s as EntrypointGroup, $ as EslintGlobalsPropValue, a0 as Eslintrc, _ as ExtensionRunner, Z as FsCache, G as GenericEntrypoint, X as HookResult, u as IsolatedWorldContentScriptDefinition, k as IsolatedWorldContentScriptEntrypointOptions, L as Logger, v as MainWorldContentScriptDefinition, M as MainWorldContentScriptEntrypointOptions, t as OnContentScriptStopped, p as OptionsEntrypoint, l as OptionsEntrypointOptions, d as OutputAsset, c as OutputChunk, O as OutputFile, A as PerBrowserMap, z as PerBrowserOption, o as PopupEntrypoint, P as PopupEntrypointOptions, f as ReloadContentScriptPayload, R as ResolvedConfig, a1 as ResolvedEslintrc, D as ResolvedPerBrowserOptions, V as ServerInfo, q as SidepanelEntrypoint, S as SidepanelEntrypointOptions, T as TargetBrowser, g as TargetManifestVersion, y as UnlistedScriptDefinition, F as UserManifest, H as UserManifestFn, Y as Wxt, N as WxtBuilder, Q as WxtBuilderServer, K as WxtCommand, b as WxtHooks, a4 as WxtPackageManager, a3 as WxtResolvedUnimportOptions, a2 as WxtUnimportOptions, a as WxtViteConfig } from './index-NHTTcok1.js';
3
3
  import 'vite';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
@@ -65,6 +65,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
65
65
  */
66
66
  declare function zip(config?: InlineConfig): Promise<string[]>;
67
67
 
68
- var version = "0.17.11";
68
+ var version = "0.17.12";
69
69
 
70
70
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  unnormalizePath,
20
20
  version,
21
21
  wxt
22
- } from "./chunk-XFXYT75Z.js";
22
+ } from "./chunk-C4ZVXF53.js";
23
23
  import "./chunk-5X3S6AWF.js";
24
24
  import "./chunk-VBXJIVYU.js";
25
25
 
@@ -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-2A45qoLY.cjs';
3
+ import { I as InlineConfig } from './index-NHTTcok1.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-2A45qoLY.js';
3
+ import { I as InlineConfig } from './index-NHTTcok1.js';
4
4
  import 'webextension-polyfill';
5
5
  import 'unimport';
6
6
  import 'consola';
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-XFXYT75Z.js";
8
+ } from "./chunk-C4ZVXF53.js";
9
9
  import "./chunk-5X3S6AWF.js";
10
10
  import "./chunk-VBXJIVYU.js";
11
11
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.17.11",
4
+ "version": "0.17.12",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",