weapp-vite 6.16.34 → 6.16.35
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-routes.mjs +1 -1
- package/dist/cli.mjs +3 -3
- package/dist/{createContext-BZRrqhni.mjs → createContext-29bA2ZmE.mjs} +19 -11
- package/dist/{file-DuKnIngQ.mjs → file--u6Mt5At.mjs} +1 -1
- package/dist/file-BGjDGA3Q.mjs +2 -0
- package/dist/getInstance-JUJuJysh.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
- package/dist/file-B0xt4gdk.mjs +0 -2
- package/dist/getInstance-BGkP2tgX.mjs +0 -2
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-
|
|
1
|
+
import { g as getRouteRuntimeGlobalKeys, i as getCompilerContext } from "./createContext-29bA2ZmE.mjs";
|
|
2
2
|
//#region src/auto-routes.ts
|
|
3
3
|
const ROUTE_RUNTIME_OVERRIDE_KEY = Symbol.for("weapp-vite.route-runtime");
|
|
4
4
|
function createGetter(resolver) {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, b as getProjectConfigFileName, f as resolveWeappViteTarget, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, n as syncProjectSupportFiles, p as createSharedBuildConfig, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-
|
|
1
|
+
import { C as createCjsConfigLoadError, E as isPathInside, S as parseCommentJson, T as shouldPassPlatformArgToIdeOpen, _ as createBuildScopeConfigFromCli, b as getProjectConfigFileName, f as resolveWeappViteTarget, h as resolveHmrProfileJsonPath, m as SHARED_CHUNK_VIRTUAL_PREFIX, n as syncProjectSupportFiles, p as createSharedBuildConfig, r as syncManagedTsconfigBootstrapFiles, s as formatBytes, t as createCompilerContext, v as resolveWeappConfigFile, w as getDefaultIdeProjectRoot, x as loadViteConfigFile, y as checkRuntime } from "./createContext-29bA2ZmE.mjs";
|
|
2
2
|
import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
|
|
3
|
-
import { h as VERSION } from "./file
|
|
3
|
+
import { h as VERSION } from "./file--u6Mt5At.mjs";
|
|
4
4
|
import { o as resolveWeappMcpConfig, s as startWeappViteMcpServer } from "./mcp-qmDOTH07.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
6
6
|
import path, { posix } from "pathe";
|
|
@@ -3716,7 +3716,7 @@ function resolveRunnableHotkeyDefinition(input) {
|
|
|
3716
3716
|
}
|
|
3717
3717
|
//#endregion
|
|
3718
3718
|
//#region package.json
|
|
3719
|
-
var version = "6.16.
|
|
3719
|
+
var version = "6.16.35";
|
|
3720
3720
|
//#endregion
|
|
3721
3721
|
//#region src/cli/devHotkeys/format.ts
|
|
3722
3722
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
|
|
2
2
|
import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
|
|
3
|
-
import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file
|
|
3
|
+
import { _ as jsExtensions, a as findJsonEntry, b as vueExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as supportedCssLangs, y as templateExtensions } from "./file--u6Mt5At.mjs";
|
|
4
4
|
import { createRequire, isBuiltin } from "node:module";
|
|
5
5
|
import path, { posix } from "pathe";
|
|
6
6
|
import path$1, { normalize, relative, win32 } from "node:path";
|
|
@@ -21388,6 +21388,10 @@ function loadScopedSlotModule(id, scopedSlotModules) {
|
|
|
21388
21388
|
//#endregion
|
|
21389
21389
|
//#region src/plugins/vue/transform/bundle/shared/assets.ts
|
|
21390
21390
|
const APP_VUE_LIKE_FILE_RE$1 = /[\\/]app\.(?:vue|jsx|tsx)$/;
|
|
21391
|
+
async function processVueResultStyle(style, configService) {
|
|
21392
|
+
if (!configService.platform) return style;
|
|
21393
|
+
return await processCssWithCache(style, configService);
|
|
21394
|
+
}
|
|
21391
21395
|
function resolveVueBundleAssetContext(configService) {
|
|
21392
21396
|
const outputExtensions = configService.outputExtensions;
|
|
21393
21397
|
const bundleOutputExtensions = resolveBundleOutputExtensions(outputExtensions);
|
|
@@ -21412,9 +21416,9 @@ function emitSharedVueEntryJsonAsset(options) {
|
|
|
21412
21416
|
});
|
|
21413
21417
|
emitSfcJsonAsset(options.pluginCtx, options.bundle, options.relativeBase, { config: normalizedConfig }, options.jsonOptions);
|
|
21414
21418
|
}
|
|
21415
|
-
function emitSharedFallbackPageAssets(options) {
|
|
21416
|
-
const { bundle, pluginCtx, relativeBase, result, outputExtensions, platformAssetOptions, styleExtension, jsonExtension, jsonDefaults, jsonMergeStrategy } = options;
|
|
21417
|
-
if (result.style) emitSfcStyleIfMissing(pluginCtx, bundle, relativeBase, result.style, styleExtension);
|
|
21419
|
+
async function emitSharedFallbackPageAssets(options) {
|
|
21420
|
+
const { bundle, pluginCtx, configService, relativeBase, result, outputExtensions, platformAssetOptions, styleExtension, jsonExtension, jsonDefaults, jsonMergeStrategy } = options;
|
|
21421
|
+
if (result.style) emitSfcStyleIfMissing(pluginCtx, bundle, relativeBase, await processVueResultStyle(result.style, configService), styleExtension);
|
|
21418
21422
|
emitSharedVueEntryJsonAsset({
|
|
21419
21423
|
bundle,
|
|
21420
21424
|
pluginCtx,
|
|
@@ -21484,7 +21488,7 @@ function emitBundleVueEntryAssets(options) {
|
|
|
21484
21488
|
});
|
|
21485
21489
|
return { jsonConfig };
|
|
21486
21490
|
}
|
|
21487
|
-
function emitFallbackPageBundleAssets(options) {
|
|
21491
|
+
async function emitFallbackPageBundleAssets(options) {
|
|
21488
21492
|
const { jsonConfig } = emitBundleVueEntryAssets({
|
|
21489
21493
|
bundle: options.bundle,
|
|
21490
21494
|
pluginCtx: options.pluginCtx,
|
|
@@ -21498,9 +21502,10 @@ function emitFallbackPageBundleAssets(options) {
|
|
|
21498
21502
|
outputExtensions: options.outputExtensions,
|
|
21499
21503
|
platformAssetOptions: options.platformAssetOptions
|
|
21500
21504
|
});
|
|
21501
|
-
emitSharedFallbackPageAssets({
|
|
21505
|
+
await emitSharedFallbackPageAssets({
|
|
21502
21506
|
bundle: options.bundle,
|
|
21503
21507
|
pluginCtx: options.pluginCtx,
|
|
21508
|
+
configService: options.configService,
|
|
21504
21509
|
relativeBase: options.relativeBase,
|
|
21505
21510
|
result: options.result,
|
|
21506
21511
|
outputExtensions: options.outputExtensions,
|
|
@@ -21511,7 +21516,7 @@ function emitFallbackPageBundleAssets(options) {
|
|
|
21511
21516
|
jsonMergeStrategy: jsonConfig?.mergeStrategy
|
|
21512
21517
|
});
|
|
21513
21518
|
}
|
|
21514
|
-
function emitCompiledEntryBundleAssets(options) {
|
|
21519
|
+
async function emitCompiledEntryBundleAssets(options) {
|
|
21515
21520
|
const isAppVue = APP_VUE_LIKE_FILE_RE$1.test(options.filename);
|
|
21516
21521
|
const hmrState = options.ctx.runtimeState?.build?.hmr;
|
|
21517
21522
|
const shouldEmitComponentJson = !isAppVue && !options.isPage;
|
|
@@ -21534,7 +21539,10 @@ function emitCompiledEntryBundleAssets(options) {
|
|
|
21534
21539
|
outputExtensions: options.outputExtensions,
|
|
21535
21540
|
platformAssetOptions: options.platformAssetOptions
|
|
21536
21541
|
});
|
|
21537
|
-
if (shouldEmitSfcStyleAsset)
|
|
21542
|
+
if (shouldEmitSfcStyleAsset) {
|
|
21543
|
+
const style = await processVueResultStyle(sfcStyle, options.configService);
|
|
21544
|
+
emitSfcStyleIfMissing(options.pluginCtx, options.bundle, options.relativeBase, style, options.outputExtensions.wxss, isAppVue ? { updateExisting: false } : void 0);
|
|
21545
|
+
}
|
|
21538
21546
|
if (options.result.config || shouldEmitComponentJson) emitSharedVueEntryJsonAsset({
|
|
21539
21547
|
bundle: options.bundle,
|
|
21540
21548
|
pluginCtx: options.pluginCtx,
|
|
@@ -23048,7 +23056,7 @@ async function emitResolvedCompiledVueEntryAssets(options) {
|
|
|
23048
23056
|
kind: "page-layout",
|
|
23049
23057
|
template: result.template
|
|
23050
23058
|
});
|
|
23051
|
-
const { shouldEmitComponentJson } = emitCompiledEntryBundleAssets({
|
|
23059
|
+
const { shouldEmitComponentJson } = await emitCompiledEntryBundleAssets({
|
|
23052
23060
|
bundle,
|
|
23053
23061
|
pluginCtx,
|
|
23054
23062
|
ctx,
|
|
@@ -23175,7 +23183,7 @@ async function emitResolvedFallbackPageEntryAssets(options) {
|
|
|
23175
23183
|
}
|
|
23176
23184
|
});
|
|
23177
23185
|
applyAppShell(result, options.entryFilePath, options.appShell);
|
|
23178
|
-
emitFallbackPageBundleAssets({
|
|
23186
|
+
await emitFallbackPageBundleAssets({
|
|
23179
23187
|
bundle: options.bundle,
|
|
23180
23188
|
pluginCtx: options.pluginCtx,
|
|
23181
23189
|
ctx: options.ctx,
|
|
@@ -24733,7 +24741,7 @@ async function loadAppEntry(ctx, scanState) {
|
|
|
24733
24741
|
const vueAppPath = await findVueEntry(appBasename);
|
|
24734
24742
|
let configFromVue;
|
|
24735
24743
|
if (!appConfigFile && vueAppPath) {
|
|
24736
|
-
const { extractConfigFromVue } = await import("./file-
|
|
24744
|
+
const { extractConfigFromVue } = await import("./file-BGjDGA3Q.mjs");
|
|
24737
24745
|
configFromVue = await extractConfigFromVue(vueAppPath);
|
|
24738
24746
|
if (configFromVue) appConfigFile = vueAppPath;
|
|
24739
24747
|
}
|
|
@@ -84,7 +84,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
84
84
|
}
|
|
85
85
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
86
86
|
try {
|
|
87
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
87
|
+
const { getCompilerContext } = await import("./getInstance-JUJuJysh.mjs");
|
|
88
88
|
const compilerContext = getCompilerContext();
|
|
89
89
|
const service = compilerContext.autoRoutesService;
|
|
90
90
|
const reference = service?.getReference?.();
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as defineThemeJson, i as defineSitemapJson, n as defineComponentJson, r as definePageJson, t as defineAppJson } from "./json-BL8Dhhk6.mjs";
|
|
2
2
|
import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost--CaeyWpA.mjs";
|
|
3
3
|
import { t as defineConfig } from "./config-DRGcCi3h.mjs";
|
|
4
|
-
import { c as WEB_PLATFORM_ALIASES, d as isWebPlatform, f as resolveWeappViteTarget, l as getSupportedWeappVitePlatforms, t as createCompilerContext, u as getSupportedWeappViteTargetDescriptors } from "./createContext-
|
|
4
|
+
import { c as WEB_PLATFORM_ALIASES, d as isWebPlatform, f as resolveWeappViteTarget, l as getSupportedWeappVitePlatforms, t as createCompilerContext, u as getSupportedWeappViteTargetDescriptors } from "./createContext-29bA2ZmE.mjs";
|
|
5
5
|
import { i as createWevuComponent, n as defineProps, r as setPageLayout, t as defineEmits } from "./runtime-C3z9pDQB.mjs";
|
|
6
6
|
export { WEAPP_VITE_HOST_NAME, WEB_PLATFORM_ALIASES, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, getSupportedWeappVitePlatforms, getSupportedWeappViteTargetDescriptors, isWeappViteHost, isWebPlatform, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "6.16.
|
|
4
|
+
"version": "6.16.35",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -118,21 +118,21 @@
|
|
|
118
118
|
"vue": "^3.5.35",
|
|
119
119
|
"vue-tsc": "^3.3.3",
|
|
120
120
|
"@weapp-core/constants": "0.1.12",
|
|
121
|
-
"@weapp-core/init": "6.0.9",
|
|
122
121
|
"@weapp-core/logger": "3.1.1",
|
|
123
122
|
"@weapp-core/schematics": "6.0.4",
|
|
123
|
+
"@weapp-core/init": "6.0.9",
|
|
124
124
|
"@weapp-core/shared": "3.0.4",
|
|
125
|
-
"@weapp-vite/ast": "6.16.
|
|
126
|
-
"@weapp-vite/
|
|
127
|
-
"@weapp-vite/miniprogram-automator": "1.1.3",
|
|
125
|
+
"@weapp-vite/ast": "6.16.35",
|
|
126
|
+
"@weapp-vite/miniprogram-automator": "1.2.0",
|
|
128
127
|
"@weapp-vite/volar": "2.1.0",
|
|
129
128
|
"@weapp-vite/web": "1.3.29",
|
|
130
129
|
"@wevu/api": "0.2.9",
|
|
131
|
-
"@
|
|
130
|
+
"@weapp-vite/mcp": "1.4.0",
|
|
131
|
+
"@wevu/web-apis": "1.2.20",
|
|
132
132
|
"rolldown-require": "2.0.18",
|
|
133
133
|
"vite-plugin-performance": "2.0.1",
|
|
134
|
-
"weapp-ide-cli": "5.
|
|
135
|
-
"wevu": "6.16.
|
|
134
|
+
"weapp-ide-cli": "5.4.0",
|
|
135
|
+
"wevu": "6.16.35"
|
|
136
136
|
},
|
|
137
137
|
"publishConfig": {
|
|
138
138
|
"access": "public",
|
package/dist/file-B0xt4gdk.mjs
DELETED