weapp-vite 7.0.1 → 7.0.2
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-CwKw7Ban.mjs → createContext-DDhnklA6.mjs} +2 -3
- package/dist/{file-C0rR_V0f.mjs → file-B34zY0ET.mjs} +1 -1
- package/dist/file-pxD6pTOO.mjs +2 -0
- package/dist/getInstance-2DtlgqE-.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/test.mjs +1 -1
- package/package.json +7 -7
- package/dist/file-uhBc0Ffs.mjs +0 -2
- package/dist/getInstance-CczmNJ2e.mjs +0 -2
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-
|
|
1
|
+
import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-DDhnklA6.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,5 +1,5 @@
|
|
|
1
|
-
import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as createGlassEaselAnalyzeResult, b as resolveWeappConfigFile, f as getBackendForCapability, g as createSharedBuildConfig, h as syncManagedTsconfigBootstrapFiles, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-
|
|
2
|
-
import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-
|
|
1
|
+
import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as createCjsConfigLoadError, S as getProjectConfigFileName, T as resolvePreloadPackageIdentifier, _ as SHARED_CHUNK_VIRTUAL_PREFIX, a as createGlassEaselAnalyzeResult, b as resolveWeappConfigFile, f as getBackendForCapability, g as createSharedBuildConfig, h as syncManagedTsconfigBootstrapFiles, j as shouldPassPlatformArgToIdeOpen, k as parseCommentJson, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-DDhnklA6.mjs";
|
|
2
|
+
import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-B34zY0ET.mjs";
|
|
3
3
|
import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
|
|
4
4
|
import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-BG6TliEg.mjs";
|
|
5
5
|
import { createRequire } from "node:module";
|
|
@@ -5044,7 +5044,7 @@ function resolveRunnableHotkeyDefinition(input) {
|
|
|
5044
5044
|
}
|
|
5045
5045
|
//#endregion
|
|
5046
5046
|
//#region package.json
|
|
5047
|
-
var version = "7.0.
|
|
5047
|
+
var version = "7.0.2";
|
|
5048
5048
|
//#endregion
|
|
5049
5049
|
//#region src/cli/devHotkeys/format.ts
|
|
5050
5050
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
|
|
2
|
-
import { C as inlineAutoRoutesImports, T as MINI_PROGRAM_PLATFORM_ADAPTERS, _ as templateExtensions, a as findJsonEntry, b as isNativeTemplateSource, c as isJsOrTs, d as touch, g as supportedCssLangs, h as scriptExtensions, i as findJsEntry, l as isTemplate, m as jsExtensions, n as changeFileExtension, o as findTemplateEntry, p as configExtensions, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as vueExtensions, x as isSourceStyleExtension, y as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS } from "./file-
|
|
2
|
+
import { C as inlineAutoRoutesImports, T as MINI_PROGRAM_PLATFORM_ADAPTERS, _ as templateExtensions, a as findJsonEntry, b as isNativeTemplateSource, c as isJsOrTs, d as touch, g as supportedCssLangs, h as scriptExtensions, i as findJsEntry, l as isTemplate, m as jsExtensions, n as changeFileExtension, o as findTemplateEntry, p as configExtensions, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as vueExtensions, x as isSourceStyleExtension, y as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS } from "./file-B34zY0ET.mjs";
|
|
3
3
|
import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
|
|
4
4
|
import { createRequire, isBuiltin } from "node:module";
|
|
5
5
|
import { createDebug } from "obug";
|
|
@@ -15039,7 +15039,6 @@ function getAppTypes(ctx, legacyConfig) {
|
|
|
15039
15039
|
const legacyTypes = legacyConfig?.app?.compilerOptions?.types;
|
|
15040
15040
|
const platformAppTypesPackage = getPlatformAppTypesPackage(config.platform);
|
|
15041
15041
|
const types = [platformAppTypesPackage !== "miniprogram-api-typings" && hasDependency(packageJson, platformAppTypesPackage) ? platformAppTypesPackage : "miniprogram-api-typings", "weapp-vite/client"];
|
|
15042
|
-
if (config.web && config.web.enable !== false) types.push("vite/client");
|
|
15043
15042
|
if (Array.isArray(legacyTypes) && legacyTypes.length > 0) types.push(...legacyTypes);
|
|
15044
15043
|
if (Array.isArray(userTypes) && userTypes.length > 0) types.push(...userTypes);
|
|
15045
15044
|
return unique$1(types);
|
|
@@ -35223,7 +35222,7 @@ async function loadAppEntry(ctx, scanState) {
|
|
|
35223
35222
|
const { path: appEntryPath } = appEntry;
|
|
35224
35223
|
let configFromVue;
|
|
35225
35224
|
if (!appConfigFile && vueAppPath) {
|
|
35226
|
-
const { extractConfigFromVue } = await import("./file-
|
|
35225
|
+
const { extractConfigFromVue } = await import("./file-pxD6pTOO.mjs");
|
|
35227
35226
|
configFromVue = await extractConfigFromVue(vueAppPath);
|
|
35228
35227
|
if (configFromVue) appConfigFile = vueAppPath;
|
|
35229
35228
|
}
|
|
@@ -51,7 +51,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
51
51
|
}
|
|
52
52
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
53
53
|
try {
|
|
54
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
54
|
+
const { getCompilerContext } = await import("./getInstance-2DtlgqE-.mjs");
|
|
55
55
|
const compilerContext = getCompilerContext();
|
|
56
56
|
const service = compilerContext.autoRoutesService;
|
|
57
57
|
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 getSupportedWeappVitePlatforms, d as resolveWeappViteTarget, l as getSupportedWeappViteTargetDescriptors, s as WEB_PLATFORM_ALIASES, t as createCompilerContext, u as isWebPlatform } from "./createContext-
|
|
4
|
+
import { c as getSupportedWeappVitePlatforms, d as resolveWeappViteTarget, l as getSupportedWeappViteTargetDescriptors, s as WEB_PLATFORM_ALIASES, t as createCompilerContext, u as isWebPlatform } from "./createContext-DDhnklA6.mjs";
|
|
5
5
|
import { a as resolveLayoutHost, c as createWevuComponent, i as registerLayoutHosts, n as defineProps, o as unregisterLayoutHosts, r as setPageLayout, s as waitForLayoutHost, t as defineEmits } from "./runtime-D6VCNhNY.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, registerLayoutHosts, resolveLayoutHost, resolveWeappViteHostMeta, resolveWeappViteTarget, setPageLayout, unregisterLayoutHosts, waitForLayoutHost };
|
package/dist/test.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.2",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -125,13 +125,13 @@
|
|
|
125
125
|
"@weapp-core/logger": "3.1.1",
|
|
126
126
|
"@weapp-core/schematics": "6.2.2",
|
|
127
127
|
"@weapp-core/shared": "3.2.0",
|
|
128
|
-
"@weapp-vite/ast": "7.0.
|
|
128
|
+
"@weapp-vite/ast": "7.0.2",
|
|
129
129
|
"@weapp-vite/eslint": "0.2.2",
|
|
130
130
|
"@weapp-vite/i18n": "0.2.1",
|
|
131
131
|
"@weapp-vite/mcp": "1.5.1",
|
|
132
132
|
"@weapp-vite/miniprogram-automator": "1.2.16",
|
|
133
133
|
"@weapp-vite/volar": "2.1.6",
|
|
134
|
-
"@weapp-vite/web": "1.4.
|
|
134
|
+
"@weapp-vite/web": "1.4.19",
|
|
135
135
|
"@wevu/api": "0.3.0",
|
|
136
136
|
"@wevu/web-apis": "1.2.39",
|
|
137
137
|
"cac": "^7.0.0",
|
|
@@ -149,9 +149,9 @@
|
|
|
149
149
|
"pathe": "^2.0.3",
|
|
150
150
|
"picomatch": "^4.0.7",
|
|
151
151
|
"postcss": "^8.5.26",
|
|
152
|
-
"rolldown": "1.2.
|
|
152
|
+
"rolldown": "1.2.7",
|
|
153
153
|
"rolldown-plugin-dts": "0.28.4",
|
|
154
|
-
"rolldown-require": "2.0.
|
|
154
|
+
"rolldown-require": "2.0.28",
|
|
155
155
|
"semver": "^7.8.5",
|
|
156
156
|
"typescript": "^6.0.3",
|
|
157
157
|
"vite": "8.2.2",
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
"vue": "^3.5.42",
|
|
161
161
|
"vue-tsc": "^3.3.11",
|
|
162
162
|
"weapp-ide-cli": "6.1.1",
|
|
163
|
-
"weapp-tailwindcss": "^5.
|
|
164
|
-
"wevu": "7.0.
|
|
163
|
+
"weapp-tailwindcss": "^5.5.0",
|
|
164
|
+
"wevu": "7.0.2"
|
|
165
165
|
},
|
|
166
166
|
"optionalDependencies": {
|
|
167
167
|
"@swc/core": "^1.16.1"
|
package/dist/file-uhBc0Ffs.mjs
DELETED