wxt 0.8.5 → 0.8.6

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.6";
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";
@@ -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,
package/dist/cli.cjs CHANGED
@@ -2194,7 +2194,7 @@ var init_execa = __esm({
2194
2194
  var import_cac = __toESM(require("cac"), 1);
2195
2195
 
2196
2196
  // package.json
2197
- var version = "0.8.5";
2197
+ var version = "0.8.6";
2198
2198
 
2199
2199
  // src/core/utils/building/build-entrypoints.ts
2200
2200
  var vite2 = __toESM(require("vite"), 1);
package/dist/index.cjs CHANGED
@@ -3964,7 +3964,7 @@ function getChunkSortWeight(filename) {
3964
3964
  var import_picocolors3 = __toESM(require("picocolors"), 1);
3965
3965
 
3966
3966
  // package.json
3967
- var version = "0.8.5";
3967
+ var version = "0.8.6";
3968
3968
 
3969
3969
  // src/core/utils/log/printHeader.ts
3970
3970
  var import_consola2 = require("consola");
package/dist/index.d.cts CHANGED
@@ -61,6 +61,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
61
61
  */
62
62
  declare function zip(config?: InlineConfig): Promise<string[]>;
63
63
 
64
- var version = "0.8.5";
64
+ var version = "0.8.6";
65
65
 
66
66
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.d.ts CHANGED
@@ -61,6 +61,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
61
61
  */
62
62
  declare function zip(config?: InlineConfig): Promise<string[]>;
63
63
 
64
- var version = "0.8.5";
64
+ var version = "0.8.6";
65
65
 
66
66
  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-NTYO6B6Y.js";
18
+ } from "./chunk-VFZ5667B.js";
19
19
  import "./chunk-YUG22S6W.js";
20
20
 
21
21
  // src/core/build.ts
package/dist/testing.cjs CHANGED
@@ -490,6 +490,25 @@ function webextensionPolyfillAlias(config) {
490
490
  };
491
491
  }
492
492
 
493
+ // src/core/vite-plugins/webextensionPolyfillInlineDeps.ts
494
+ function webextensionPolyfillInlineDeps() {
495
+ return {
496
+ name: "wxt:testing-inline-deps",
497
+ config() {
498
+ const wxtModules = ["wxt/browser", "wxt/client"];
499
+ return {
500
+ test: {
501
+ server: {
502
+ deps: {
503
+ inline: [...wxtModules]
504
+ }
505
+ }
506
+ }
507
+ };
508
+ }
509
+ };
510
+ }
511
+
493
512
  // src/core/utils/building/build-entrypoints.ts
494
513
  var vite2 = __toESM(require("vite"), 1);
495
514
 
@@ -826,6 +845,7 @@ var vite4 = __toESM(require("vite"), 1);
826
845
  function WxtVitest(inlineConfig) {
827
846
  return getInternalConfig(inlineConfig ?? {}, "serve").then((config) => [
828
847
  webextensionPolyfillAlias(config),
848
+ webextensionPolyfillInlineDeps(),
829
849
  unimport(config),
830
850
  globals(config),
831
851
  download(config),
package/dist/testing.js CHANGED
@@ -4,8 +4,9 @@ import {
4
4
  globals,
5
5
  tsconfigPaths,
6
6
  unimport,
7
- webextensionPolyfillAlias
8
- } from "./chunk-NTYO6B6Y.js";
7
+ webextensionPolyfillAlias,
8
+ webextensionPolyfillInlineDeps
9
+ } from "./chunk-VFZ5667B.js";
9
10
  import "./chunk-YUG22S6W.js";
10
11
 
11
12
  // src/testing/fake-browser.ts
@@ -15,6 +16,7 @@ import { fakeBrowser } from "@webext-core/fake-browser";
15
16
  function WxtVitest(inlineConfig) {
16
17
  return getInternalConfig(inlineConfig ?? {}, "serve").then((config) => [
17
18
  webextensionPolyfillAlias(config),
19
+ webextensionPolyfillInlineDeps(),
18
20
  unimport(config),
19
21
  globals(config),
20
22
  download(config),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.8.5",
4
+ "version": "0.8.6",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",