wxt 0.8.5 → 0.8.7

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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.8.5";
2
+ var version = "0.8.7";
3
3
 
4
4
  // src/core/utils/entrypoints.ts
5
5
  import path, { relative, resolve } from "node:path";
@@ -281,6 +281,25 @@ function webextensionPolyfillAlias(config) {
281
281
  };
282
282
  }
283
283
 
284
+ // src/core/vite-plugins/webextensionPolyfillInlineDeps.ts
285
+ function webextensionPolyfillInlineDeps() {
286
+ return {
287
+ name: "wxt:testing-inline-deps",
288
+ config() {
289
+ const wxtModules = ["wxt/browser", "wxt/client"];
290
+ return {
291
+ test: {
292
+ server: {
293
+ deps: {
294
+ inline: [...wxtModules]
295
+ }
296
+ }
297
+ }
298
+ };
299
+ }
300
+ };
301
+ }
302
+
284
303
  // src/core/vite-plugins/devHtmlPrerender.ts
285
304
  import { parseHTML } from "linkedom";
286
305
  import { dirname, isAbsolute, relative as relative2, resolve as resolve2 } from "path";
@@ -901,7 +920,7 @@ async function writePathsDeclarationFile(entrypoints, config) {
901
920
  import "wxt/browser";
902
921
 
903
922
  declare module "wxt/browser" {
904
- type PublicPath =
923
+ export type PublicPath =
905
924
  {{ union }}
906
925
  export interface WxtRuntime extends Runtime.Static {
907
926
  getURL(path: PublicPath): string;
@@ -2055,7 +2074,7 @@ async function internalBuild(config) {
2055
2074
  return output;
2056
2075
  }
2057
2076
  async function combineAnalysisStats(config) {
2058
- const { execaCommand } = await import("./execa-WKZHVHC5.js");
2077
+ const { execaCommand } = await import("./execa-Z7B33P3C.js");
2059
2078
  const unixFiles = await glob2(`stats-*.json`, {
2060
2079
  cwd: config.outDir,
2061
2080
  absolute: true
@@ -2375,6 +2394,7 @@ export {
2375
2394
  tsconfigPaths,
2376
2395
  globals,
2377
2396
  webextensionPolyfillAlias,
2397
+ webextensionPolyfillInlineDeps,
2378
2398
  detectDevChanges,
2379
2399
  findEntrypoints,
2380
2400
  generateTypesDir,