wxt 0.15.2 → 0.15.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.15.2";
2
+ var version = "0.15.4";
3
3
 
4
4
  // src/core/utils/arrays.ts
5
5
  function every(array, predicate) {
@@ -102,10 +102,10 @@ function findEffectedSteps(changedFile, currentOutput) {
102
102
  const changes = [];
103
103
  const changedPath = normalizePath(changedFile);
104
104
  const isChunkEffected = (chunk) => (
105
- // If it's an HTML file with the same path, is is effected because HTML files need to be pre-rendered
106
- // fileName is normalized, relative bundle path
107
- chunk.type === "asset" && changedPath.endsWith(chunk.fileName) || // If it's a chunk that depends on the changed file, it is effected
108
- // moduleIds are absolute, normalized paths
105
+ // If it's an HTML file with the same path, is is effected because HTML files need to be re-rendered
106
+ // - fileName is normalized, relative bundle path, "<entrypoint-name>.html"
107
+ chunk.type === "asset" && changedPath.replace("/index.html", ".html").endsWith(chunk.fileName) || // If it's a chunk that depends on the changed file, it is effected
108
+ // - moduleIds are absolute, normalized paths
109
109
  chunk.type === "chunk" && chunk.moduleIds.includes(changedPath)
110
110
  );
111
111
  for (const step of currentOutput.steps) {
package/dist/cli.js CHANGED
@@ -161,10 +161,10 @@ function findEffectedSteps(changedFile, currentOutput) {
161
161
  const changes = [];
162
162
  const changedPath = normalizePath(changedFile);
163
163
  const isChunkEffected = (chunk) => (
164
- // If it's an HTML file with the same path, is is effected because HTML files need to be pre-rendered
165
- // fileName is normalized, relative bundle path
166
- chunk.type === "asset" && changedPath.endsWith(chunk.fileName) || // If it's a chunk that depends on the changed file, it is effected
167
- // moduleIds are absolute, normalized paths
164
+ // If it's an HTML file with the same path, is is effected because HTML files need to be re-rendered
165
+ // - fileName is normalized, relative bundle path, "<entrypoint-name>.html"
166
+ chunk.type === "asset" && changedPath.replace("/index.html", ".html").endsWith(chunk.fileName) || // If it's a chunk that depends on the changed file, it is effected
167
+ // - moduleIds are absolute, normalized paths
168
168
  chunk.type === "chunk" && chunk.moduleIds.includes(changedPath)
169
169
  );
170
170
  for (const step of currentOutput.steps) {
@@ -2016,7 +2016,7 @@ function getChunkSortWeight(filename) {
2016
2016
  import pc4 from "picocolors";
2017
2017
 
2018
2018
  // package.json
2019
- var version = "0.15.2";
2019
+ var version = "0.15.4";
2020
2020
 
2021
2021
  // src/core/utils/log/printHeader.ts
2022
2022
  import { consola as consola2 } from "consola";
package/dist/index.cjs CHANGED
@@ -2584,10 +2584,10 @@ function findEffectedSteps(changedFile, currentOutput) {
2584
2584
  const changes = [];
2585
2585
  const changedPath = normalizePath(changedFile);
2586
2586
  const isChunkEffected = (chunk) => (
2587
- // If it's an HTML file with the same path, is is effected because HTML files need to be pre-rendered
2588
- // fileName is normalized, relative bundle path
2589
- chunk.type === "asset" && changedPath.endsWith(chunk.fileName) || // If it's a chunk that depends on the changed file, it is effected
2590
- // moduleIds are absolute, normalized paths
2587
+ // If it's an HTML file with the same path, is is effected because HTML files need to be re-rendered
2588
+ // - fileName is normalized, relative bundle path, "<entrypoint-name>.html"
2589
+ chunk.type === "asset" && changedPath.replace("/index.html", ".html").endsWith(chunk.fileName) || // If it's a chunk that depends on the changed file, it is effected
2590
+ // - moduleIds are absolute, normalized paths
2591
2591
  chunk.type === "chunk" && chunk.moduleIds.includes(changedPath)
2592
2592
  );
2593
2593
  for (const step of currentOutput.steps) {
@@ -4443,7 +4443,7 @@ function getChunkSortWeight(filename) {
4443
4443
  var import_picocolors4 = __toESM(require("picocolors"), 1);
4444
4444
 
4445
4445
  // package.json
4446
- var version = "0.15.2";
4446
+ var version = "0.15.4";
4447
4447
 
4448
4448
  // src/core/utils/log/printHeader.ts
4449
4449
  var import_consola2 = require("consola");
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.15.2";
65
+ var version = "0.15.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.15.2";
65
+ var version = "0.15.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-QEFFZE4W.js";
18
+ } from "./chunk-VDBVNC42.js";
19
19
  import "./chunk-VBXJIVYU.js";
20
20
 
21
21
  // src/core/build.ts
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-QEFFZE4W.js";
8
+ } from "./chunk-VDBVNC42.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.15.2",
4
+ "version": "0.15.4",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",
@@ -111,7 +111,7 @@
111
111
  "ora": "^7.0.1",
112
112
  "picocolors": "^1.0.0",
113
113
  "prompts": "^2.4.2",
114
- "publish-browser-extension": "^2.0.0",
114
+ "publish-browser-extension": "^2.1.0",
115
115
  "rollup-plugin-visualizer": "^5.9.2",
116
116
  "unimport": "^3.4.0",
117
117
  "vite": "^5.0.12",