wxt 0.13.3 → 0.13.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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.13.3";
2
+ var version = "0.13.4";
3
3
 
4
4
  // src/core/utils/arrays.ts
5
5
  function every(array, predicate) {
@@ -1009,6 +1009,9 @@ async function craeteViteBuilder(inlineConfig, userConfig, wxtConfig) {
1009
1009
  config.build ??= {};
1010
1010
  config.build.outDir = wxtConfig.outDir;
1011
1011
  config.build.emptyOutDir = false;
1012
+ if (config.build.minify == null && wxtConfig.command === "serve") {
1013
+ config.build.minify = false;
1014
+ }
1012
1015
  config.plugins ??= [];
1013
1016
  config.plugins.push(
1014
1017
  download(wxtConfig),
@@ -1760,7 +1763,7 @@ async function generateManifest(entrypoints, buildOutput, config) {
1760
1763
  'Extension version not found, defaulting to "0.0.0". Add a version to your `package.json` or `wxt.config.ts` file. For more details, see: https://wxt.dev/guide/manifest.html#version-and-version-name'
1761
1764
  );
1762
1765
  }
1763
- let version2 = config.manifest.version ?? simplifyVersion(versionName);
1766
+ const version2 = config.manifest.version ?? simplifyVersion(versionName);
1764
1767
  const baseManifest = {
1765
1768
  manifest_version: config.manifestVersion,
1766
1769
  name: pkg?.name,
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import "./chunk-VBXJIVYU.js";
4
4
  import cac from "cac";
5
5
 
6
6
  // package.json
7
- var version = "0.13.3";
7
+ var version = "0.13.4";
8
8
 
9
9
  // src/core/utils/fs.ts
10
10
  import fs from "fs-extra";
@@ -1302,6 +1302,9 @@ async function craeteViteBuilder(inlineConfig, userConfig, wxtConfig) {
1302
1302
  config.build ??= {};
1303
1303
  config.build.outDir = wxtConfig.outDir;
1304
1304
  config.build.emptyOutDir = false;
1305
+ if (config.build.minify == null && wxtConfig.command === "serve") {
1306
+ config.build.minify = false;
1307
+ }
1305
1308
  config.plugins ??= [];
1306
1309
  config.plugins.push(
1307
1310
  download(wxtConfig),
@@ -2057,7 +2060,7 @@ async function generateManifest(entrypoints, buildOutput, config) {
2057
2060
  'Extension version not found, defaulting to "0.0.0". Add a version to your `package.json` or `wxt.config.ts` file. For more details, see: https://wxt.dev/guide/manifest.html#version-and-version-name'
2058
2061
  );
2059
2062
  }
2060
- let version2 = config.manifest.version ?? simplifyVersion(versionName);
2063
+ const version2 = config.manifest.version ?? simplifyVersion(versionName);
2061
2064
  const baseManifest = {
2062
2065
  manifest_version: config.manifestVersion,
2063
2066
  name: pkg?.name,
package/dist/index.cjs CHANGED
@@ -3726,6 +3726,9 @@ async function craeteViteBuilder(inlineConfig, userConfig, wxtConfig) {
3726
3726
  config.build ??= {};
3727
3727
  config.build.outDir = wxtConfig.outDir;
3728
3728
  config.build.emptyOutDir = false;
3729
+ if (config.build.minify == null && wxtConfig.command === "serve") {
3730
+ config.build.minify = false;
3731
+ }
3729
3732
  config.plugins ??= [];
3730
3733
  config.plugins.push(
3731
3734
  download(wxtConfig),
@@ -4334,7 +4337,7 @@ function getChunkSortWeight(filename) {
4334
4337
  var import_picocolors3 = __toESM(require("picocolors"), 1);
4335
4338
 
4336
4339
  // package.json
4337
- var version = "0.13.3";
4340
+ var version = "0.13.4";
4338
4341
 
4339
4342
  // src/core/utils/log/printHeader.ts
4340
4343
  var import_consola2 = require("consola");
@@ -4483,7 +4486,7 @@ async function generateManifest(entrypoints, buildOutput, config) {
4483
4486
  'Extension version not found, defaulting to "0.0.0". Add a version to your `package.json` or `wxt.config.ts` file. For more details, see: https://wxt.dev/guide/manifest.html#version-and-version-name'
4484
4487
  );
4485
4488
  }
4486
- let version2 = config.manifest.version ?? simplifyVersion(versionName);
4489
+ const version2 = config.manifest.version ?? simplifyVersion(versionName);
4487
4490
  const baseManifest = {
4488
4491
  manifest_version: config.manifestVersion,
4489
4492
  name: pkg?.name,
package/dist/index.d.cts CHANGED
@@ -62,6 +62,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
62
62
  */
63
63
  declare function zip(config?: InlineConfig): Promise<string[]>;
64
64
 
65
- var version = "0.13.3";
65
+ var version = "0.13.4";
66
66
 
67
67
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.d.ts CHANGED
@@ -62,6 +62,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
62
62
  */
63
63
  declare function zip(config?: InlineConfig): Promise<string[]>;
64
64
 
65
- var version = "0.13.3";
65
+ var version = "0.13.4";
66
66
 
67
67
  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-EWVNLDDM.js";
18
+ } from "./chunk-DHQJ6WF5.js";
19
19
  import "./chunk-VBXJIVYU.js";
20
20
 
21
21
  // src/core/build.ts
package/dist/testing.cjs CHANGED
@@ -734,6 +734,9 @@ async function craeteViteBuilder(inlineConfig, userConfig, wxtConfig) {
734
734
  config.build ??= {};
735
735
  config.build.outDir = wxtConfig.outDir;
736
736
  config.build.emptyOutDir = false;
737
+ if (config.build.minify == null && wxtConfig.command === "serve") {
738
+ config.build.minify = false;
739
+ }
737
740
  config.plugins ??= [];
738
741
  config.plugins.push(
739
742
  download(wxtConfig),
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-EWVNLDDM.js";
8
+ } from "./chunk-DHQJ6WF5.js";
9
9
  import "./chunk-VBXJIVYU.js";
10
10
 
11
11
  // src/testing/fake-browser.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wxt",
3
3
  "type": "module",
4
- "version": "0.13.3",
4
+ "version": "0.13.4",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",