wxt 0.14.3 → 0.14.4

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.
@@ -0,0 +1,39 @@
1
+ import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
9
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
10
+ }) : x)(function(x) {
11
+ if (typeof require !== "undefined")
12
+ return require.apply(this, arguments);
13
+ throw Error('Dynamic require of "' + x + '" is not supported');
14
+ });
15
+ var __commonJS = (cb, mod) => function __require2() {
16
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
17
+ };
18
+ var __copyProps = (to, from, except, desc) => {
19
+ if (from && typeof from === "object" || typeof from === "function") {
20
+ for (let key of __getOwnPropNames(from))
21
+ if (!__hasOwnProp.call(to, key) && key !== except)
22
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
+ }
24
+ return to;
25
+ };
26
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
+ // If the importer is in node compatibility mode or this is not an ESM
28
+ // file that has been converted to a CommonJS file using a Babel-
29
+ // compatible transform (i.e. "__esModule" has not been set), then set
30
+ // "default" to the CommonJS "module.exports" for node compatibility.
31
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
+ mod
33
+ ));
34
+
35
+ export {
36
+ __require,
37
+ __commonJS,
38
+ __toESM
39
+ };
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.14.3";
2
+ var version = "0.14.4";
3
3
 
4
4
  // src/core/utils/arrays.ts
5
5
  function every(array, predicate) {
package/dist/cli.js CHANGED
@@ -1,10 +1,11 @@
1
- import "./chunk-VBXJIVYU.js";
1
+ import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
+ import "./chunk-73I7FAJU.js";
2
3
 
3
4
  // src/cli.ts
4
5
  import cac from "cac";
5
6
 
6
7
  // package.json
7
- var version = "0.14.3";
8
+ var version = "0.14.4";
8
9
 
9
10
  // src/core/utils/fs.ts
10
11
  import fs from "fs-extra";
@@ -2555,7 +2556,7 @@ async function internalBuild(config) {
2555
2556
  return output;
2556
2557
  }
2557
2558
  async function combineAnalysisStats(config) {
2558
- const { execaCommand } = await import("./execa-4F7CCWCA.js");
2559
+ const { execaCommand } = await import("./execa-Y2EWTC4S.js");
2559
2560
  const unixFiles = await glob3(`stats-*.json`, {
2560
2561
  cwd: config.outDir,
2561
2562
  absolute: true
@@ -3122,9 +3123,7 @@ cli.command("build [root]", "build for production").option("-c, --config <file>"
3122
3123
  manifestVersion: flags.mv3 ? 3 : flags.mv2 ? 2 : void 0,
3123
3124
  configFile: flags.config,
3124
3125
  debug: flags.debug,
3125
- analysis: {
3126
- enabled: flags.analyze
3127
- },
3126
+ analysis: flags.analyze ? { enabled: true } : void 0,
3128
3127
  filterEntrypoints: getArrayFromFlags(flags, "filterEntrypoint")
3129
3128
  });
3130
3129
  })
@@ -3167,7 +3166,7 @@ cli.command("init [directory]", "initialize a new project").option("-t, --templa
3167
3166
  { disableFinishedLog: true }
3168
3167
  )
3169
3168
  );
3170
- cli.parse();
3169
+ cli.parse(process.argv);
3171
3170
  function wrapAction(cb, options) {
3172
3171
  return async (...args) => {
3173
3172
  const isDebug = !!args.find((arg) => arg?.debug);