weapp-vite 7.0.0 → 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.
@@ -1,4 +1,4 @@
1
- import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-CwKw7Ban.mjs";
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-CwKw7Ban.mjs";
2
- import { f as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-C0rR_V0f.mjs";
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.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-C0rR_V0f.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-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-uhBc0Ffs.mjs");
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-CczmNJ2e.mjs");
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?.();
@@ -0,0 +1,2 @@
1
+ import { t as extractConfigFromVue } from "./file-B34zY0ET.mjs";
2
+ export { extractConfigFromVue };
@@ -0,0 +1,2 @@
1
+ import { n as getCompilerContext } from "./createContext-DDhnklA6.mjs";
2
+ export { getCompilerContext };
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-CwKw7Ban.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-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
@@ -1,4 +1,4 @@
1
- import { t as createCompilerContext } from "./createContext-CwKw7Ban.mjs";
1
+ import { t as createCompilerContext } from "./createContext-DDhnklA6.mjs";
2
2
  import path from "node:path";
3
3
  import process from "node:process";
4
4
  import chokidar from "chokidar";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "7.0.0",
4
+ "version": "7.0.2",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -120,6 +120,20 @@
120
120
  "@vercel/detect-agent": "^1.2.5",
121
121
  "@volar/typescript": "^2.4.28",
122
122
  "@vue/language-core": "^3.3.11",
123
+ "@weapp-core/constants": "0.2.1",
124
+ "@weapp-core/init": "6.0.16",
125
+ "@weapp-core/logger": "3.1.1",
126
+ "@weapp-core/schematics": "6.2.2",
127
+ "@weapp-core/shared": "3.2.0",
128
+ "@weapp-vite/ast": "7.0.2",
129
+ "@weapp-vite/eslint": "0.2.2",
130
+ "@weapp-vite/i18n": "0.2.1",
131
+ "@weapp-vite/mcp": "1.5.1",
132
+ "@weapp-vite/miniprogram-automator": "1.2.16",
133
+ "@weapp-vite/volar": "2.1.6",
134
+ "@weapp-vite/web": "1.4.19",
135
+ "@wevu/api": "0.3.0",
136
+ "@wevu/web-apis": "1.2.39",
123
137
  "cac": "^7.0.0",
124
138
  "chokidar": "^5.0.0",
125
139
  "comment-json": "^5.0.0",
@@ -135,39 +149,25 @@
135
149
  "pathe": "^2.0.3",
136
150
  "picomatch": "^4.0.7",
137
151
  "postcss": "^8.5.26",
138
- "rolldown": "1.2.6",
152
+ "rolldown": "1.2.7",
139
153
  "rolldown-plugin-dts": "0.28.4",
154
+ "rolldown-require": "2.0.28",
140
155
  "semver": "^7.8.5",
141
156
  "typescript": "^6.0.3",
142
157
  "vite": "8.2.2",
158
+ "vite-plugin-performance": "2.0.1",
143
159
  "vite-tsconfig-paths": "^6.1.1",
144
160
  "vue": "^3.5.42",
145
161
  "vue-tsc": "^3.3.11",
146
- "weapp-tailwindcss": "^5.4.2",
147
- "@weapp-core/constants": "0.2.0",
148
- "@weapp-core/logger": "3.1.1",
149
- "@weapp-core/init": "6.0.16",
150
- "@weapp-core/shared": "3.2.0",
151
- "@weapp-core/schematics": "6.2.2",
152
- "@weapp-vite/eslint": "0.2.2",
153
- "@weapp-vite/i18n": "0.2.0",
154
- "@weapp-vite/ast": "7.0.0",
155
- "@weapp-vite/miniprogram-automator": "1.2.16",
156
- "@weapp-vite/mcp": "1.5.1",
157
- "@weapp-vite/volar": "2.1.6",
158
- "@weapp-vite/web": "1.4.17",
159
- "@wevu/api": "0.3.0",
160
- "@wevu/web-apis": "1.2.38",
161
- "vite-plugin-performance": "2.0.1",
162
- "rolldown-require": "2.0.27",
163
- "wevu": "7.0.0",
164
- "weapp-ide-cli": "6.1.1"
162
+ "weapp-ide-cli": "6.1.1",
163
+ "weapp-tailwindcss": "^5.5.0",
164
+ "wevu": "7.0.2"
165
165
  },
166
166
  "optionalDependencies": {
167
167
  "@swc/core": "^1.16.1"
168
168
  },
169
169
  "devDependencies": {
170
- "oxc-parser": "^0.147.0",
170
+ "oxc-parser": "^0.148.0",
171
171
  "oxc-walker": "^1.1.1",
172
172
  "tailwindcss": "^4.3.3",
173
173
  "ts-morph": "^28.0.0"
@@ -1,2 +0,0 @@
1
- import { t as extractConfigFromVue } from "./file-C0rR_V0f.mjs";
2
- export { extractConfigFromVue };
@@ -1,2 +0,0 @@
1
- import { n as getCompilerContext } from "./createContext-CwKw7Ban.mjs";
2
- export { getCompilerContext };