weapp-vite 7.1.1 → 7.1.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-LjdYRJlD.mjs → createContext-BYZnlk4j.mjs} +7 -3
- package/dist/file-BRQqRekU.mjs +2 -0
- package/dist/{file-CKQnVhdF.mjs → file-CLo_LdAz.mjs} +1 -1
- package/dist/getInstance-D82nepOm.mjs +2 -0
- package/dist/index.mjs +1 -1
- package/dist/test.mjs +1 -1
- package/package.json +5 -5
- package/dist/file-8WduvW-j.mjs +0 -2
- package/dist/getInstance-qQVv8Ayz.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-BYZnlk4j.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-BYZnlk4j.mjs";
|
|
2
|
+
import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-CLo_LdAz.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";
|
|
@@ -5062,7 +5062,7 @@ function resolveRunnableHotkeyDefinition(input) {
|
|
|
5062
5062
|
}
|
|
5063
5063
|
//#endregion
|
|
5064
5064
|
//#region package.json
|
|
5065
|
-
var version = "7.1.
|
|
5065
|
+
var version = "7.1.2";
|
|
5066
5066
|
//#endregion
|
|
5067
5067
|
//#region src/cli/devHotkeys/format.ts
|
|
5068
5068
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
|
|
2
|
-
import { E 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, w as inlineAutoRoutesImports, x as isSourceStyleExtension, y as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS } from "./file-
|
|
2
|
+
import { E 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, w as inlineAutoRoutesImports, x as isSourceStyleExtension, y as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS } from "./file-CLo_LdAz.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";
|
|
@@ -33510,7 +33510,11 @@ function createCoreLifecyclePlugin(state) {
|
|
|
33510
33510
|
const REQUIRE_ANALYSIS_FILTER_RE = /\.[jt]s$/;
|
|
33511
33511
|
const URL_SUFFIX_RE = /[?#].*$/;
|
|
33512
33512
|
const REQUIRE_ASYNC_TARGET_MARKER_PREFIX = "__weapp_vite_require_async_target__";
|
|
33513
|
-
const REQUIRE_ASYNC_TARGET_MARKER_RE = new RegExp(
|
|
33513
|
+
const REQUIRE_ASYNC_TARGET_MARKER_RE = new RegExp([
|
|
33514
|
+
`\\brequire\\s*\\.\\s*async\\(\\s*([${String.fromCharCode(39, 34, 96)}])`,
|
|
33515
|
+
REQUIRE_ASYNC_TARGET_MARKER_PREFIX,
|
|
33516
|
+
"([\\w-]+)\\1\\s*\\)"
|
|
33517
|
+
].join(""), "g");
|
|
33514
33518
|
function cleanModuleId(id) {
|
|
33515
33519
|
return id.replace(URL_SUFFIX_RE, "");
|
|
33516
33520
|
}
|
|
@@ -38442,7 +38446,7 @@ async function loadAppEntry(ctx, scanState) {
|
|
|
38442
38446
|
const { path: appEntryPath } = appEntry;
|
|
38443
38447
|
let configFromVue;
|
|
38444
38448
|
if (!appConfigFile && vueAppPath) {
|
|
38445
|
-
const { extractConfigFromVue } = await import("./file-
|
|
38449
|
+
const { extractConfigFromVue } = await import("./file-BRQqRekU.mjs");
|
|
38446
38450
|
configFromVue = await extractConfigFromVue(vueAppPath);
|
|
38447
38451
|
if (configFromVue) appConfigFile = vueAppPath;
|
|
38448
38452
|
}
|
|
@@ -54,7 +54,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
54
54
|
}
|
|
55
55
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
56
56
|
try {
|
|
57
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
57
|
+
const { getCompilerContext } = await import("./getInstance-D82nepOm.mjs");
|
|
58
58
|
const compilerContext = getCompilerContext();
|
|
59
59
|
const service = compilerContext.autoRoutesService;
|
|
60
60
|
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-BYZnlk4j.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.1.
|
|
4
|
+
"version": "7.1.2",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -128,13 +128,13 @@
|
|
|
128
128
|
"@weapp-core/logger": "3.1.3",
|
|
129
129
|
"@weapp-core/schematics": "6.2.3",
|
|
130
130
|
"@weapp-core/shared": "3.2.2",
|
|
131
|
-
"@weapp-vite/ast": "7.1.
|
|
131
|
+
"@weapp-vite/ast": "7.1.2",
|
|
132
132
|
"@weapp-vite/eslint": "0.2.4",
|
|
133
133
|
"@weapp-vite/i18n": "0.2.3",
|
|
134
134
|
"@weapp-vite/mcp": "1.5.3",
|
|
135
135
|
"@weapp-vite/miniprogram-automator": "1.2.18",
|
|
136
136
|
"@weapp-vite/volar": "2.1.7",
|
|
137
|
-
"@weapp-vite/web": "1.5.
|
|
137
|
+
"@weapp-vite/web": "1.5.2",
|
|
138
138
|
"@wevu/api": "0.3.2",
|
|
139
139
|
"@wevu/web-apis": "1.2.42",
|
|
140
140
|
"cac": "^7.0.0",
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
"vue": "^3.5.42",
|
|
165
165
|
"vue-tsc": "^3.3.11",
|
|
166
166
|
"weapp-ide-cli": "6.1.4",
|
|
167
|
-
"weapp-tailwindcss": "^5.5.
|
|
168
|
-
"wevu": "7.1.
|
|
167
|
+
"weapp-tailwindcss": "^5.5.4",
|
|
168
|
+
"wevu": "7.1.2"
|
|
169
169
|
},
|
|
170
170
|
"optionalDependencies": {
|
|
171
171
|
"@swc/core": "^1.16.2"
|
package/dist/file-8WduvW-j.mjs
DELETED