weapp-vite 6.12.1 → 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.
@@ -18,6 +18,7 @@ var tdesign_default = [
18
18
  "collapse",
19
19
  "collapse-panel",
20
20
  "color-picker",
21
+ "config-provider",
21
22
  "count-down",
22
23
  "date-time-picker",
23
24
  "dialog",
@@ -1,4 +1,4 @@
1
- import { i as getCompilerContext, l as getRouteRuntimeGlobalKeys } from "./createContext-Dk8fZ9cf.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-Dk8fZ9cf.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-B84hUHlz.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";
@@ -1289,7 +1289,7 @@ async function loadConfig(configFile) {
1289
1289
  };
1290
1290
  let loaded;
1291
1291
  try {
1292
- loaded = await loadViteConfigFile(configEnv, resolvedConfigFile, cwd, void 0, void 0, "bundle");
1292
+ loaded = await loadViteConfigFile(configEnv, resolvedConfigFile, cwd, void 0, void 0, "runner");
1293
1293
  } catch (error) {
1294
1294
  const cjsError = createCjsConfigLoadError({
1295
1295
  error,
@@ -1309,7 +1309,7 @@ async function loadConfig(configFile) {
1309
1309
  const normalizedLoadedPath = loaded?.path ? path.resolve(loaded.path) : void 0;
1310
1310
  if (normalizedLoadedPath && normalizedLoadedPath === normalizedWeappPath) weappLoaded = loaded;
1311
1311
  else try {
1312
- weappLoaded = await loadViteConfigFile(configEnv, weappConfigFilePath, cwd, void 0, void 0, "bundle");
1312
+ weappLoaded = await loadViteConfigFile(configEnv, weappConfigFilePath, cwd, void 0, void 0, "runner");
1313
1313
  } catch (error) {
1314
1314
  const cjsError = createCjsConfigLoadError({
1315
1315
  error,
@@ -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-B84hUHlz.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";
@@ -225,7 +225,9 @@ function createEnabledAutoImportComponents(configService) {
225
225
  return {
226
226
  ...defaults,
227
227
  globs: [...globs],
228
+ output: true,
228
229
  typedComponents: true,
230
+ htmlCustomData: true,
229
231
  vueComponents: true,
230
232
  vueComponentsModule: hasWevuDependency$1(configService) ? "wevu" : void 0
231
233
  };
@@ -11599,6 +11601,8 @@ function createEntryLoader(options) {
11599
11601
  cache: appEntriesCache
11600
11602
  });
11601
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");
11602
11606
  pluginResolvedRecords = appResult.pluginResolvedRecords;
11603
11607
  if (appResult.pluginEntryTypes?.length) for (const entryType of appResult.pluginEntryTypes) entriesMap.set(entryType.entry, {
11604
11608
  type: entryType.type,
@@ -18975,7 +18979,7 @@ function createScanService(ctx) {
18975
18979
  let vueAppPath;
18976
18980
  if (!appEntryPath) vueAppPath = await findVueEntry(appBasename);
18977
18981
  if (!appConfigFile && vueAppPath) {
18978
- const { extractConfigFromVue } = await import("./file-B84hUHlz.mjs").then((n) => n.r);
18982
+ const { extractConfigFromVue } = await import("./file-Bf2vfymR.mjs").then((n) => n.r);
18979
18983
  configFromVue = await extractConfigFromVue(vueAppPath);
18980
18984
  if (configFromVue) appConfigFile = vueAppPath;
18981
18985
  }
@@ -81,7 +81,7 @@ function resolveAutoRoutesMacroImportPath() {
81
81
  }
82
82
  async function resolveAutoRoutesInlineSnapshot() {
83
83
  try {
84
- const { getCompilerContext } = await import("./createContext-Dk8fZ9cf.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-Dk8fZ9cf.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.1",
4
+ "version": "6.12.4",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -117,15 +117,15 @@
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.1",
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",
124
124
  "@wevu/api": "0.2.2",
125
125
  "rolldown-require": "2.0.12",
126
126
  "vite-plugin-performance": "2.0.1",
127
- "weapp-ide-cli": "5.1.3",
128
- "wevu": "6.12.1"
127
+ "weapp-ide-cli": "5.1.4",
128
+ "wevu": "6.12.4"
129
129
  },
130
130
  "publishConfig": {
131
131
  "access": "public",