wxt 0.17.12 → 0.18.0

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.
@@ -4,9 +4,9 @@ import {
4
4
  __toESM
5
5
  } from "./chunk-VBXJIVYU.js";
6
6
 
7
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
7
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
8
8
  var require_windows = __commonJS({
9
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
9
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
10
10
  "use strict";
11
11
  module.exports = isexe;
12
12
  isexe.sync = sync;
@@ -45,9 +45,9 @@ var require_windows = __commonJS({
45
45
  }
46
46
  });
47
47
 
48
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
48
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
49
49
  var require_mode = __commonJS({
50
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
50
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
51
51
  "use strict";
52
52
  module.exports = isexe;
53
53
  isexe.sync = sync;
@@ -79,9 +79,9 @@ var require_mode = __commonJS({
79
79
  }
80
80
  });
81
81
 
82
- // node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
82
+ // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
83
83
  var require_isexe = __commonJS({
84
- "node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
84
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
85
85
  "use strict";
86
86
  var fs = __require("fs");
87
87
  var core;
@@ -135,9 +135,9 @@ var require_isexe = __commonJS({
135
135
  }
136
136
  });
137
137
 
138
- // node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
138
+ // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
139
139
  var require_which = __commonJS({
140
- "node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
140
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
141
141
  "use strict";
142
142
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
143
143
  var path3 = __require("path");
@@ -232,9 +232,9 @@ var require_which = __commonJS({
232
232
  }
233
233
  });
234
234
 
235
- // node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
235
+ // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
236
236
  var require_path_key = __commonJS({
237
- "node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
237
+ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
238
238
  "use strict";
239
239
  var pathKey2 = (options = {}) => {
240
240
  const environment = options.env || process.env;
@@ -249,9 +249,9 @@ var require_path_key = __commonJS({
249
249
  }
250
250
  });
251
251
 
252
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
252
+ // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
253
253
  var require_resolveCommand = __commonJS({
254
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
254
+ "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
255
255
  "use strict";
256
256
  var path3 = __require("path");
257
257
  var which = require_which();
@@ -291,9 +291,9 @@ var require_resolveCommand = __commonJS({
291
291
  }
292
292
  });
293
293
 
294
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
294
+ // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
295
295
  var require_escape = __commonJS({
296
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
296
+ "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
297
297
  "use strict";
298
298
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
299
299
  function escapeCommand(arg) {
@@ -316,17 +316,17 @@ var require_escape = __commonJS({
316
316
  }
317
317
  });
318
318
 
319
- // node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
319
+ // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
320
320
  var require_shebang_regex = __commonJS({
321
- "node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
321
+ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
322
322
  "use strict";
323
323
  module.exports = /^#!(.*)/;
324
324
  }
325
325
  });
326
326
 
327
- // node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
327
+ // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
328
328
  var require_shebang_command = __commonJS({
329
- "node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
329
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
330
330
  "use strict";
331
331
  var shebangRegex = require_shebang_regex();
332
332
  module.exports = (string = "") => {
@@ -344,9 +344,9 @@ var require_shebang_command = __commonJS({
344
344
  }
345
345
  });
346
346
 
347
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
347
+ // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
348
348
  var require_readShebang = __commonJS({
349
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
349
+ "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
350
350
  "use strict";
351
351
  var fs = __require("fs");
352
352
  var shebangCommand = require_shebang_command();
@@ -366,9 +366,9 @@ var require_readShebang = __commonJS({
366
366
  }
367
367
  });
368
368
 
369
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
369
+ // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
370
370
  var require_parse = __commonJS({
371
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module) {
371
+ "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module) {
372
372
  "use strict";
373
373
  var path3 = __require("path");
374
374
  var resolveCommand = require_resolveCommand();
@@ -428,9 +428,9 @@ var require_parse = __commonJS({
428
428
  }
429
429
  });
430
430
 
431
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
431
+ // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
432
432
  var require_enoent = __commonJS({
433
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
433
+ "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
434
434
  "use strict";
435
435
  var isWin = process.platform === "win32";
436
436
  function notFoundError(original, syscall) {
@@ -478,9 +478,9 @@ var require_enoent = __commonJS({
478
478
  }
479
479
  });
480
480
 
481
- // node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
481
+ // ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
482
482
  var require_cross_spawn = __commonJS({
483
- "node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module) {
483
+ "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module) {
484
484
  "use strict";
485
485
  var cp = __require("child_process");
486
486
  var parse = require_parse();
@@ -505,9 +505,9 @@ var require_cross_spawn = __commonJS({
505
505
  }
506
506
  });
507
507
 
508
- // node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
508
+ // ../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
509
509
  var require_merge_stream = __commonJS({
510
- "node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module) {
510
+ "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module) {
511
511
  "use strict";
512
512
  var { PassThrough } = __require("stream");
513
513
  module.exports = function() {
@@ -545,14 +545,14 @@ var require_merge_stream = __commonJS({
545
545
  }
546
546
  });
547
547
 
548
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
548
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
549
549
  var import_cross_spawn = __toESM(require_cross_spawn(), 1);
550
550
  import { Buffer as Buffer3 } from "node:buffer";
551
551
  import path2 from "node:path";
552
552
  import childProcess from "node:child_process";
553
553
  import process6 from "node:process";
554
554
 
555
- // node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
555
+ // ../../node_modules/.pnpm/strip-final-newline@3.0.0/node_modules/strip-final-newline/index.js
556
556
  function stripFinalNewline(input) {
557
557
  const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
558
558
  const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
@@ -565,12 +565,12 @@ function stripFinalNewline(input) {
565
565
  return input;
566
566
  }
567
567
 
568
- // node_modules/.pnpm/npm-run-path@5.1.0/node_modules/npm-run-path/index.js
568
+ // ../../node_modules/.pnpm/npm-run-path@5.1.0/node_modules/npm-run-path/index.js
569
569
  import process2 from "node:process";
570
570
  import path from "node:path";
571
571
  import url from "node:url";
572
572
 
573
- // node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
573
+ // ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
574
574
  function pathKey(options = {}) {
575
575
  const {
576
576
  env = process.env,
@@ -582,7 +582,7 @@ function pathKey(options = {}) {
582
582
  return Object.keys(env).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
583
583
  }
584
584
 
585
- // node_modules/.pnpm/npm-run-path@5.1.0/node_modules/npm-run-path/index.js
585
+ // ../../node_modules/.pnpm/npm-run-path@5.1.0/node_modules/npm-run-path/index.js
586
586
  function npmRunPath(options = {}) {
587
587
  const {
588
588
  cwd = process2.cwd(),
@@ -609,7 +609,7 @@ function npmRunPathEnv({ env = process2.env, ...options } = {}) {
609
609
  return env;
610
610
  }
611
611
 
612
- // node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
612
+ // ../../node_modules/.pnpm/mimic-fn@4.0.0/node_modules/mimic-fn/index.js
613
613
  var copyProperty = (to, from, property, ignoreNonConfigurable) => {
614
614
  if (property === "length" || property === "prototype") {
615
615
  return;
@@ -654,7 +654,7 @@ function mimicFunction(to, from, { ignoreNonConfigurable = false } = {}) {
654
654
  return to;
655
655
  }
656
656
 
657
- // node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
657
+ // ../../node_modules/.pnpm/onetime@6.0.0/node_modules/onetime/index.js
658
658
  var calledFunctions = /* @__PURE__ */ new WeakMap();
659
659
  var onetime = (function_, options = {}) => {
660
660
  if (typeof function_ !== "function") {
@@ -685,13 +685,13 @@ onetime.callCount = (function_) => {
685
685
  };
686
686
  var onetime_default = onetime;
687
687
 
688
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
688
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
689
689
  import process3 from "node:process";
690
690
 
691
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
691
+ // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
692
692
  import { constants as constants2 } from "node:os";
693
693
 
694
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
694
+ // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/realtime.js
695
695
  var getRealtimeSignals = () => {
696
696
  const length = SIGRTMAX - SIGRTMIN + 1;
697
697
  return Array.from({ length }, getRealtimeSignal);
@@ -706,10 +706,10 @@ var getRealtimeSignal = (value, index) => ({
706
706
  var SIGRTMIN = 34;
707
707
  var SIGRTMAX = 64;
708
708
 
709
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
709
+ // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
710
710
  import { constants } from "node:os";
711
711
 
712
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
712
+ // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/core.js
713
713
  var SIGNALS = [
714
714
  {
715
715
  name: "SIGHUP",
@@ -982,7 +982,7 @@ var SIGNALS = [
982
982
  }
983
983
  ];
984
984
 
985
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
985
+ // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/signals.js
986
986
  var getSignals = () => {
987
987
  const realtimeSignals = getRealtimeSignals();
988
988
  const signals2 = [...SIGNALS, ...realtimeSignals].map(normalizeSignal);
@@ -1004,7 +1004,7 @@ var normalizeSignal = ({
1004
1004
  return { name, number, description, supported, action, forced, standard };
1005
1005
  };
1006
1006
 
1007
- // node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
1007
+ // ../../node_modules/.pnpm/human-signals@5.0.0/node_modules/human-signals/build/src/main.js
1008
1008
  var getSignalsByName = () => {
1009
1009
  const signals2 = getSignals();
1010
1010
  return Object.fromEntries(signals2.map(getSignalByName));
@@ -1055,7 +1055,7 @@ var findSignalByNumber = (number, signals2) => {
1055
1055
  };
1056
1056
  var signalsByNumber = getSignalsByNumber();
1057
1057
 
1058
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
1058
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/error.js
1059
1059
  var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
1060
1060
  if (timedOut) {
1061
1061
  return `timed out after ${timeout} milliseconds`;
@@ -1126,7 +1126,7 @@ ${error.message}` : execaMessage;
1126
1126
  return error;
1127
1127
  };
1128
1128
 
1129
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
1129
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stdio.js
1130
1130
  var aliases = ["stdin", "stdout", "stderr"];
1131
1131
  var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
1132
1132
  var normalizeStdio = (options) => {
@@ -1163,10 +1163,10 @@ var normalizeStdioNode = (options) => {
1163
1163
  return [...stdio, "ipc"];
1164
1164
  };
1165
1165
 
1166
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
1166
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
1167
1167
  import os from "node:os";
1168
1168
 
1169
- // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
1169
+ // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/signals.js
1170
1170
  var signals = [];
1171
1171
  signals.push("SIGHUP", "SIGINT", "SIGTERM");
1172
1172
  if (process.platform !== "win32") {
@@ -1190,7 +1190,7 @@ if (process.platform === "linux") {
1190
1190
  signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
1191
1191
  }
1192
1192
 
1193
- // node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
1193
+ // ../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/signal-exit/dist/mjs/index.js
1194
1194
  var processOk = (process7) => !!process7 && typeof process7 === "object" && typeof process7.removeListener === "function" && typeof process7.emit === "function" && typeof process7.reallyExit === "function" && typeof process7.listeners === "function" && typeof process7.kill === "function" && typeof process7.pid === "number" && typeof process7.on === "function";
1195
1195
  var kExitEmitter = Symbol.for("signal-exit emitter");
1196
1196
  var global2 = globalThis;
@@ -1417,7 +1417,7 @@ var {
1417
1417
  unload
1418
1418
  } = signalExitWrap(processOk(process4) ? new SignalExit(process4) : new SignalExitFallback());
1419
1419
 
1420
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
1420
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/kill.js
1421
1421
  var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
1422
1422
  var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
1423
1423
  const killResult = kill(signal);
@@ -1489,11 +1489,11 @@ var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
1489
1489
  });
1490
1490
  };
1491
1491
 
1492
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1492
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1493
1493
  import { createWriteStream } from "node:fs";
1494
1494
  import { ChildProcess } from "node:child_process";
1495
1495
 
1496
- // node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
1496
+ // ../../node_modules/.pnpm/is-stream@3.0.0/node_modules/is-stream/index.js
1497
1497
  function isStream(stream) {
1498
1498
  return stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
1499
1499
  }
@@ -1501,7 +1501,7 @@ function isWritableStream(stream) {
1501
1501
  return isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
1502
1502
  }
1503
1503
 
1504
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1504
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/pipe.js
1505
1505
  var isExecaChildProcess = (target) => target instanceof ChildProcess && typeof target.then === "function";
1506
1506
  var pipeToTarget = (spawned, streamName, target) => {
1507
1507
  if (typeof target === "string") {
@@ -1533,11 +1533,11 @@ var addPipeMethods = (spawned) => {
1533
1533
  }
1534
1534
  };
1535
1535
 
1536
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1536
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1537
1537
  import { createReadStream, readFileSync } from "node:fs";
1538
1538
  import { setTimeout as setTimeout2 } from "node:timers/promises";
1539
1539
 
1540
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
1540
+ // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/contents.js
1541
1541
  var getStreamContents = async (stream, { init, convertChunk, getSize, truncateChunk, addChunk, getFinalChunk, finalize }, { maxBuffer = Number.POSITIVE_INFINITY } = {}) => {
1542
1542
  if (!isAsyncIterable(stream)) {
1543
1543
  throw new Error("The first argument must be a Readable, a ReadableStream, or an async iterable.");
@@ -1612,7 +1612,7 @@ var MaxBufferError = class extends Error {
1612
1612
  }
1613
1613
  };
1614
1614
 
1615
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
1615
+ // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/utils.js
1616
1616
  var identity = (value) => value;
1617
1617
  var noop = () => void 0;
1618
1618
  var getContentsProp = ({ contents }) => contents;
@@ -1621,7 +1621,7 @@ var throwObjectStream = (chunk) => {
1621
1621
  };
1622
1622
  var getLengthProp = (convertedChunk) => convertedChunk.length;
1623
1623
 
1624
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
1624
+ // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/array-buffer.js
1625
1625
  async function getStreamAsArrayBuffer(stream, options) {
1626
1626
  return getStreamContents(stream, arrayBufferMethods, options);
1627
1627
  }
@@ -1674,7 +1674,7 @@ var arrayBufferMethods = {
1674
1674
  finalize: finalizeArrayBuffer
1675
1675
  };
1676
1676
 
1677
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
1677
+ // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/buffer.js
1678
1678
  async function getStreamAsBuffer(stream, options) {
1679
1679
  if (!("Buffer" in globalThis)) {
1680
1680
  throw new Error("getStreamAsBuffer() is only supported in Node.js");
@@ -1690,7 +1690,7 @@ async function getStreamAsBuffer(stream, options) {
1690
1690
  }
1691
1691
  var arrayBufferToNodeBuffer = (arrayBuffer) => globalThis.Buffer.from(arrayBuffer);
1692
1692
 
1693
- // node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
1693
+ // ../../node_modules/.pnpm/get-stream@8.0.1/node_modules/get-stream/source/string.js
1694
1694
  async function getStreamAsString(stream, options) {
1695
1695
  return getStreamContents(stream, stringMethods, options);
1696
1696
  }
@@ -1719,7 +1719,7 @@ var stringMethods = {
1719
1719
  finalize: getContentsProp
1720
1720
  };
1721
1721
 
1722
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1722
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/stream.js
1723
1723
  var import_merge_stream = __toESM(require_merge_stream(), 1);
1724
1724
  var validateInputOptions = (input) => {
1725
1725
  if (input !== void 0) {
@@ -1815,7 +1815,7 @@ var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBu
1815
1815
  }
1816
1816
  };
1817
1817
 
1818
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
1818
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/promise.js
1819
1819
  var nativePromisePrototype = (async () => {
1820
1820
  })().constructor.prototype;
1821
1821
  var descriptors = ["then", "catch", "finally"].map((property) => [
@@ -1842,7 +1842,7 @@ var getSpawnedPromise = (spawned) => new Promise((resolve, reject) => {
1842
1842
  }
1843
1843
  });
1844
1844
 
1845
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
1845
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/command.js
1846
1846
  import { Buffer as Buffer2 } from "node:buffer";
1847
1847
  import { ChildProcess as ChildProcess2 } from "node:child_process";
1848
1848
  var normalizeArgs = (file, args = []) => {
@@ -1925,7 +1925,7 @@ var parseTemplates = (templates, expressions) => {
1925
1925
  return tokens;
1926
1926
  };
1927
1927
 
1928
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
1928
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/lib/verbose.js
1929
1929
  import { debuglog } from "node:util";
1930
1930
  import process5 from "node:process";
1931
1931
  var verboseDefault = debuglog("execa").enabled;
@@ -1942,7 +1942,7 @@ var logCommand = (escapedCommand, { verbose }) => {
1942
1942
  `);
1943
1943
  };
1944
1944
 
1945
- // node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
1945
+ // ../../node_modules/.pnpm/execa@8.0.1/node_modules/execa/index.js
1946
1946
  var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
1947
1947
  var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
1948
1948
  const env = extendEnv ? { ...process6.env, ...envOption } : envOption;
@@ -205,8 +205,8 @@ interface BaseContentScriptEntrypointOptions extends BaseEntrypointOptions {
205
205
  * - `"manifest"`: The content script will be added to the `content_scripts` entry in the
206
206
  * manifest. This is the normal and most well known way of registering a content script.
207
207
  * - `"runtime"`: The content script's `matches` is added to `host_permissions` and you are
208
- * responsible for using the scripting API to register the content script dynamically at
209
- * runtime.
208
+ * responsible for using the scripting API to register/execute the content script
209
+ * dynamically at runtime.
210
210
  *
211
211
  * @default "manifest"
212
212
  */
@@ -228,14 +228,22 @@ interface IsolatedWorldContentScriptEntrypointOptions extends BaseContentScriptE
228
228
  interface IsolatedWorldContentScriptDefinition extends IsolatedWorldContentScriptEntrypointOptions {
229
229
  /**
230
230
  * Main function executed when the content script is loaded.
231
+ *
232
+ * When running a content script with `browser.scripting.executeScript`,
233
+ * values returned from this function will be returned in the `executeScript`
234
+ * result as well. Otherwise returning a value does nothing.
231
235
  */
232
- main(ctx: ContentScriptContext): void | Promise<void>;
236
+ main(ctx: ContentScriptContext): any | Promise<any>;
233
237
  }
234
238
  interface MainWorldContentScriptDefinition extends MainWorldContentScriptEntrypointOptions {
235
239
  /**
236
240
  * Main function executed when the content script is loaded.
241
+ *
242
+ * When running a content script with `browser.scripting.executeScript`,
243
+ * values returned from this function will be returned in the `executeScript`
244
+ * result as well. Otherwise returning a value does nothing.
237
245
  */
238
- main(): void | Promise<void>;
246
+ main(): any | Promise<any>;
239
247
  }
240
248
  type ContentScriptDefinition = IsolatedWorldContentScriptDefinition | MainWorldContentScriptDefinition;
241
249
  interface BackgroundDefinition extends BackgroundEntrypointOptions {
@@ -247,8 +255,12 @@ interface BackgroundDefinition extends BackgroundEntrypointOptions {
247
255
  interface UnlistedScriptDefinition extends BaseEntrypointOptions {
248
256
  /**
249
257
  * Main function executed when the unlisted script is ran.
258
+ *
259
+ * When running a content script with `browser.scripting.executeScript`,
260
+ * values returned from this function will be returned in the `executeScript`
261
+ * result as well. Otherwise returning a value does nothing.
250
262
  */
251
- main(): void | Promise<void>;
263
+ main(): any | Promise<any>;
252
264
  }
253
265
  /**
254
266
  * Either a single value or a map of different browsers to the value for that browser.
@@ -320,6 +320,14 @@ interface InlineConfig {
320
320
  * ["@scope/package-name@1.1.3", "package-name@^2"]
321
321
  */
322
322
  downloadPackages?: string[];
323
+ /**
324
+ * Compression level to use when zipping files.
325
+ *
326
+ * Levels: 0 (no compression) to 9 (maximum compression).
327
+ *
328
+ * @default 9
329
+ */
330
+ compressionLevel?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
323
331
  };
324
332
  /**
325
333
  * @deprecated Use `hooks.build.manifestGenerated` to modify your manifest instead. This option
@@ -421,6 +429,15 @@ interface InlineConfig {
421
429
  * })
422
430
  */
423
431
  includeBrowserPolyfill?: boolean;
432
+ /**
433
+ * When set to `true`, use the Vite Runtime API to load entrypoint options instead of the default, `jiti`.
434
+ *
435
+ * Lets you use imported variables and leverage your Vite config to add support for non-standard APIs/syntax.
436
+ *
437
+ * @experimental Early access to try out the feature before it becomes the default.
438
+ * @default false
439
+ */
440
+ viteRuntime?: boolean;
424
441
  };
425
442
  /**
426
443
  * Config effecting dev mode only.
@@ -647,8 +664,8 @@ interface BaseContentScriptEntrypointOptions extends BaseEntrypointOptions {
647
664
  * - `"manifest"`: The content script will be added to the `content_scripts` entry in the
648
665
  * manifest. This is the normal and most well known way of registering a content script.
649
666
  * - `"runtime"`: The content script's `matches` is added to `host_permissions` and you are
650
- * responsible for using the scripting API to register the content script dynamically at
651
- * runtime.
667
+ * responsible for using the scripting API to register/execute the content script
668
+ * dynamically at runtime.
652
669
  *
653
670
  * @default "manifest"
654
671
  */
@@ -753,14 +770,22 @@ type OnContentScriptStopped = (cb: () => void) => void;
753
770
  interface IsolatedWorldContentScriptDefinition extends IsolatedWorldContentScriptEntrypointOptions {
754
771
  /**
755
772
  * Main function executed when the content script is loaded.
773
+ *
774
+ * When running a content script with `browser.scripting.executeScript`,
775
+ * values returned from this function will be returned in the `executeScript`
776
+ * result as well. Otherwise returning a value does nothing.
756
777
  */
757
- main(ctx: ContentScriptContext): void | Promise<void>;
778
+ main(ctx: ContentScriptContext): any | Promise<any>;
758
779
  }
759
780
  interface MainWorldContentScriptDefinition extends MainWorldContentScriptEntrypointOptions {
760
781
  /**
761
782
  * Main function executed when the content script is loaded.
783
+ *
784
+ * When running a content script with `browser.scripting.executeScript`,
785
+ * values returned from this function will be returned in the `executeScript`
786
+ * result as well. Otherwise returning a value does nothing.
762
787
  */
763
- main(): void | Promise<void>;
788
+ main(): any | Promise<any>;
764
789
  }
765
790
  type ContentScriptDefinition = IsolatedWorldContentScriptDefinition | MainWorldContentScriptDefinition;
766
791
  interface BackgroundDefinition extends BackgroundEntrypointOptions {
@@ -772,8 +797,12 @@ interface BackgroundDefinition extends BackgroundEntrypointOptions {
772
797
  interface UnlistedScriptDefinition extends BaseEntrypointOptions {
773
798
  /**
774
799
  * Main function executed when the unlisted script is ran.
800
+ *
801
+ * When running a content script with `browser.scripting.executeScript`,
802
+ * values returned from this function will be returned in the `executeScript`
803
+ * result as well. Otherwise returning a value does nothing.
775
804
  */
776
- main(): void | Promise<void>;
805
+ main(): any | Promise<any>;
777
806
  }
778
807
  /**
779
808
  * Either a single value or a map of different browsers to the value for that browser.
@@ -907,6 +936,10 @@ interface WxtBuilder {
907
936
  * Version of tool used to build. Ex: "5.0.2"
908
937
  */
909
938
  version: string;
939
+ /**
940
+ * Import the entrypoint file, returning the default export containing the options.
941
+ */
942
+ importEntrypoint<T>(path: string): Promise<T>;
910
943
  /**
911
944
  * Build a single entrypoint group. This is effectively one of the multiple "steps" during the
912
945
  * build process.
@@ -1084,6 +1117,7 @@ interface ResolvedConfig {
1084
1117
  sourcesRoot: string;
1085
1118
  downloadedPackagesDir: string;
1086
1119
  downloadPackages: string[];
1120
+ compressionLevel: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
1087
1121
  };
1088
1122
  /**
1089
1123
  * @deprecated Use `build:manifestGenerated` hook instead.
@@ -1108,6 +1142,7 @@ interface ResolvedConfig {
1108
1142
  alias: Record<string, string>;
1109
1143
  experimental: {
1110
1144
  includeBrowserPolyfill: boolean;
1145
+ viteRuntime: boolean;
1111
1146
  };
1112
1147
  dev: {
1113
1148
  /** Only defined during dev command */