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.
- package/dist/{chunk-KKL6XTRP.js → chunk-7WFBUGKG.js} +1 -1
- package/dist/cli.js +15 -1
- package/dist/index.cjs +15 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -1
- package/dist/testing.js +1 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
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