weapp-vite 6.7.4 → 6.7.6
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 +1 -0
- package/dist/auto-import-components/resolvers.mjs +1 -1
- package/dist/auto-routes.mjs +7 -6
- package/dist/{chunk-3ULSPLMB.mjs → chunk-6AH5XOPG.mjs} +2 -2
- package/dist/{chunk-ASAY7IOT.mjs → chunk-6YAZCQOZ.mjs} +2 -2
- package/dist/chunk-BGBLJUWD.mjs +41 -0
- package/dist/{chunk-SE5GHZVY.mjs → chunk-KV5GZOAZ.mjs} +1 -1
- package/dist/{chunk-7ZOXQLE2.mjs → chunk-O2IN5LBB.mjs} +1 -1
- package/dist/{chunk-BQM4WPKJ.mjs → chunk-QD76G22N.mjs} +2 -2
- package/dist/{chunk-72Q2Z45L.mjs → chunk-W3UG2WZQ.mjs} +1 -1
- package/dist/{chunk-VZEM2LX3.mjs → chunk-XIEFUUA5.mjs} +1 -1
- package/dist/{chunk-MXJF2FFF.mjs → chunk-XQYQD5CM.mjs} +1 -1
- package/dist/{chunk-ZVP3HDW7.mjs → chunk-XSPLO6IT.mjs} +2 -2
- package/dist/{chunk-MKXI5POD.mjs → chunk-ZHLTHMZA.mjs} +1065 -691
- package/dist/cli.mjs +275 -243
- package/dist/{config-DMCmCacG.d.ts → config-BngmcXkt.d.ts} +54 -2
- package/dist/config.d.ts +1 -1
- package/dist/config.mjs +16 -4
- package/dist/{file-IRTTGBIN.mjs → file-OMYHHYLC.mjs} +2 -2
- package/dist/{getInstance-NUZWXHEY.mjs → getInstance-W5DSUGSZ.mjs} +5 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +22 -10
- package/dist/json.d.ts +1 -1
- package/dist/json.mjs +2 -2
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.mjs +3 -3
- package/dist/runtime.mjs +2 -2
- package/dist/types.d.ts +1 -1
- package/dist/types.mjs +2 -2
- package/dist/volar.mjs +1 -1
- package/modules/analyze-dashboard/assets/vue.js +1 -1
- package/package.json +11 -10
package/README.md
CHANGED
|
@@ -82,6 +82,7 @@ function handleClick() {
|
|
|
82
82
|
|
|
83
83
|
- 配置智能提示文档:[docs/volar.md](./docs/volar.md)
|
|
84
84
|
- defineConfig 重载说明:[docs/define-config-overloads.md](./docs/define-config-overloads.md)
|
|
85
|
+
- Vite 插件识别 weapp-vite 宿主:https://vite.icebreaker.top/guide/vite-plugin-host
|
|
85
86
|
- MCP 集成使用指南:[docs/mcp.md](./docs/mcp.md)
|
|
86
87
|
|
|
87
88
|
## CLI 中调用 weapp-ide-cli
|
package/dist/auto-routes.mjs
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCompilerContext
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZHLTHMZA.mjs";
|
|
4
|
+
import "./chunk-6AH5XOPG.mjs";
|
|
5
|
+
import "./chunk-XQYQD5CM.mjs";
|
|
6
|
+
import "./chunk-BGBLJUWD.mjs";
|
|
7
|
+
import "./chunk-KV5GZOAZ.mjs";
|
|
8
|
+
import "./chunk-XIEFUUA5.mjs";
|
|
8
9
|
import {
|
|
9
10
|
init_esm_shims
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QD76G22N.mjs";
|
|
11
12
|
|
|
12
13
|
// src/auto-routes.ts
|
|
13
14
|
init_esm_shims();
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
__commonJS,
|
|
3
3
|
__toESM,
|
|
4
4
|
init_esm_shims
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QD76G22N.mjs";
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/merge@2.1.1/node_modules/merge/lib/src/index.js
|
|
8
8
|
var require_src = __commonJS({
|
|
@@ -145,7 +145,7 @@ function resolveAutoRoutesMacroImportPath() {
|
|
|
145
145
|
}
|
|
146
146
|
async function resolveAutoRoutesInlineSnapshot() {
|
|
147
147
|
try {
|
|
148
|
-
const { getCompilerContext } = await import("./getInstance-
|
|
148
|
+
const { getCompilerContext } = await import("./getInstance-W5DSUGSZ.mjs");
|
|
149
149
|
const service = getCompilerContext().autoRoutesService;
|
|
150
150
|
await service?.ensureFresh?.();
|
|
151
151
|
const reference = service?.getReference?.();
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
init_esm_shims
|
|
3
|
+
} from "./chunk-QD76G22N.mjs";
|
|
4
|
+
|
|
5
|
+
// src/pluginHost.ts
|
|
6
|
+
init_esm_shims();
|
|
7
|
+
var WEAPP_VITE_HOST_NAME = "weapp-vite";
|
|
8
|
+
function createWeappViteHostMeta(runtime) {
|
|
9
|
+
return {
|
|
10
|
+
name: WEAPP_VITE_HOST_NAME,
|
|
11
|
+
runtime
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function applyWeappViteHostMeta(config, runtime) {
|
|
15
|
+
config.weappVite = createWeappViteHostMeta(runtime);
|
|
16
|
+
return config;
|
|
17
|
+
}
|
|
18
|
+
function resolveWeappViteHostMeta(config) {
|
|
19
|
+
const meta = config?.weappVite;
|
|
20
|
+
if (!meta || typeof meta !== "object") {
|
|
21
|
+
return void 0;
|
|
22
|
+
}
|
|
23
|
+
if (meta.name !== WEAPP_VITE_HOST_NAME) {
|
|
24
|
+
return void 0;
|
|
25
|
+
}
|
|
26
|
+
if (meta.runtime !== "miniprogram" && meta.runtime !== "web") {
|
|
27
|
+
return void 0;
|
|
28
|
+
}
|
|
29
|
+
return meta;
|
|
30
|
+
}
|
|
31
|
+
function isWeappViteHost(config) {
|
|
32
|
+
return resolveWeappViteHostMeta(config) !== void 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
WEAPP_VITE_HOST_NAME,
|
|
37
|
+
createWeappViteHostMeta,
|
|
38
|
+
applyWeappViteHostMeta,
|
|
39
|
+
resolveWeappViteHostMeta,
|
|
40
|
+
isWeappViteHost
|
|
41
|
+
};
|
|
@@ -31,11 +31,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
mod
|
|
32
32
|
));
|
|
33
33
|
|
|
34
|
-
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.57.
|
|
34
|
+
// ../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.57.7_@types+node@25.4.0__@swc+core@1.15.18_jiti@2_b119211a17e0daf8221cf5b46d1b90ed/node_modules/tsup/assets/esm_shims.js
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { fileURLToPath } from "url";
|
|
37
37
|
var init_esm_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.57.
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.5.1_@microsoft+api-extractor@7.57.7_@types+node@25.4.0__@swc+core@1.15.18_jiti@2_b119211a17e0daf8221cf5b46d1b90ed/node_modules/tsup/assets/esm_shims.js"() {
|
|
39
39
|
"use strict";
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getCompilerContext,
|
|
3
3
|
resetCompilerContext,
|
|
4
4
|
setActiveCompilerContextKey
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZHLTHMZA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QD76G22N.mjs";
|
|
9
9
|
|
|
10
10
|
// src/createContext.ts
|
|
11
11
|
init_esm_shims();
|