wxt 0.17.4-alpha1 → 0.17.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.
- package/dist/{chunk-63LEV65X.js → chunk-E5MGUY6P.js} +5 -4
- package/dist/cli.js +5 -4
- package/dist/index.cjs +8 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.cjs +5 -3
- package/dist/testing.js +1 -1
- package/package.json +1 -1
- package/dist/cli.d.ts +0 -2
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-P57PW2II.js";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
|
-
var version = "0.17.4
|
|
6
|
+
var version = "0.17.4";
|
|
7
7
|
|
|
8
8
|
// src/core/utils/paths.ts
|
|
9
9
|
import systemPath from "node:path";
|
|
@@ -1703,7 +1703,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
1703
1703
|
inlineConfig.root ?? userConfig.root ?? process.cwd()
|
|
1704
1704
|
);
|
|
1705
1705
|
const wxtDir = path5.resolve(root, ".wxt");
|
|
1706
|
-
const wxtModuleDir = resolveWxtModuleDir();
|
|
1706
|
+
const wxtModuleDir = await resolveWxtModuleDir();
|
|
1707
1707
|
const srcDir = path5.resolve(root, mergedConfig.srcDir ?? root);
|
|
1708
1708
|
const entrypointsDir = path5.resolve(
|
|
1709
1709
|
srcDir,
|
|
@@ -1921,8 +1921,9 @@ async function getUnimportOptions(wxtDir, logger, config) {
|
|
|
1921
1921
|
defaultOptions
|
|
1922
1922
|
);
|
|
1923
1923
|
}
|
|
1924
|
-
function resolveWxtModuleDir() {
|
|
1925
|
-
|
|
1924
|
+
async function resolveWxtModuleDir() {
|
|
1925
|
+
const requireResolve = __require?.resolve ?? (await import("node:module")).default.createRequire(import.meta.url).resolve;
|
|
1926
|
+
return path5.resolve(requireResolve("wxt"), "../..");
|
|
1926
1927
|
}
|
|
1927
1928
|
|
|
1928
1929
|
// src/core/utils/building/group-entrypoints.ts
|
package/dist/cli.js
CHANGED
|
@@ -1701,7 +1701,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
1701
1701
|
inlineConfig.root ?? userConfig.root ?? process.cwd()
|
|
1702
1702
|
);
|
|
1703
1703
|
const wxtDir = path4.resolve(root, ".wxt");
|
|
1704
|
-
const wxtModuleDir = resolveWxtModuleDir();
|
|
1704
|
+
const wxtModuleDir = await resolveWxtModuleDir();
|
|
1705
1705
|
const srcDir = path4.resolve(root, mergedConfig.srcDir ?? root);
|
|
1706
1706
|
const entrypointsDir = path4.resolve(
|
|
1707
1707
|
srcDir,
|
|
@@ -1919,8 +1919,9 @@ async function getUnimportOptions(wxtDir, logger, config) {
|
|
|
1919
1919
|
defaultOptions
|
|
1920
1920
|
);
|
|
1921
1921
|
}
|
|
1922
|
-
function resolveWxtModuleDir() {
|
|
1923
|
-
|
|
1922
|
+
async function resolveWxtModuleDir() {
|
|
1923
|
+
const requireResolve = __require?.resolve ?? (await import("node:module")).default.createRequire(import.meta.url).resolve;
|
|
1924
|
+
return path4.resolve(requireResolve("wxt"), "../..");
|
|
1924
1925
|
}
|
|
1925
1926
|
|
|
1926
1927
|
// src/core/utils/building/group-entrypoints.ts
|
|
@@ -2185,7 +2186,7 @@ function getChunkSortWeight(filename) {
|
|
|
2185
2186
|
import pc4 from "picocolors";
|
|
2186
2187
|
|
|
2187
2188
|
// package.json
|
|
2188
|
-
var version = "0.17.4
|
|
2189
|
+
var version = "0.17.4";
|
|
2189
2190
|
|
|
2190
2191
|
// src/core/utils/log/printHeader.ts
|
|
2191
2192
|
import { consola as consola2 } from "consola";
|
package/dist/index.cjs
CHANGED
|
@@ -1711,6 +1711,7 @@ function isModuleInstalled(name) {
|
|
|
1711
1711
|
}
|
|
1712
1712
|
|
|
1713
1713
|
// src/core/utils/building/resolve-config.ts
|
|
1714
|
+
var import_meta = {};
|
|
1714
1715
|
async function resolveConfig(inlineConfig, command, server) {
|
|
1715
1716
|
let userConfig = {};
|
|
1716
1717
|
let userConfigMetadata;
|
|
@@ -1740,7 +1741,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
1740
1741
|
inlineConfig.root ?? userConfig.root ?? process.cwd()
|
|
1741
1742
|
);
|
|
1742
1743
|
const wxtDir = import_node_path9.default.resolve(root, ".wxt");
|
|
1743
|
-
const wxtModuleDir = resolveWxtModuleDir();
|
|
1744
|
+
const wxtModuleDir = await resolveWxtModuleDir();
|
|
1744
1745
|
const srcDir = import_node_path9.default.resolve(root, mergedConfig.srcDir ?? root);
|
|
1745
1746
|
const entrypointsDir = import_node_path9.default.resolve(
|
|
1746
1747
|
srcDir,
|
|
@@ -1958,8 +1959,9 @@ async function getUnimportOptions(wxtDir, logger, config) {
|
|
|
1958
1959
|
defaultOptions
|
|
1959
1960
|
);
|
|
1960
1961
|
}
|
|
1961
|
-
function resolveWxtModuleDir() {
|
|
1962
|
-
|
|
1962
|
+
async function resolveWxtModuleDir() {
|
|
1963
|
+
const requireResolve = require?.resolve ?? (await import("module")).default.createRequire(import_meta.url).resolve;
|
|
1964
|
+
return import_node_path9.default.resolve(requireResolve("wxt"), "../..");
|
|
1963
1965
|
}
|
|
1964
1966
|
|
|
1965
1967
|
// src/core/utils/building/group-entrypoints.ts
|
|
@@ -2027,7 +2029,7 @@ ${noImports}`;
|
|
|
2027
2029
|
// src/core/utils/building/import-entrypoint.ts
|
|
2028
2030
|
var import_esbuild = require("esbuild");
|
|
2029
2031
|
var import_node_url = require("url");
|
|
2030
|
-
var
|
|
2032
|
+
var import_meta2 = {};
|
|
2031
2033
|
async function importEntrypointFile(path9) {
|
|
2032
2034
|
wxt.logger.debug("Loading file metadata:", path9);
|
|
2033
2035
|
const normalPath = normalizePath(path9);
|
|
@@ -2044,7 +2046,7 @@ async function importEntrypointFile(path9) {
|
|
|
2044
2046
|
["Text:", text, "No imports:", textNoImports, "Code:", code].join("\n")
|
|
2045
2047
|
);
|
|
2046
2048
|
const jiti = (0, import_jiti.default)(
|
|
2047
|
-
typeof __filename !== "undefined" ? __filename : (0, import_node_url.fileURLToPath)(
|
|
2049
|
+
typeof __filename !== "undefined" ? __filename : (0, import_node_url.fileURLToPath)(import_meta2.url),
|
|
2048
2050
|
{
|
|
2049
2051
|
cache: false,
|
|
2050
2052
|
debug: wxt.config.debug,
|
|
@@ -2225,7 +2227,7 @@ function getChunkSortWeight(filename) {
|
|
|
2225
2227
|
var import_picocolors4 = __toESM(require("picocolors"), 1);
|
|
2226
2228
|
|
|
2227
2229
|
// package.json
|
|
2228
|
-
var version = "0.17.4
|
|
2230
|
+
var version = "0.17.4";
|
|
2229
2231
|
|
|
2230
2232
|
// src/core/utils/log/printHeader.ts
|
|
2231
2233
|
var import_consola2 = require("consola");
|
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.17.4
|
|
67
|
+
var version = "0.17.4";
|
|
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.17.4
|
|
67
|
+
var version = "0.17.4";
|
|
68
68
|
|
|
69
69
|
export { BuildOutput, ExtensionRunnerConfig, InlineConfig, UserConfig, WxtDevServer, build, clean, createServer, defineConfig, defineRunnerConfig, initialize, prepare, version, zip };
|
package/dist/index.js
CHANGED
package/dist/testing.cjs
CHANGED
|
@@ -976,6 +976,7 @@ function isModuleInstalled(name) {
|
|
|
976
976
|
}
|
|
977
977
|
|
|
978
978
|
// src/core/utils/building/resolve-config.ts
|
|
979
|
+
var import_meta = {};
|
|
979
980
|
async function resolveConfig(inlineConfig, command, server) {
|
|
980
981
|
let userConfig = {};
|
|
981
982
|
let userConfigMetadata;
|
|
@@ -1005,7 +1006,7 @@ async function resolveConfig(inlineConfig, command, server) {
|
|
|
1005
1006
|
inlineConfig.root ?? userConfig.root ?? process.cwd()
|
|
1006
1007
|
);
|
|
1007
1008
|
const wxtDir = import_node_path9.default.resolve(root, ".wxt");
|
|
1008
|
-
const wxtModuleDir = resolveWxtModuleDir();
|
|
1009
|
+
const wxtModuleDir = await resolveWxtModuleDir();
|
|
1009
1010
|
const srcDir = import_node_path9.default.resolve(root, mergedConfig.srcDir ?? root);
|
|
1010
1011
|
const entrypointsDir = import_node_path9.default.resolve(
|
|
1011
1012
|
srcDir,
|
|
@@ -1223,8 +1224,9 @@ async function getUnimportOptions(wxtDir, logger, config) {
|
|
|
1223
1224
|
defaultOptions
|
|
1224
1225
|
);
|
|
1225
1226
|
}
|
|
1226
|
-
function resolveWxtModuleDir() {
|
|
1227
|
-
|
|
1227
|
+
async function resolveWxtModuleDir() {
|
|
1228
|
+
const requireResolve = require?.resolve ?? (await import("module")).default.createRequire(import_meta.url).resolve;
|
|
1229
|
+
return import_node_path9.default.resolve(requireResolve("wxt"), "../..");
|
|
1228
1230
|
}
|
|
1229
1231
|
|
|
1230
1232
|
// src/core/utils/building/import-entrypoint.ts
|
package/dist/testing.js
CHANGED
package/package.json
CHANGED
package/dist/cli.d.ts
DELETED