weapp-vite 6.12.3 → 6.12.4

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 { i as getCompilerContext, l as getRouteRuntimeGlobalKeys } from "./createContext-f0OMYoia.mjs";
1
+ import { i as getCompilerContext, l as getRouteRuntimeGlobalKeys } from "./createContext-D0UJheyD.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 { _ as getDefaultIdeProjectRoot, b as shouldPassPlatformArgToIdeOpen, c as SHARED_CHUNK_VIRTUAL_PREFIX, d as checkRuntime, f as getProjectConfigFileName, g as DEFAULT_MP_PLATFORM, h as createCjsConfigLoadError, m as parseCommentJson, n as syncProjectSupportFiles, o as formatBytes, p as loadViteConfigFile, r as syncManagedTsconfigBootstrapFiles, s as createSharedBuildConfig, t as createCompilerContext, u as resolveWeappConfigFile, v as normalizeMiniPlatform, x as isPathInside, y as resolveMiniPlatform } from "./createContext-f0OMYoia.mjs";
1
+ import { _ as getDefaultIdeProjectRoot, b as shouldPassPlatformArgToIdeOpen, c as SHARED_CHUNK_VIRTUAL_PREFIX, d as checkRuntime, f as getProjectConfigFileName, g as DEFAULT_MP_PLATFORM, h as createCjsConfigLoadError, m as parseCommentJson, n as syncProjectSupportFiles, o as formatBytes, p as loadViteConfigFile, r as syncManagedTsconfigBootstrapFiles, s as createSharedBuildConfig, t as createCompilerContext, u as resolveWeappConfigFile, v as normalizeMiniPlatform, x as isPathInside, y as resolveMiniPlatform } from "./createContext-D0UJheyD.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-gutcwWKE.mjs";
3
- import { p as VERSION } from "./file-DRs69M1m.mjs";
3
+ import { p as VERSION } from "./file-Bf2vfymR.mjs";
4
4
  import { resolveWeappMcpConfig, startWeappViteMcpServer } from "./mcp.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import { defu } from "@weapp-core/shared";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-twds-ZHy.mjs";
2
2
  import { n as applyWeappViteHostMeta } from "./pluginHost-SJdl15d3.mjs";
3
3
  import { n as configureLogger, r as logger_default } from "./logger-gutcwWKE.mjs";
4
- import { _ as templateExtensions, a as findJsEntry, c as findVueEntry, d as isTemplate, f as touch, g as supportedCssLangs, h as jsExtensions, i as findCssEntry, l as inlineAutoRoutesImports, m as configExtensions, n as extractConfigFromVue, o as findJsonEntry, s as findTemplateEntry, t as changeFileExtension, u as isJsOrTs, v as vueExtensions } from "./file-DRs69M1m.mjs";
4
+ import { _ as templateExtensions, a as findJsEntry, c as findVueEntry, d as isTemplate, f as touch, g as supportedCssLangs, h as jsExtensions, i as findCssEntry, l as inlineAutoRoutesImports, m as configExtensions, n as extractConfigFromVue, o as findJsonEntry, s as findTemplateEntry, t as changeFileExtension, u as isJsOrTs, v as vueExtensions } from "./file-Bf2vfymR.mjs";
5
5
  import { createRequire, isBuiltin } from "node:module";
6
6
  import { addExtension, defu, get, isEmptyObject, isObject, objectHash, removeExtension, removeExtensionDeep, set } from "@weapp-core/shared";
7
7
  import { LRUCache } from "lru-cache";
@@ -11601,6 +11601,8 @@ function createEntryLoader(options) {
11601
11601
  cache: appEntriesCache
11602
11602
  });
11603
11603
  entries.push(...appResult.entries);
11604
+ if (get(json, "tabBar.custom")) explicitEntryTypes.set(normalizeEntry("custom-tab-bar/index", jsonPath), "component");
11605
+ if (get(json, "appBar")) explicitEntryTypes.set(normalizeEntry("app-bar/index", jsonPath), "component");
11604
11606
  pluginResolvedRecords = appResult.pluginResolvedRecords;
11605
11607
  if (appResult.pluginEntryTypes?.length) for (const entryType of appResult.pluginEntryTypes) entriesMap.set(entryType.entry, {
11606
11608
  type: entryType.type,
@@ -18977,7 +18979,7 @@ function createScanService(ctx) {
18977
18979
  let vueAppPath;
18978
18980
  if (!appEntryPath) vueAppPath = await findVueEntry(appBasename);
18979
18981
  if (!appConfigFile && vueAppPath) {
18980
- const { extractConfigFromVue } = await import("./file-DRs69M1m.mjs").then((n) => n.r);
18982
+ const { extractConfigFromVue } = await import("./file-Bf2vfymR.mjs").then((n) => n.r);
18981
18983
  configFromVue = await extractConfigFromVue(vueAppPath);
18982
18984
  if (configFromVue) appConfigFile = vueAppPath;
18983
18985
  }
@@ -81,7 +81,7 @@ function resolveAutoRoutesMacroImportPath() {
81
81
  }
82
82
  async function resolveAutoRoutesInlineSnapshot() {
83
83
  try {
84
- const { getCompilerContext } = await import("./createContext-f0OMYoia.mjs").then((n) => n.a);
84
+ const { getCompilerContext } = await import("./createContext-D0UJheyD.mjs").then((n) => n.a);
85
85
  const compilerContext = getCompilerContext();
86
86
  const service = compilerContext.autoRoutesService;
87
87
  const reference = service?.getReference?.();
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineAppJson, defineComponentJson, definePageJson, defineSitemapJson, defineThemeJson } from "./json.mjs";
2
2
  import { a as resolveWeappViteHostMeta, i as isWeappViteHost, n as applyWeappViteHostMeta, r as createWeappViteHostMeta, t as WEAPP_VITE_HOST_NAME } from "./pluginHost-SJdl15d3.mjs";
3
3
  import { defineConfig } from "./config.mjs";
4
- import { t as createCompilerContext } from "./createContext-f0OMYoia.mjs";
4
+ import { t as createCompilerContext } from "./createContext-D0UJheyD.mjs";
5
5
  import { defineEmits, defineProps } from "./runtime.mjs";
6
6
  import { createWevuComponent, setPageLayout } from "wevu";
7
7
  export { WEAPP_VITE_HOST_NAME, applyWeappViteHostMeta, createCompilerContext, createWeappViteHostMeta, createWevuComponent, defineAppJson, defineComponentJson, defineConfig, defineEmits, definePageJson, defineProps, defineSitemapJson, defineThemeJson, isWeappViteHost, resolveWeappViteHostMeta, setPageLayout };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "6.12.3",
4
+ "version": "6.12.4",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -117,7 +117,7 @@
117
117
  "@weapp-core/logger": "3.1.1",
118
118
  "@weapp-core/schematics": "6.0.4",
119
119
  "@weapp-core/shared": "3.0.2",
120
- "@weapp-vite/ast": "6.12.3",
120
+ "@weapp-vite/ast": "6.12.4",
121
121
  "@weapp-vite/mcp": "1.1.1",
122
122
  "@weapp-vite/volar": "2.0.8",
123
123
  "@weapp-vite/web": "1.3.10",
@@ -125,7 +125,7 @@
125
125
  "rolldown-require": "2.0.12",
126
126
  "vite-plugin-performance": "2.0.1",
127
127
  "weapp-ide-cli": "5.1.4",
128
- "wevu": "6.12.3"
128
+ "wevu": "6.12.4"
129
129
  },
130
130
  "publishConfig": {
131
131
  "access": "public",