wxt 0.16.7 → 0.16.8-alpha1

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.16.7";
2
+ var version = "0.16.8-alpha1";
3
3
 
4
4
  // src/core/utils/fs.ts
5
5
  import fs from "fs-extra";
package/dist/cli.js CHANGED
@@ -2152,7 +2152,7 @@ function getChunkSortWeight(filename) {
2152
2152
  import pc4 from "picocolors";
2153
2153
 
2154
2154
  // package.json
2155
- var version = "0.16.7";
2155
+ var version = "0.16.8-alpha1";
2156
2156
 
2157
2157
  // src/core/utils/log/printHeader.ts
2158
2158
  import { consola as consola2 } from "consola";
@@ -3127,6 +3127,20 @@ async function createServer(inlineConfig) {
3127
3127
  };
3128
3128
  const buildAndOpenBrowser = async () => {
3129
3129
  server.currentOutput = await internalBuild();
3130
+ const additionalFiles = server.currentOutput.steps.flatMap((step, i) => {
3131
+ if (Array.isArray(step.entrypoints) && i === 0) {
3132
+ return [];
3133
+ }
3134
+ return step.chunks.flatMap((chunk) => {
3135
+ if (chunk.type === "asset")
3136
+ return [];
3137
+ return chunk.moduleIds;
3138
+ });
3139
+ }).filter(
3140
+ (file) => !file.includes("node_modules") && !file.startsWith("\0")
3141
+ );
3142
+ console.log("Adding files:", additionalFiles);
3143
+ server.watcher.add(additionalFiles);
3130
3144
  await runner.openBrowser();
3131
3145
  };
3132
3146
  const closeAndRecreateRunner = async () => {
package/dist/index.cjs CHANGED
@@ -4579,7 +4579,7 @@ function getChunkSortWeight(filename) {
4579
4579
  var import_picocolors4 = __toESM(require("picocolors"), 1);
4580
4580
 
4581
4581
  // package.json
4582
- var version = "0.16.7";
4582
+ var version = "0.16.8-alpha1";
4583
4583
 
4584
4584
  // src/core/utils/log/printHeader.ts
4585
4585
  var import_consola2 = require("consola");
@@ -5560,6 +5560,20 @@ async function createServer(inlineConfig) {
5560
5560
  };
5561
5561
  const buildAndOpenBrowser = async () => {
5562
5562
  server.currentOutput = await internalBuild();
5563
+ const additionalFiles = server.currentOutput.steps.flatMap((step, i) => {
5564
+ if (Array.isArray(step.entrypoints) && i === 0) {
5565
+ return [];
5566
+ }
5567
+ return step.chunks.flatMap((chunk) => {
5568
+ if (chunk.type === "asset")
5569
+ return [];
5570
+ return chunk.moduleIds;
5571
+ });
5572
+ }).filter(
5573
+ (file) => !file.includes("node_modules") && !file.startsWith("\0")
5574
+ );
5575
+ console.log("Adding files:", additionalFiles);
5576
+ server.watcher.add(additionalFiles);
5563
5577
  await runner.openBrowser();
5564
5578
  };
5565
5579
  const closeAndRecreateRunner = async () => {
package/dist/index.d.cts CHANGED
@@ -64,6 +64,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
64
64
  */
65
65
  declare function zip(config?: InlineConfig): Promise<string[]>;
66
66
 
67
- var version = "0.16.7";
67
+ var version = "0.16.8-alpha1";
68
68
 
69
69
  export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
package/dist/index.d.ts CHANGED
@@ -64,6 +64,6 @@ declare function prepare(config: InlineConfig): Promise<void>;
64
64
  */
65
65
  declare function zip(config?: InlineConfig): Promise<string[]>;
66
66
 
67
- var version = "0.16.7";
67
+ var version = "0.16.8-alpha1";
68
68
 
69
69
  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
  resolvePerBrowserOption,
16
16
  version,
17
17
  wxt
18
- } from "./chunk-KKL6XTRP.js";
18
+ } from "./chunk-7WFBUGKG.js";
19
19
  import "./chunk-VBXJIVYU.js";
20
20
 
21
21
  // src/core/build.ts
@@ -229,6 +229,20 @@ async function createServer(inlineConfig) {
229
229
  };
230
230
  const buildAndOpenBrowser = async () => {
231
231
  server.currentOutput = await internalBuild();
232
+ const additionalFiles = server.currentOutput.steps.flatMap((step, i) => {
233
+ if (Array.isArray(step.entrypoints) && i === 0) {
234
+ return [];
235
+ }
236
+ return step.chunks.flatMap((chunk) => {
237
+ if (chunk.type === "asset")
238
+ return [];
239
+ return chunk.moduleIds;
240
+ });
241
+ }).filter(
242
+ (file) => !file.includes("node_modules") && !file.startsWith("\0")
243
+ );
244
+ console.log("Adding files:", additionalFiles);
245
+ server.watcher.add(additionalFiles);
232
246
  await runner.openBrowser();
233
247
  };
234
248
  const closeAndRecreateRunner = async () => {
package/dist/testing.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  tsconfigPaths,
6
6
  unimport,
7
7
  webextensionPolyfillMock
8
- } from "./chunk-KKL6XTRP.js";
8
+ } from "./chunk-7WFBUGKG.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.16.7",
4
+ "version": "0.16.8-alpha1",
5
5
  "description": "Next gen framework for developing web extensions",
6
6
  "engines": {
7
7
  "node": ">=18",