weapp-vite 6.23.0 → 6.24.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
- <a href="https://vite.icebreaker.top">
3
- <img width="200" height="200" hspace="10" src="https://vite.icebreaker.top/logo.png" alt="vite logo" />
2
+ <a href="https://vite.weapp.dev">
3
+ <img width="200" height="200" hspace="10" src="https://vite.weapp.dev/logo.png" alt="vite logo" />
4
4
  </a>
5
5
  <h1>Weapp Vite</h1>
6
6
  <p>
@@ -14,7 +14,7 @@
14
14
 
15
15
  <p>&nbsp;</p>
16
16
 
17
- ## 使用文档地址: [vite.icebreaker.top](https://vite.icebreaker.top)
17
+ ## 使用文档地址: [vite.weapp.dev](https://vite.weapp.dev)
18
18
 
19
19
  ## Features
20
20
 
@@ -61,7 +61,7 @@ wv dev -p web --host
61
61
  wv build -p web
62
62
  ```
63
63
 
64
- `web` 是浏览器 runtime 的规范平台名,`h5` 仅作为向后兼容别名保留;未选择 Web 平台时不改变现有小程序构建。完整配置和兼容边界见 [Web 运行时配置](https://vite.icebreaker.top/config/web) 与 [`@weapp-vite/web`](https://vite.icebreaker.top/packages/web)。
64
+ `web` 是浏览器 runtime 的规范平台名,`h5` 仅作为向后兼容别名保留;未选择 Web 平台时不改变现有小程序构建。完整配置和兼容边界见 [Web 运行时配置](https://vite.weapp.dev/config/web) 与 [`@weapp-vite/web`](https://vite.weapp.dev/packages/web)。
65
65
 
66
66
  ### Vue 项目
67
67
 
@@ -140,11 +140,11 @@ export default defineConfig({
140
140
 
141
141
  默认扫描 `src/**/i18n/*.json`。Native Component 和使用 Component 构造的 Page 通过 `behaviors: [i18n.behavior]` 接入;传统 `Page({...})` 使用 `i18n.page(options)` 适配生命周期。Vue/Wevu 使用 `defineOptions({ behaviors: [i18n.behavior] })`。模板中的 `t('key', params)` 会在构建时改写为 WXS 调用;逻辑层从 `weapp-vite/i18n` 导入构建实例,并通过 `i18n.global` 访问翻译和 locale。
142
142
 
143
- 底层运行时与 catalog 编译器由独立包 `@weapp-vite/i18n` 提供,也可以在完全不使用 Vite 的原生微信小程序中安装。v1 只支持 `{name}` / `{user.name}` 占位符,不自动持久化语言,也不包含 ICU、复数和日期/数字格式化。完整配置见 [i18n 配置](https://vite.icebreaker.top/config/i18n)。
143
+ 底层运行时与 catalog 编译器由独立包 `@weapp-vite/i18n` 提供,也可以在完全不使用 Vite 的原生微信小程序中安装。v1 只支持 `{name}` / `{user.name}` 占位符,不自动持久化语言,也不包含 ICU、复数和日期/数字格式化。完整配置见 [i18n 配置](https://vite.weapp.dev/config/i18n)。
144
144
 
145
145
  - 配置智能提示文档:[docs/volar.md](./docs/volar.md)
146
146
  - defineConfig 重载说明:[docs/define-config-overloads.md](./docs/define-config-overloads.md)
147
- - Vite 插件识别 weapp-vite 宿主:https://vite.icebreaker.top/guide/vite-plugin-host
147
+ - Vite 插件识别 weapp-vite 宿主:https://vite.weapp.dev/guide/vite-plugin-host
148
148
  - MCP 集成使用指南:[docs/mcp.md](./docs/mcp.md)
149
149
  - Wot UI 与 uni-app 组件库:[docs/packaged/uni-app-component-libraries.md](./docs/packaged/uni-app-component-libraries.md)
150
150
 
@@ -1,4 +1,4 @@
1
- import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-RnHhe84f.mjs";
1
+ import { n as getCompilerContext, y as getRouteRuntimeGlobalKeys } from "./createContext-DddiW1j3.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 { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as parseCommentJson, 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 createCjsConfigLoadError, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-RnHhe84f.mjs";
1
+ import { A as getDefaultIdeProjectRoot, C as collectPreloadPages, D as loadViteConfigFile, E as suggestPreloadRules, M as isPathInside, O as parseCommentJson, 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 createCjsConfigLoadError, m as syncProjectSupportFiles, o as formatBytes, p as resolveBackendExecution, t as createCompilerContext, v as resolveHmrProfileJsonPath, w as findPreloadRuleKey, x as checkRuntime } from "./createContext-DddiW1j3.mjs";
2
2
  import { r as logger_default, t as colors } from "./logger-mt4mSTqV.mjs";
3
- import { h as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-Cr034LIZ.mjs";
3
+ import { h as VERSION, i as findJsEntry, o as findTemplateEntry, s as findVueEntry } from "./file-CaKJV6Km.mjs";
4
4
  import { c as startWeappViteMcpServer, l as detectAiDevelopmentEnvironment, s as resolveWeappMcpConfig } from "./mcp-BG6TliEg.mjs";
5
5
  import { createRequire } from "node:module";
6
6
  import fs from "node:fs";
@@ -5044,7 +5044,7 @@ function resolveRunnableHotkeyDefinition(input) {
5044
5044
  }
5045
5045
  //#endregion
5046
5046
  //#region package.json
5047
- var version = "6.23.0";
5047
+ var version = "6.24.0";
5048
5048
  //#endregion
5049
5049
  //#region src/cli/devHotkeys/format.ts
5050
5050
  const FULLWIDTH_ASCII_START = 65281;
@@ -1,6 +1,6 @@
1
1
  import { n as applyWeappViteHostMeta } from "./pluginHost--CaeyWpA.mjs";
2
2
  import { n as configureLogger, r as logger_default } from "./logger-mt4mSTqV.mjs";
3
- import { C as isNativeTemplateSource, S as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS, T as MINI_PROGRAM_PLATFORM_ADAPTERS, _ as jsExtensions, a as findJsonEntry, b as templateExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as scriptExtensions, w as isSourceStyleExtension, x as vueExtensions, y as supportedCssLangs } from "./file-Cr034LIZ.mjs";
3
+ import { C as isNativeTemplateSource, S as ALL_NATIVE_STYLE_RESOLVER_EXTENSIONS, T as MINI_PROGRAM_PLATFORM_ADAPTERS, _ as jsExtensions, a as findJsonEntry, b as templateExtensions, c as isJsOrTs, d as touch, g as configExtensions, i as findJsEntry, l as isTemplate, n as changeFileExtension, o as findTemplateEntry, p as inlineAutoRoutesImports, r as findCssEntry, s as findVueEntry, t as extractConfigFromVue, v as scriptExtensions, w as isSourceStyleExtension, x as vueExtensions, y as supportedCssLangs } from "./file-CaKJV6Km.mjs";
4
4
  import { createRequire, isBuiltin } from "node:module";
5
5
  import { createDebug } from "obug";
6
6
  import fs, { existsSync, readFileSync, realpathSync } from "node:fs";
@@ -1911,7 +1911,7 @@ function createHtmlCustomDataDefinition(componentNames, getMetadata, baseTags =
1911
1911
  if (attributes.length) tag.attributes = attributes;
1912
1912
  tag.references = [{
1913
1913
  name: "weapp-vite 自动导入组件",
1914
- url: "https://vite.icebreaker.top/guide/auto-import-components.html"
1914
+ url: "https://vite.weapp.dev/guide/auto-import-components.html"
1915
1915
  }];
1916
1916
  return tag;
1917
1917
  }))
@@ -18450,6 +18450,17 @@ function transformTemplateForAlipay(source) {
18450
18450
  return rewriteAlipayReferenceExtensions(normalizeImportSjsAttributes(rewriteTemplateImportExtensionsForAlipay(rewriteAlipayTemplateSyntax(source))));
18451
18451
  }
18452
18452
  //#endregion
18453
+ //#region src/runtime/npmPlugin/builder/jsModule/helpers.ts
18454
+ const ESM_SYNTAX_RE$1 = /\bimport(?=[\s{'"*])|\bexport(?=[\s{*])/;
18455
+ function hasEsmSyntax(source) {
18456
+ return ESM_SYNTAX_RE$1.test(source);
18457
+ }
18458
+ function createExportAllStatements(source, scope) {
18459
+ const requireId = scope.generateUidIdentifier("reExported");
18460
+ const exportKeyId = scope.generateUidIdentifier("exportKey");
18461
+ return [t.variableDeclaration("const", [t.variableDeclarator(requireId, t.callExpression(t.identifier("require"), [source]))]), t.expressionStatement(t.callExpression(t.memberExpression(t.callExpression(t.memberExpression(t.identifier("Object"), t.identifier("keys")), [requireId]), t.identifier("forEach")), [t.arrowFunctionExpression([exportKeyId], t.blockStatement([t.ifStatement(t.logicalExpression("||", t.binaryExpression("===", exportKeyId, t.stringLiteral("default")), t.binaryExpression("===", exportKeyId, t.stringLiteral("__esModule"))), t.returnStatement()), t.expressionStatement(t.assignmentExpression("=", t.memberExpression(t.identifier("exports"), exportKeyId, true), t.memberExpression(requireId, exportKeyId, true)))]))]))];
18462
+ }
18463
+ //#endregion
18453
18464
  //#region src/runtime/npmPlugin/builder/shared.ts
18454
18465
  async function collectFiles(root) {
18455
18466
  const files = [];
@@ -18498,10 +18509,6 @@ async function resolvePreferredPackageEntry(rootPath, pkg) {
18498
18509
  }
18499
18510
  //#endregion
18500
18511
  //#region src/runtime/npmPlugin/builder/jsModule.ts
18501
- const ESM_SYNTAX_RE$1 = /\bimport\s|\bexport\s/;
18502
- function hasEsmSyntax(source) {
18503
- return ESM_SYNTAX_RE$1.test(source);
18504
- }
18505
18512
  function createExportsMember(name) {
18506
18513
  return t.memberExpression(t.identifier("exports"), t.isValidIdentifier(name) ? t.identifier(name) : t.stringLiteral(name), !t.isValidIdentifier(name));
18507
18514
  }
@@ -18615,6 +18622,11 @@ async function transformJsModuleToCjs(source, options) {
18615
18622
  }
18616
18623
  path.replaceWithMultiple(statements);
18617
18624
  transformed = true;
18625
+ },
18626
+ ExportAllDeclaration(path) {
18627
+ hasConvertedExport = true;
18628
+ path.replaceWithMultiple(createExportAllStatements(t.stringLiteral(path.node.source.value), path.scope));
18629
+ transformed = true;
18618
18630
  }
18619
18631
  });
18620
18632
  if (exportAssignments.length > 0) {
@@ -34738,7 +34750,7 @@ async function loadAppEntry(ctx, scanState) {
34738
34750
  const { path: appEntryPath } = appEntry;
34739
34751
  let configFromVue;
34740
34752
  if (!appConfigFile && vueAppPath) {
34741
- const { extractConfigFromVue } = await import("./file-DWR7zIBT.mjs");
34753
+ const { extractConfigFromVue } = await import("./file-QyWJOwaH.mjs");
34742
34754
  configFromVue = await extractConfigFromVue(vueAppPath);
34743
34755
  if (configFromVue) appConfigFile = vueAppPath;
34744
34756
  }
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
- <a href="https://vite.icebreaker.top">
3
- <img width="200" height="200" hspace="10" src="https://vite.icebreaker.top/logo.png" alt="vite logo" />
2
+ <a href="https://vite.weapp.dev">
3
+ <img width="200" height="200" hspace="10" src="https://vite.weapp.dev/logo.png" alt="vite logo" />
4
4
  </a>
5
5
  <h1>Weapp Vite</h1>
6
6
  <p>
@@ -14,7 +14,7 @@
14
14
 
15
15
  <p>&nbsp;</p>
16
16
 
17
- ## 使用文档地址: [vite.icebreaker.top](https://vite.icebreaker.top)
17
+ ## 使用文档地址: [vite.weapp.dev](https://vite.weapp.dev)
18
18
 
19
19
  ## Features
20
20
 
@@ -61,7 +61,7 @@ wv dev -p web --host
61
61
  wv build -p web
62
62
  ```
63
63
 
64
- `web` 是浏览器 runtime 的规范平台名,`h5` 仅作为向后兼容别名保留;未选择 Web 平台时不改变现有小程序构建。完整配置和兼容边界见 [Web 运行时配置](https://vite.icebreaker.top/config/web) 与 [`@weapp-vite/web`](https://vite.icebreaker.top/packages/web)。
64
+ `web` 是浏览器 runtime 的规范平台名,`h5` 仅作为向后兼容别名保留;未选择 Web 平台时不改变现有小程序构建。完整配置和兼容边界见 [Web 运行时配置](https://vite.weapp.dev/config/web) 与 [`@weapp-vite/web`](https://vite.weapp.dev/packages/web)。
65
65
 
66
66
  ### Vue 项目
67
67
 
@@ -140,11 +140,11 @@ export default defineConfig({
140
140
 
141
141
  默认扫描 `src/**/i18n/*.json`。Native Component 和使用 Component 构造的 Page 通过 `behaviors: [i18n.behavior]` 接入;传统 `Page({...})` 使用 `i18n.page(options)` 适配生命周期。Vue/Wevu 使用 `defineOptions({ behaviors: [i18n.behavior] })`。模板中的 `t('key', params)` 会在构建时改写为 WXS 调用;逻辑层从 `weapp-vite/i18n` 导入构建实例,并通过 `i18n.global` 访问翻译和 locale。
142
142
 
143
- 底层运行时与 catalog 编译器由独立包 `@weapp-vite/i18n` 提供,也可以在完全不使用 Vite 的原生微信小程序中安装。v1 只支持 `{name}` / `{user.name}` 占位符,不自动持久化语言,也不包含 ICU、复数和日期/数字格式化。完整配置见 [i18n 配置](https://vite.icebreaker.top/config/i18n)。
143
+ 底层运行时与 catalog 编译器由独立包 `@weapp-vite/i18n` 提供,也可以在完全不使用 Vite 的原生微信小程序中安装。v1 只支持 `{name}` / `{user.name}` 占位符,不自动持久化语言,也不包含 ICU、复数和日期/数字格式化。完整配置见 [i18n 配置](https://vite.weapp.dev/config/i18n)。
144
144
 
145
145
  - 配置智能提示文档:[docs/volar.md](./docs/volar.md)
146
146
  - defineConfig 重载说明:[docs/define-config-overloads.md](./docs/define-config-overloads.md)
147
- - Vite 插件识别 weapp-vite 宿主:https://vite.icebreaker.top/guide/vite-plugin-host
147
+ - Vite 插件识别 weapp-vite 宿主:https://vite.weapp.dev/guide/vite-plugin-host
148
148
  - MCP 集成使用指南:[docs/mcp.md](./docs/mcp.md)
149
149
  - Wot UI 与 uni-app 组件库:[docs/packaged/uni-app-component-libraries.md](./docs/packaged/uni-app-component-libraries.md)
150
150
 
package/dist/docs/i18n.md CHANGED
@@ -39,6 +39,6 @@ Vue/Wevu 组件使用 `defineOptions({ behaviors: [i18n.behavior] })`。模板
39
39
 
40
40
  ## 不使用 weapp-vite
41
41
 
42
- 原生微信小程序可以直接安装 `@weapp-vite/i18n`,运行 `weapp-i18n compile` 生成 `i18n/locales.js` 与 `i18n/locales.wxs`,再通过 `createI18n({ locale, fallbackLocale, messages })` 创建应用内实例。独立包同时提供 CommonJS、ESM、类型、`miniprogram` 入口和 `@weapp-vite/i18n/compiler`;完整示例见 [@weapp-vite/i18n](https://vite.icebreaker.top/packages/i18n)。
42
+ 原生微信小程序可以直接安装 `@weapp-vite/i18n`,运行 `weapp-i18n compile` 生成 `i18n/locales.js` 与 `i18n/locales.wxs`,再通过 `createI18n({ locale, fallbackLocale, messages })` 创建应用内实例。独立包同时提供 CommonJS、ESM、类型、`miniprogram` 入口和 `@weapp-vite/i18n/compiler`;完整示例见 [@weapp-vite/i18n](https://vite.weapp.dev/packages/i18n)。
43
43
 
44
44
  v1 只编译 `{name}` 与 `{user.name}` 占位符,不支持 ICU/MessageFormat、复数、select、日期或数字格式化。当前只支持微信平台。
package/dist/docs/mcp.md CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  `weapp-vite` 现在内置了对 `weapp-vite/mcp` 的集成,支持直接通过 `weapp-vite mcp` 启动 MCP Server(`stdio` 传输)。
6
6
 
7
+ 当前服务端已升级到 MCP TypeScript SDK v2。`stdio` 通过 `serveStdio`、HTTP 通过
8
+ `createMcpHandler` 显式协商 `2026-07-28` 协议版本,同时保留对 2025-era 客户端的兼容。
9
+
7
10
  如果你是在其他仓库里通过 npm 依赖使用 `weapp-vite`,建议先让 AI 读取本地随包文档目录:
8
11
 
9
12
  - `node_modules/weapp-vite/dist/docs/index.md`
@@ -152,6 +155,7 @@ weapp-vite mcp --transport streamable-http --host 127.0.0.1 --port 3088 --endpoi
152
155
  1. 不传 `--workspace-root` 时,会从当前目录向上自动定位 `pnpm-workspace.yaml`。
153
156
  2. `--transport stdio` 通过标准输入输出通信,不会启动 HTTP 端口。
154
157
  3. `--transport streamable-http` 会启动本地 HTTP 服务,可供支持 URL 连接的 MCP Client 使用。
158
+ 4. HTTP 模式默认校验 `Host` 与 `Origin`,用于阻止本地服务的 DNS rebinding;推荐保持监听在 `127.0.0.1`。
155
159
 
156
160
  ### 3.2 程序化启动
157
161
 
@@ -237,6 +241,7 @@ await handle.close?.()
237
241
  21. `weapp_runtime_component_state` / `weapp_runtime_update_component_state` / `weapp_runtime_invoke_component`
238
242
  22. `weapp_runtime_find_child` / `weapp_runtime_find_children`
239
243
  23. `weapp_runtime_node_markup` / `weapp_runtime_node_styles` / `weapp_runtime_node_attrs` / `weapp_runtime_scroll_node` / `weapp_runtime_measure_node`
244
+ 24. `weapp_runtime_find_node_by_xpath` / `weapp_runtime_find_nodes_by_xpath`
240
245
 
241
246
  建议使用顺序:
242
247
 
@@ -276,6 +281,7 @@ MCP 服务端做了以下约束:
276
281
  1. 文件访问限制在工作区根目录内,阻止路径越界。
277
282
  2. 命令执行限制在白名单:`pnpm/node/git/rg`。
278
283
  3. 命令与文件读取有输出截断与超时控制,避免上下文爆炸。
284
+ 4. HTTP 入口校验本地主机 `Host` 与 `Origin`,阻止浏览器跨站访问和 DNS rebinding。
279
285
 
280
286
  建议在 CI 或团队环境中继续加上外层沙箱策略(容器、只读挂载、命令审计)。
281
287
 
@@ -77,7 +77,7 @@ weapp-vite 集成了 Volar 插件,为 `<json>` 代码块提供完整的智能
77
77
  ```vue
78
78
  <json>
79
79
  {
80
- "$schema": "https://vite.icebreaker.top/app.json",
80
+ "$schema": "https://vite.weapp.dev/app.json",
81
81
  "pages": [
82
82
  "pages/index/index"
83
83
  ],
@@ -97,7 +97,7 @@ weapp-vite 集成了 Volar 插件,为 `<json>` 代码块提供完整的智能
97
97
  ```vue
98
98
  <json lang="jsonc">
99
99
  {
100
- "$schema": "https://vite.icebreaker.top/app.json",
100
+ "$schema": "https://vite.weapp.dev/app.json",
101
101
  // 这是注释!jsonc 支持注释
102
102
  "pages": ["pages/index/index"],
103
103
  "window": {
@@ -187,9 +187,9 @@ export default async () => {
187
187
 
188
188
  | 文件路径 | 配置类型 | Schema URL |
189
189
  | --------------------- | --------- | -------------------------------------------- |
190
- | `app.vue` | App | `https://vite.icebreaker.top/app.json` |
191
- | `pages/**/*.vue` | Page | `https://vite.icebreaker.top/page.json` |
192
- | `components/**/*.vue` | Component | `https://vite.icebreaker.top/component.json` |
190
+ | `app.vue` | App | `https://vite.weapp.dev/app.json` |
191
+ | `pages/**/*.vue` | Page | `https://vite.weapp.dev/page.json` |
192
+ | `components/**/*.vue` | Component | `https://vite.weapp.dev/component.json` |
193
193
 
194
194
  ## 📊 配置语言模式对比
195
195
 
@@ -219,7 +219,7 @@ createApp({
219
219
 
220
220
  <json lang="jsonc">
221
221
  {
222
- "$schema": "https://vite.icebreaker.top/app.json",
222
+ "$schema": "https://vite.weapp.dev/app.json",
223
223
  // 页面路径列表
224
224
  "pages": [
225
225
  "pages/index/index",
@@ -256,7 +256,7 @@ createApp({
256
256
  ```vue
257
257
  <json lang="jsonc">
258
258
  {
259
- "$schema": "https://vite.icebreaker.top/page.json",
259
+ "$schema": "https://vite.weapp.dev/page.json",
260
260
  // 页面导航栏标题
261
261
  "navigationBarTitleText": "首页",
262
262
  // 导航栏背景色
@@ -274,7 +274,7 @@ createApp({
274
274
  ```vue
275
275
  <json>
276
276
  {
277
- "$schema": "https://vite.icebreaker.top/component.json",
277
+ "$schema": "https://vite.weapp.dev/component.json",
278
278
  "component": true,
279
279
  "usingComponents": {}
280
280
  }
@@ -134,7 +134,7 @@ function resolveAutoRoutesMacroImportPath() {
134
134
  }
135
135
  async function resolveAutoRoutesInlineSnapshot() {
136
136
  try {
137
- const { getCompilerContext } = await import("./getInstance-BjUP-8qc.mjs");
137
+ const { getCompilerContext } = await import("./getInstance-BXs7VCNS.mjs");
138
138
  const compilerContext = getCompilerContext();
139
139
  const service = compilerContext.autoRoutesService;
140
140
  const reference = service?.getReference?.();
@@ -0,0 +1,2 @@
1
+ import { t as extractConfigFromVue } from "./file-CaKJV6Km.mjs";
2
+ export { extractConfigFromVue };
@@ -0,0 +1,2 @@
1
+ import { n as getCompilerContext } from "./createContext-DddiW1j3.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-RnHhe84f.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-DddiW1j3.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-RnHhe84f.mjs";
1
+ import { t as createCompilerContext } from "./createContext-DddiW1j3.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,11 +1,11 @@
1
1
  {
2
2
  "name": "weapp-vite",
3
3
  "type": "module",
4
- "version": "6.23.0",
4
+ "version": "6.24.0",
5
5
  "description": "weapp-vite 一个现代化的小程序打包工具",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
8
- "homepage": "https://vite.icebreaker.top/",
8
+ "homepage": "https://vite.weapp.dev/",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/weapp-vite/weapp-vite.git",
@@ -127,7 +127,7 @@
127
127
  "htmlparser2": "^12.0.0",
128
128
  "local-pkg": "^1.2.1",
129
129
  "lru-cache": "^11.5.2",
130
- "magic-string": "^1.2.2",
130
+ "magic-string": "^1.2.3",
131
131
  "merge": "^2.1.1",
132
132
  "obug": "^2.1.4",
133
133
  "p-queue": "^9.3.3",
@@ -135,32 +135,32 @@
135
135
  "pathe": "^2.0.3",
136
136
  "picomatch": "^4.0.7",
137
137
  "postcss": "^8.5.26",
138
- "rolldown": "1.2.5",
138
+ "rolldown": "1.2.6",
139
139
  "rolldown-plugin-dts": "0.28.2",
140
140
  "semver": "^7.8.5",
141
141
  "typescript": "^6.0.3",
142
142
  "vite": "8.2.2",
143
143
  "vite-tsconfig-paths": "^6.1.1",
144
- "vue": "^3.5.41",
144
+ "vue": "^3.5.42",
145
145
  "vue-tsc": "^3.3.11",
146
146
  "@weapp-core/constants": "0.2.0",
147
- "@weapp-core/init": "6.0.15",
148
147
  "@weapp-core/logger": "3.1.1",
149
- "@weapp-core/schematics": "6.2.0",
150
148
  "@weapp-core/shared": "3.2.0",
151
- "@weapp-vite/eslint": "0.2.1",
152
- "@weapp-vite/ast": "6.23.0",
153
- "@weapp-vite/mcp": "1.4.16",
154
- "@wevu/api": "0.2.17",
155
- "@weapp-vite/miniprogram-automator": "1.2.15",
156
- "@wevu/web-apis": "1.2.36",
157
- "@weapp-vite/web": "1.4.13",
158
- "rolldown-require": "2.0.26",
149
+ "@weapp-core/schematics": "6.2.1",
150
+ "@weapp-vite/ast": "6.24.0",
151
+ "@weapp-vite/eslint": "0.2.2",
152
+ "@weapp-core/init": "6.0.16",
153
+ "@weapp-vite/mcp": "1.5.0",
154
+ "@weapp-vite/web": "1.4.14",
155
+ "@weapp-vite/miniprogram-automator": "1.2.16",
156
+ "@wevu/api": "0.2.18",
157
+ "@wevu/web-apis": "1.2.37",
158
+ "rolldown-require": "2.0.27",
159
159
  "vite-plugin-performance": "2.0.1",
160
- "weapp-ide-cli": "6.0.8",
161
- "@weapp-vite/volar": "2.1.4",
162
- "@weapp-vite/i18n": "0.2.0",
163
- "wevu": "6.23.0"
160
+ "weapp-ide-cli": "6.1.0",
161
+ "@weapp-vite/volar": "2.1.5",
162
+ "wevu": "6.24.0",
163
+ "@weapp-vite/i18n": "0.2.0"
164
164
  },
165
165
  "optionalDependencies": {
166
166
  "@swc/core": "^1.16.1"
@@ -1,2 +0,0 @@
1
- import { t as extractConfigFromVue } from "./file-Cr034LIZ.mjs";
2
- export { extractConfigFromVue };
@@ -1,2 +0,0 @@
1
- import { n as getCompilerContext } from "./createContext-RnHhe84f.mjs";
2
- export { getCompilerContext };