weapp-vite 6.2.4 → 6.3.1
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/auto-import-components/resolvers.mjs +1 -1
- package/dist/auto-routes.mjs +6 -6
- package/dist/{chunk-3WGUNRY5.mjs → chunk-4V2ZCBUT.mjs} +1 -1
- package/dist/{chunk-7GJOCTON.mjs → chunk-B34ZFW57.mjs} +1 -1
- package/dist/{chunk-JZ5XORA7.mjs → chunk-QQLJQETD.mjs} +4 -3
- package/dist/{chunk-AZBN7A5I.mjs → chunk-RARCLK3Z.mjs} +1 -1
- package/dist/{chunk-DA4VMXM3.mjs → chunk-UBYOGMST.mjs} +11 -8
- package/dist/{chunk-BJPRA4OY.mjs → chunk-UWFHV5PO.mjs} +2 -2
- package/dist/{chunk-BBPQE3DC.mjs → chunk-VCHKTCFD.mjs} +2 -2
- package/dist/{chunk-AOUAT7U3.mjs → chunk-VUWEDLBP.mjs} +2 -2
- package/dist/{chunk-V5RMQ6TF.mjs → chunk-W6M7JCS2.mjs} +1 -1
- package/dist/cli.mjs +31 -7
- package/dist/{config-B2MoO2Hh.d.ts → config-wdKtqToL.d.ts} +5 -0
- package/dist/config.d.ts +2 -1
- package/dist/config.mjs +3 -3
- package/dist/{file-MAW7U4GY.mjs → file-FTZY3E4P.mjs} +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.mjs +9 -9
- package/dist/json.d.ts +2 -1
- package/dist/json.mjs +2 -2
- package/dist/{jsonMacros-B27UM2M6.mjs → jsonMacros-2T2FU4JY.mjs} +3 -3
- package/dist/runtime.mjs +2 -2
- package/dist/types.d.ts +2 -1
- package/dist/types.mjs +2 -2
- package/dist/volar.mjs +1 -1
- package/package.json +7 -7
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCompilerContext
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-UBYOGMST.mjs";
|
|
4
|
+
import "./chunk-QQLJQETD.mjs";
|
|
5
|
+
import "./chunk-UWFHV5PO.mjs";
|
|
6
|
+
import "./chunk-RARCLK3Z.mjs";
|
|
7
|
+
import "./chunk-W6M7JCS2.mjs";
|
|
8
8
|
import {
|
|
9
9
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VUWEDLBP.mjs";
|
|
11
11
|
|
|
12
12
|
// src/auto-routes.ts
|
|
13
13
|
init_esm_shims();
|
|
@@ -3,12 +3,12 @@ import {
|
|
|
3
3
|
jsExtensions,
|
|
4
4
|
require_src,
|
|
5
5
|
vueExtensions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UWFHV5PO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__commonJS,
|
|
9
9
|
__toESM,
|
|
10
10
|
init_esm_shims
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VUWEDLBP.mjs";
|
|
12
12
|
|
|
13
13
|
// ../../node_modules/.pnpm/semver@7.7.3/node_modules/semver/internal/debug.js
|
|
14
14
|
var require_debug = __commonJS({
|
|
@@ -1919,7 +1919,7 @@ import process2 from "process";
|
|
|
1919
1919
|
|
|
1920
1920
|
// src/logger.ts
|
|
1921
1921
|
init_esm_shims();
|
|
1922
|
-
import logger from "@weapp-core/logger";
|
|
1922
|
+
import logger, { configureLogger } from "@weapp-core/logger";
|
|
1923
1923
|
var logger_default = logger;
|
|
1924
1924
|
|
|
1925
1925
|
// src/utils/version.ts
|
|
@@ -2392,6 +2392,7 @@ async function evaluateJsonMacroConfig(content, filename, lang, options) {
|
|
|
2392
2392
|
}
|
|
2393
2393
|
|
|
2394
2394
|
export {
|
|
2395
|
+
configureLogger,
|
|
2395
2396
|
logger_default,
|
|
2396
2397
|
toPosixPath,
|
|
2397
2398
|
fromPosixPath,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BABEL_TS_MODULE_PARSER_OPTIONS,
|
|
3
|
+
configureLogger,
|
|
3
4
|
createCjsConfigLoadError,
|
|
4
5
|
extractJsonMacroFromScriptSetup,
|
|
5
6
|
fromPosixPath,
|
|
@@ -35,7 +36,7 @@ import {
|
|
|
35
36
|
traverse,
|
|
36
37
|
usingComponentFromResolvedFile,
|
|
37
38
|
withTempDirLock
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-QQLJQETD.mjs";
|
|
39
40
|
import {
|
|
40
41
|
changeFileExtension,
|
|
41
42
|
configExtensions,
|
|
@@ -54,12 +55,12 @@ import {
|
|
|
54
55
|
templateExtensions,
|
|
55
56
|
touch,
|
|
56
57
|
vueExtensions
|
|
57
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-UWFHV5PO.mjs";
|
|
58
59
|
import {
|
|
59
60
|
__commonJS,
|
|
60
61
|
__toESM,
|
|
61
62
|
init_esm_shims
|
|
62
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-VUWEDLBP.mjs";
|
|
63
64
|
|
|
64
65
|
// ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
|
|
65
66
|
var require_eventemitter3 = __commonJS({
|
|
@@ -35955,6 +35956,7 @@ function createConfigService(ctx) {
|
|
|
35955
35956
|
weappWeb: void 0
|
|
35956
35957
|
});
|
|
35957
35958
|
setOptions(resolvedConfig);
|
|
35959
|
+
configureLogger(resolvedConfig.config.weapp?.logger);
|
|
35958
35960
|
packageManager = await detect() ?? {
|
|
35959
35961
|
agent: "npm",
|
|
35960
35962
|
name: "npm"
|
|
@@ -36217,6 +36219,7 @@ import fs32 from "fs-extra";
|
|
|
36217
36219
|
import path63 from "pathe";
|
|
36218
36220
|
import { build as viteBuild } from "vite";
|
|
36219
36221
|
function createPackageBuilder(ctx, oxcVitePlugin) {
|
|
36222
|
+
const npmLogger = typeof logger_default.withTag === "function" ? logger_default.withTag("npm") : logger_default;
|
|
36220
36223
|
function isMiniprogramPackage(pkg) {
|
|
36221
36224
|
return Reflect.has(pkg, "miniprogram") && typeof pkg.miniprogram === "string";
|
|
36222
36225
|
}
|
|
@@ -36308,7 +36311,7 @@ function createPackageBuilder(ctx, oxcVitePlugin) {
|
|
|
36308
36311
|
const destOutDir = path63.resolve(outDir, dep);
|
|
36309
36312
|
if (isMiniprogramPackage(targetJson)) {
|
|
36310
36313
|
if (await shouldSkipBuild(destOutDir, isDependenciesCacheOutdate)) {
|
|
36311
|
-
|
|
36314
|
+
npmLogger.info(`[npm] \u4F9D\u8D56 \`${dep}\` \u672A\u53D1\u751F\u53D8\u5316\uFF0C\u8DF3\u8FC7\u5904\u7406!`);
|
|
36312
36315
|
return;
|
|
36313
36316
|
}
|
|
36314
36317
|
await copyBuild({
|
|
@@ -36334,7 +36337,7 @@ function createPackageBuilder(ctx, oxcVitePlugin) {
|
|
|
36334
36337
|
} else {
|
|
36335
36338
|
const index = resolveModule(dep);
|
|
36336
36339
|
if (!index) {
|
|
36337
|
-
|
|
36340
|
+
npmLogger.warn(`[npm] \u65E0\u6CD5\u89E3\u6790\u6A21\u5757 \`${dep}\`\uFF0C\u8DF3\u8FC7\u5904\u7406!`);
|
|
36338
36341
|
return;
|
|
36339
36342
|
}
|
|
36340
36343
|
if (!isDependenciesCacheOutdate && await fs32.pathExists(destOutDir)) {
|
|
@@ -36342,7 +36345,7 @@ function createPackageBuilder(ctx, oxcVitePlugin) {
|
|
|
36342
36345
|
if (await fs32.pathExists(destEntry)) {
|
|
36343
36346
|
const [srcStat, destStat] = await Promise.all([fs32.stat(index), fs32.stat(destEntry)]);
|
|
36344
36347
|
if (srcStat.mtimeMs <= destStat.mtimeMs) {
|
|
36345
|
-
|
|
36348
|
+
npmLogger.info(`[npm] \u4F9D\u8D56 \`${dep}\` \u672A\u53D1\u751F\u53D8\u5316\uFF0C\u8DF3\u8FC7\u5904\u7406!`);
|
|
36346
36349
|
return;
|
|
36347
36350
|
}
|
|
36348
36351
|
}
|
|
@@ -36368,7 +36371,7 @@ function createPackageBuilder(ctx, oxcVitePlugin) {
|
|
|
36368
36371
|
);
|
|
36369
36372
|
}
|
|
36370
36373
|
}
|
|
36371
|
-
|
|
36374
|
+
npmLogger.success(`[npm] \`${dep}\` \u4F9D\u8D56\u5904\u7406\u5B8C\u6210!`);
|
|
36372
36375
|
}
|
|
36373
36376
|
return {
|
|
36374
36377
|
isMiniprogramPackage,
|
|
@@ -37955,7 +37958,7 @@ function createScanService(ctx) {
|
|
|
37955
37958
|
let configFromVue;
|
|
37956
37959
|
let vueAppPath;
|
|
37957
37960
|
if (!appConfigFile) {
|
|
37958
|
-
const { extractConfigFromVue: extractConfigFromVue2 } = await import("./file-
|
|
37961
|
+
const { extractConfigFromVue: extractConfigFromVue2 } = await import("./file-FTZY3E4P.mjs");
|
|
37959
37962
|
vueAppPath = await findVueEntry(appBasename);
|
|
37960
37963
|
if (vueAppPath) {
|
|
37961
37964
|
configFromVue = await extractConfigFromVue2(vueAppPath);
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__commonJS,
|
|
3
3
|
__toESM,
|
|
4
4
|
init_esm_shims
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VUWEDLBP.mjs";
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/merge@2.1.1/node_modules/merge/lib/src/index.js
|
|
8
8
|
var require_src = __commonJS({
|
|
@@ -303,7 +303,7 @@ async function extractConfigFromVue(vueFilePath) {
|
|
|
303
303
|
const setupContent = descriptor.scriptSetup?.content;
|
|
304
304
|
const hasMacroHint = typeof setupContent === "string" && /\bdefine(?:App|Page|Component)Json\s*\(/.test(setupContent);
|
|
305
305
|
if (hasMacroHint) {
|
|
306
|
-
const { extractJsonMacroFromScriptSetup } = await import("./jsonMacros-
|
|
306
|
+
const { extractJsonMacroFromScriptSetup } = await import("./jsonMacros-2T2FU4JY.mjs");
|
|
307
307
|
try {
|
|
308
308
|
const extracted = await extractJsonMacroFromScriptSetup(
|
|
309
309
|
setupContent,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getCompilerContext,
|
|
3
3
|
resetCompilerContext,
|
|
4
4
|
setActiveCompilerContextKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-UBYOGMST.mjs";
|
|
6
6
|
import {
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VUWEDLBP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/createContext.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -27,11 +27,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
|
|
30
|
-
// ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.
|
|
30
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.10_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/esm_shims.js
|
|
31
31
|
import path from "path";
|
|
32
32
|
import { fileURLToPath } from "url";
|
|
33
33
|
var init_esm_shims = __esm({
|
|
34
|
-
"../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.
|
|
34
|
+
"../../node_modules/.pnpm/tsup@8.5.1_@swc+core@1.15.10_jiti@2.6.1_postcss@8.5.6_tsx@4.21.0_typescript@5.9.3_yaml@2.8.2/node_modules/tsup/assets/esm_shims.js"() {
|
|
35
35
|
"use strict";
|
|
36
36
|
}
|
|
37
37
|
});
|
package/dist/cli.mjs
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCompilerContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VCHKTCFD.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_MP_PLATFORM,
|
|
6
6
|
SHARED_CHUNK_VIRTUAL_PREFIX,
|
|
7
7
|
createSharedBuildConfig,
|
|
8
8
|
normalizeMiniPlatform,
|
|
9
9
|
resolveMiniPlatform
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UBYOGMST.mjs";
|
|
11
11
|
import {
|
|
12
12
|
checkRuntime,
|
|
13
13
|
createCjsConfigLoadError,
|
|
14
14
|
isPathInside,
|
|
15
15
|
logger_default,
|
|
16
16
|
resolveWeappConfigFile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QQLJQETD.mjs";
|
|
18
18
|
import {
|
|
19
19
|
VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-UWFHV5PO.mjs";
|
|
21
21
|
import {
|
|
22
22
|
init_esm_shims
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VUWEDLBP.mjs";
|
|
24
24
|
|
|
25
25
|
// src/cli.ts
|
|
26
26
|
init_esm_shims();
|
|
@@ -1944,12 +1944,24 @@ function registerOpenCommand(cli2) {
|
|
|
1944
1944
|
// src/cli/commands/serve.ts
|
|
1945
1945
|
init_esm_shims();
|
|
1946
1946
|
function registerServeCommand(cli2) {
|
|
1947
|
-
cli2.command("[root]", "start dev server").alias("serve").alias("dev").option("--skipNpm", `[boolean] if skip npm build`).option("-o, --open", `[boolean] open ide`).option("-p, --platform <platform>", `[string] target platform (weapp | h5)`).option("--analyze", `[boolean] \u542F\u52A8\u5206\u5305\u5206\u6790\u4EEA\u8868\u76D8 (\u5B9E\u9A8C\u7279\u6027)`, { default: false }).action(async (root, options) => {
|
|
1947
|
+
cli2.command("[root]", "start dev server").alias("serve").alias("dev").option("--skipNpm", `[boolean] if skip npm build`).option("-o, --open", `[boolean] open ide`).option("-p, --platform <platform>", `[string] target platform (weapp | h5)`).option("--host [host]", `[string] web dev server host`).option("--analyze", `[boolean] \u542F\u52A8\u5206\u5305\u5206\u6790\u4EEA\u8868\u76D8 (\u5B9E\u9A8C\u7279\u6027)`, { default: false }).action(async (root, options) => {
|
|
1948
1948
|
filterDuplicateOptions(options);
|
|
1949
1949
|
const configFile = resolveConfigFile(options);
|
|
1950
1950
|
const targets = resolveRuntimeTargets(options);
|
|
1951
1951
|
logRuntimeTarget(targets);
|
|
1952
|
-
|
|
1952
|
+
let inlineConfig = createInlineConfig(targets.mpPlatform);
|
|
1953
|
+
if (targets.runWeb) {
|
|
1954
|
+
const host = resolveWebHost(options.host);
|
|
1955
|
+
if (host !== void 0) {
|
|
1956
|
+
inlineConfig = {
|
|
1957
|
+
...inlineConfig,
|
|
1958
|
+
server: {
|
|
1959
|
+
...inlineConfig?.server ?? {},
|
|
1960
|
+
host
|
|
1961
|
+
}
|
|
1962
|
+
};
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1953
1965
|
const ctx = await createCompilerContext({
|
|
1954
1966
|
cwd: root,
|
|
1955
1967
|
mode: options.mode ?? "development",
|
|
@@ -2011,6 +2023,18 @@ function registerServeCommand(cli2) {
|
|
|
2011
2023
|
}
|
|
2012
2024
|
});
|
|
2013
2025
|
}
|
|
2026
|
+
function resolveWebHost(host) {
|
|
2027
|
+
if (host === void 0) {
|
|
2028
|
+
return void 0;
|
|
2029
|
+
}
|
|
2030
|
+
if (typeof host === "boolean") {
|
|
2031
|
+
return host;
|
|
2032
|
+
}
|
|
2033
|
+
if (typeof host === "string") {
|
|
2034
|
+
return host;
|
|
2035
|
+
}
|
|
2036
|
+
return String(host);
|
|
2037
|
+
}
|
|
2014
2038
|
|
|
2015
2039
|
// src/cli.ts
|
|
2016
2040
|
var cli = cac("weapp-vite");
|
|
@@ -6,6 +6,7 @@ import { WrapPluginOptions } from 'vite-plugin-performance';
|
|
|
6
6
|
import { PluginOptions } from 'vite-tsconfig-paths';
|
|
7
7
|
import { WevuDefaults } from 'wevu';
|
|
8
8
|
import { R as Resolver, a as ResolvedValue } from './types-Dxi4LfZo.js';
|
|
9
|
+
import { LoggerConfig } from '@weapp-core/logger';
|
|
9
10
|
import PQueue from 'p-queue';
|
|
10
11
|
import { DetectResult } from 'package-manager-detector';
|
|
11
12
|
import { PackageJson } from 'pkg-types';
|
|
@@ -340,6 +341,10 @@ interface WeappViteConfig {
|
|
|
340
341
|
* @default undefined
|
|
341
342
|
*/
|
|
342
343
|
pluginRoot?: string;
|
|
344
|
+
/**
|
|
345
|
+
* @description 日志输出配置(全局 + 按 tag 细分)
|
|
346
|
+
*/
|
|
347
|
+
logger?: LoggerConfig;
|
|
343
348
|
/**
|
|
344
349
|
* @group json 配置
|
|
345
350
|
* 文件引入别名
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'vite';
|
|
2
|
-
export { U as UserConfig, e as UserConfigExport, d as UserConfigFn, a as UserConfigFnNoEnv, b as UserConfigFnObject, c as UserConfigFnPromise, W as WeappViteConfig, g as defineAppJson, i as defineComponentJson, f as defineConfig, h as definePageJson, j as defineSitemapJson, k as defineThemeJson } from './config-
|
|
2
|
+
export { U as UserConfig, e as UserConfigExport, d as UserConfigFn, a as UserConfigFnNoEnv, b as UserConfigFnObject, c as UserConfigFnPromise, W as WeappViteConfig, g as defineAppJson, i as defineComponentJson, f as defineConfig, h as definePageJson, j as defineSitemapJson, k as defineThemeJson } from './config-wdKtqToL.js';
|
|
3
3
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
4
4
|
import '@weapp-vite/web';
|
|
5
5
|
import 'rolldown';
|
|
@@ -7,6 +7,7 @@ import 'vite-plugin-performance';
|
|
|
7
7
|
import 'vite-tsconfig-paths';
|
|
8
8
|
import 'wevu';
|
|
9
9
|
import './types-Dxi4LfZo.js';
|
|
10
|
+
import '@weapp-core/logger';
|
|
10
11
|
import 'p-queue';
|
|
11
12
|
import 'package-manager-detector';
|
|
12
13
|
import 'pkg-types';
|
package/dist/config.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RARCLK3Z.mjs";
|
|
4
4
|
import {
|
|
5
5
|
defineAppJson,
|
|
6
6
|
defineComponentJson,
|
|
7
7
|
definePageJson,
|
|
8
8
|
defineSitemapJson,
|
|
9
9
|
defineThemeJson
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-W6M7JCS2.mjs";
|
|
11
|
+
import "./chunk-VUWEDLBP.mjs";
|
|
12
12
|
export {
|
|
13
13
|
defineAppJson,
|
|
14
14
|
defineComponentJson,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LoadConfigOptions, C as CompilerContext } from './config-
|
|
2
|
-
export { U as UserConfig, e as UserConfigExport, d as UserConfigFn, a as UserConfigFnNoEnv, b as UserConfigFnObject, c as UserConfigFnPromise, W as WeappViteConfig, g as defineAppJson, i as defineComponentJson, f as defineConfig, h as definePageJson, j as defineSitemapJson, k as defineThemeJson } from './config-
|
|
1
|
+
import { L as LoadConfigOptions, C as CompilerContext } from './config-wdKtqToL.js';
|
|
2
|
+
export { U as UserConfig, e as UserConfigExport, d as UserConfigFn, a as UserConfigFnNoEnv, b as UserConfigFnObject, c as UserConfigFnPromise, W as WeappViteConfig, g as defineAppJson, i as defineComponentJson, f as defineConfig, h as definePageJson, j as defineSitemapJson, k as defineThemeJson } from './config-wdKtqToL.js';
|
|
3
3
|
export { WevuComponentOptions, defineEmits, defineProps } from './runtime.js';
|
|
4
4
|
export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
|
|
5
5
|
export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, ViteDevServer } from 'vite';
|
|
@@ -9,6 +9,7 @@ import '@weapp-vite/web';
|
|
|
9
9
|
import 'vite-plugin-performance';
|
|
10
10
|
import 'vite-tsconfig-paths';
|
|
11
11
|
import './types-Dxi4LfZo.js';
|
|
12
|
+
import '@weapp-core/logger';
|
|
12
13
|
import 'p-queue';
|
|
13
14
|
import 'package-manager-detector';
|
|
14
15
|
import 'pkg-types';
|
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-4V2ZCBUT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createCompilerContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VCHKTCFD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
defineEmits,
|
|
7
7
|
defineProps
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-B34ZFW57.mjs";
|
|
9
|
+
import "./chunk-UBYOGMST.mjs";
|
|
10
|
+
import "./chunk-QQLJQETD.mjs";
|
|
11
|
+
import "./chunk-UWFHV5PO.mjs";
|
|
12
12
|
import {
|
|
13
13
|
defineConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RARCLK3Z.mjs";
|
|
15
15
|
import {
|
|
16
16
|
defineAppJson,
|
|
17
17
|
defineComponentJson,
|
|
18
18
|
definePageJson,
|
|
19
19
|
defineSitemapJson,
|
|
20
20
|
defineThemeJson
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-W6M7JCS2.mjs";
|
|
22
22
|
import {
|
|
23
23
|
init_esm_shims
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VUWEDLBP.mjs";
|
|
25
25
|
|
|
26
26
|
// src/index.ts
|
|
27
27
|
init_esm_shims();
|
package/dist/json.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { App, Component, Page, Sitemap, Theme } from '@weapp-core/schematics';
|
|
2
|
-
export { g as defineAppJson, i as defineComponentJson, h as definePageJson, j as defineSitemapJson, k as defineThemeJson } from './config-
|
|
2
|
+
export { g as defineAppJson, i as defineComponentJson, h as definePageJson, j as defineSitemapJson, k as defineThemeJson } from './config-wdKtqToL.js';
|
|
3
3
|
import 'vite';
|
|
4
4
|
import '@weapp-vite/web';
|
|
5
5
|
import 'rolldown';
|
|
@@ -7,6 +7,7 @@ import 'vite-plugin-performance';
|
|
|
7
7
|
import 'vite-tsconfig-paths';
|
|
8
8
|
import 'wevu';
|
|
9
9
|
import './types-Dxi4LfZo.js';
|
|
10
|
+
import '@weapp-core/logger';
|
|
10
11
|
import 'p-queue';
|
|
11
12
|
import 'package-manager-detector';
|
|
12
13
|
import 'pkg-types';
|
package/dist/json.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
extractJsonMacroFromScriptSetup,
|
|
3
3
|
stripJsonMacroCallsFromCode
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-QQLJQETD.mjs";
|
|
5
|
+
import "./chunk-UWFHV5PO.mjs";
|
|
6
|
+
import "./chunk-VUWEDLBP.mjs";
|
|
7
7
|
export {
|
|
8
8
|
extractJsonMacroFromScriptSetup,
|
|
9
9
|
stripJsonMacroCallsFromCode
|
package/dist/runtime.mjs
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Alias, l as AliasOptions, aa as AppEntry, I as AutoImportComponents, J as AutoImportComponentsOption, a8 as BaseEntry, T as BuildNpmPackageMeta, af as ChangeEvent, a1 as ChunksConfig, ac as ComponentEntry, a7 as ComponentsMap, F as CopyGlobs, E as CopyOptions, Q as EnhanceOptions, K as EnhanceWxmlOptions, a9 as Entry, ad as EntryJsonFragment, q as GenerateDirsOptions, G as GenerateExtensionsOptions, s as GenerateFileType, r as GenerateFilenamesOptions, D as GenerateOptions, x as GenerateTemplate, t as GenerateTemplateContext, y as GenerateTemplateEntry, w as GenerateTemplateFactory, u as GenerateTemplateFileSource, v as GenerateTemplateInlineSource, z as GenerateTemplateScope, B as GenerateTemplatesConfig, P as HandleWxmlOptions, V as JsFormat, a0 as JsonConfig, Z as JsonMergeContext, _ as JsonMergeFunction, Y as JsonMergeStage, $ as JsonMergeStrategy, M as MpPlatform, N as NpmBuildOptions, ab as PageEntry, a3 as ProjectConfig, R as ResolvedAlias, a6 as ScanComponentItem, O as ScanWxmlOptions, X as SharedChunkStrategy, S as SubPackage, a4 as SubPackageMetaValue, o as SubPackageStyleConfigEntry, n as SubPackageStyleConfigObject, p as SubPackageStyleEntry, m as SubPackageStyleScope, a2 as UserConfig, W as WeappViteConfig, ae as WeappVitePluginApi, H as WeappWebConfig, a5 as WxmlDep } from './config-
|
|
1
|
+
export { A as Alias, l as AliasOptions, aa as AppEntry, I as AutoImportComponents, J as AutoImportComponentsOption, a8 as BaseEntry, T as BuildNpmPackageMeta, af as ChangeEvent, a1 as ChunksConfig, ac as ComponentEntry, a7 as ComponentsMap, F as CopyGlobs, E as CopyOptions, Q as EnhanceOptions, K as EnhanceWxmlOptions, a9 as Entry, ad as EntryJsonFragment, q as GenerateDirsOptions, G as GenerateExtensionsOptions, s as GenerateFileType, r as GenerateFilenamesOptions, D as GenerateOptions, x as GenerateTemplate, t as GenerateTemplateContext, y as GenerateTemplateEntry, w as GenerateTemplateFactory, u as GenerateTemplateFileSource, v as GenerateTemplateInlineSource, z as GenerateTemplateScope, B as GenerateTemplatesConfig, P as HandleWxmlOptions, V as JsFormat, a0 as JsonConfig, Z as JsonMergeContext, _ as JsonMergeFunction, Y as JsonMergeStage, $ as JsonMergeStrategy, M as MpPlatform, N as NpmBuildOptions, ab as PageEntry, a3 as ProjectConfig, R as ResolvedAlias, a6 as ScanComponentItem, O as ScanWxmlOptions, X as SharedChunkStrategy, S as SubPackage, a4 as SubPackageMetaValue, o as SubPackageStyleConfigEntry, n as SubPackageStyleConfigObject, p as SubPackageStyleEntry, m as SubPackageStyleScope, a2 as UserConfig, W as WeappViteConfig, ae as WeappVitePluginApi, H as WeappWebConfig, a5 as WxmlDep } from './config-wdKtqToL.js';
|
|
2
2
|
export { RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, WatchOptions as RolldownWatchOptions, RolldownWatcher } from 'rolldown';
|
|
3
3
|
export { ConfigEnv, InlineConfig, Plugin, PluginOption, ResolvedConfig, ViteDevServer } from 'vite';
|
|
4
4
|
export { ComputedDefinitions, MethodDefinitions, Ref } from 'wevu';
|
|
@@ -8,6 +8,7 @@ import '@weapp-core/schematics';
|
|
|
8
8
|
import '@weapp-vite/web';
|
|
9
9
|
import 'vite-plugin-performance';
|
|
10
10
|
import 'vite-tsconfig-paths';
|
|
11
|
+
import '@weapp-core/logger';
|
|
11
12
|
import 'p-queue';
|
|
12
13
|
import 'package-manager-detector';
|
|
13
14
|
import 'pkg-types';
|
package/dist/types.mjs
CHANGED
package/dist/volar.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.3.1",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"fdir": "^6.5.0",
|
|
94
94
|
"fs-extra": "^11.3.3",
|
|
95
95
|
"magic-string": "^0.30.21",
|
|
96
|
-
"oxc-parser": "^0.
|
|
96
|
+
"oxc-parser": "^0.110.0",
|
|
97
97
|
"oxc-walker": "^0.7.0",
|
|
98
98
|
"pathe": "^2.0.3",
|
|
99
99
|
"picomatch": "^4.0.3",
|
|
@@ -103,22 +103,22 @@
|
|
|
103
103
|
"vite-tsconfig-paths": "^6.0.4",
|
|
104
104
|
"vue": "^3.5.27",
|
|
105
105
|
"@weapp-core/init": "6.0.0",
|
|
106
|
-
"@weapp-core/logger": "3.0.
|
|
106
|
+
"@weapp-core/logger": "3.0.1",
|
|
107
107
|
"@weapp-core/schematics": "6.0.1",
|
|
108
108
|
"@weapp-core/shared": "3.0.0",
|
|
109
109
|
"@weapp-vite/volar": "2.0.3",
|
|
110
|
-
"@weapp-vite/web": "1.0
|
|
111
|
-
"rolldown-require": "2.0.0",
|
|
110
|
+
"@weapp-vite/web": "1.1.0",
|
|
112
111
|
"vite-plugin-performance": "2.0.0",
|
|
113
112
|
"weapp-ide-cli": "5.0.0",
|
|
114
|
-
"
|
|
113
|
+
"rolldown-require": "2.0.0",
|
|
114
|
+
"wevu": "1.1.4"
|
|
115
115
|
},
|
|
116
116
|
"publishConfig": {
|
|
117
117
|
"access": "public",
|
|
118
118
|
"registry": "https://registry.npmjs.org"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
|
-
"@oxc-project/types": "^0.
|
|
121
|
+
"@oxc-project/types": "^0.110.0",
|
|
122
122
|
"@tailwindcss/vite": "^4.1.18",
|
|
123
123
|
"@types/semver": "^7.7.1",
|
|
124
124
|
"@vitejs/plugin-vue": "^6.0.3",
|