@ubean/build 0.6.0-beta.4 → 0.6.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/dist/production.js +1 -1
- package/dist/{vite-BZJ_a-WB.js → vite-C2bhAcof.js} +5 -5
- package/dist/vite.js +1 -1
- package/package.json +20 -20
package/dist/production.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as getPresetBuildConfig, S as generateVirtualModulesToDisk, T as buildWithEnvironments, b as generateNodeServerEntry, v as createIslandsSsrStubPlugin, w as serializePagesForEntry, x as generateStandardHandlerEntry, y as generateCloudflareWorkerEntry } from "./vite-
|
|
1
|
+
import { C as getPresetBuildConfig, S as generateVirtualModulesToDisk, T as buildWithEnvironments, b as generateNodeServerEntry, v as createIslandsSsrStubPlugin, w as serializePagesForEntry, x as generateStandardHandlerEntry, y as generateCloudflareWorkerEntry } from "./vite-C2bhAcof.js";
|
|
2
2
|
export { buildWithEnvironments, createIslandsSsrStubPlugin, generateCloudflareWorkerEntry, generateNodeServerEntry, generateStandardHandlerEntry, generateVirtualModulesToDisk, getPresetBuildConfig, serializePagesForEntry };
|
|
@@ -1172,9 +1172,9 @@ async function runPrerenderStep(options) {
|
|
|
1172
1172
|
* ```
|
|
1173
1173
|
*
|
|
1174
1174
|
* 三个阶段刻意拆成三个出口(RM-V21),因为**谁来建 builder** 有两种情况:
|
|
1175
|
-
* - `buildWithEnvironments()
|
|
1176
|
-
*
|
|
1177
|
-
* - 插件(`ubeanPlugin` 的 `config`
|
|
1175
|
+
* - `buildWithEnvironments()`:调用方自己建 builder,env 定义在这里(旧路径已随 RM-V36 删除,
|
|
1176
|
+
* 该出口保留给仍自行驱动构建的场景);
|
|
1177
|
+
* - 插件(`ubeanPlugin` 的 `config` 钩子)提供
|
|
1178
1178
|
* `builder.buildApp`:此时 builder 由 Vite 自己创建、env 由同一钩子注册,插件只需
|
|
1179
1179
|
* `prepareBuild` + `runEnvBuilds` —— **不能**再调 `buildWithEnvironments`(那会递归建 builder)。
|
|
1180
1180
|
*
|
|
@@ -2290,9 +2290,9 @@ function candidateFileKeys(file) {
|
|
|
2290
2290
|
* 在**主进程**里跑 SSR 模块图)。因此「dev 下服务端代码在 worker 里执行」目前**不成立**,本模块
|
|
2291
2291
|
* 与它的测试(`dev-environment.test.ts` / `dev-worker.test.ts`)验证的是能力与 IPC 契约,不是线上
|
|
2292
2292
|
* 行为。Phase 4 的 RM-V28(跨环境单例代理)与 RM-V29(services 环境机制)都服务于这套多环境
|
|
2293
|
-
* 拓扑,在拓扑被采用之前不落地 —— 结论与理由见 docs/vite-plugin-
|
|
2293
|
+
* 拓扑,在拓扑被采用之前不落地 —— 结论与理由见 docs/adr/0012-vite-plugin-first-lifecycle.md。
|
|
2294
2294
|
*
|
|
2295
|
-
* 分工(依据
|
|
2295
|
+
* 分工(依据 ADR-0012 §3 落地注记与 docs/adr/0013-platform-artifact-contract.md 的实测结论):
|
|
2296
2296
|
* - **Vite 自己**负责模块图语义与 `vite:invoke` 的分发 —— `DevEnvironment` 构造时会把传入的
|
|
2297
2297
|
* transport 规范化,并挂到 `environment.hot`(`NormalizedHotChannel`)上,其
|
|
2298
2298
|
* `handleInvoke()` 是公开方法,不需要我们复刻;
|
package/dist/vite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { m as createVirtualRegistry } from "./ssr-singleton-Bbds29jS.js";
|
|
2
2
|
import { A as toVueRouterPagePath, C as bootstrapDevApp, D as resolveLocaleVueParam, E as resolveDevSecurityHeaders, O as enhanceDevApp, S as peekDevScanCoordinator, T as createDevAppReady, _ as toWebRequest, b as getDevScanCoordinator, c as collectDevCssLinks, d as getDevApp, f as injectStylesheetLinks, g as sendWebResponse, h as ubeanDevRequestPlugin, k as buildDevSsrRoutes, l as createUbeanRequestHandlers, m as isViteResourceRequest, p as isFrameworkHtmlPage, s as DEVTOOLS_PASS_THROUGH_PREFIXES, u as ensureDevApp, v as DEV_SCAN_DIRS, w as createDevApp, x as onDevScan, y as createDevScanCoordinator } from "./vue-DR8VizGq.js";
|
|
3
|
-
import { D as createCloudflarePreviewRunner, E as MINIFLARE_INSTALL_HINT, O as defaultLoadMiniflare, _ as ubeanPreviewPlugin, a as createEnvRunnerTransport, c as getDevWorkerEntrySource, d as attachPreviewMiddleware, f as createPreviewMiddleware, g as sendPreviewStatus, h as sendPreviewFile, i as bridgeEnvRunnerInvokes, k as readCompatibilityDate, l as invalidateDevWorkerModules, m as resolvePreviewFile, n as UBEAN_DEV_ENV_NAME, o as createUbeanDevEnvironmentFactory, p as previewMimeType, r as UbeanDevEnvironment, s as DEV_WORKER_FILE, t as ubeanPlugin, u as writeDevWorkerEntry } from "./vite-
|
|
3
|
+
import { D as createCloudflarePreviewRunner, E as MINIFLARE_INSTALL_HINT, O as defaultLoadMiniflare, _ as ubeanPreviewPlugin, a as createEnvRunnerTransport, c as getDevWorkerEntrySource, d as attachPreviewMiddleware, f as createPreviewMiddleware, g as sendPreviewStatus, h as sendPreviewFile, i as bridgeEnvRunnerInvokes, k as readCompatibilityDate, l as invalidateDevWorkerModules, m as resolvePreviewFile, n as UBEAN_DEV_ENV_NAME, o as createUbeanDevEnvironmentFactory, p as previewMimeType, r as UbeanDevEnvironment, s as DEV_WORKER_FILE, t as ubeanPlugin, u as writeDevWorkerEntry } from "./vite-C2bhAcof.js";
|
|
4
4
|
export { DEVTOOLS_PASS_THROUGH_PREFIXES, DEV_SCAN_DIRS, DEV_WORKER_FILE, MINIFLARE_INSTALL_HINT, UBEAN_DEV_ENV_NAME, UbeanDevEnvironment, attachPreviewMiddleware, bootstrapDevApp, bridgeEnvRunnerInvokes, buildDevSsrRoutes, collectDevCssLinks, createCloudflarePreviewRunner, createDevApp, createDevAppReady, createDevScanCoordinator, createEnvRunnerTransport, createPreviewMiddleware, createUbeanDevEnvironmentFactory, createUbeanRequestHandlers, createVirtualRegistry, defaultLoadMiniflare, enhanceDevApp, ensureDevApp, getDevApp, getDevScanCoordinator, getDevWorkerEntrySource, injectStylesheetLinks, invalidateDevWorkerModules, isFrameworkHtmlPage, isViteResourceRequest, onDevScan, peekDevScanCoordinator, previewMimeType, readCompatibilityDate, resolveDevSecurityHeaders, resolveLocaleVueParam, resolvePreviewFile, sendPreviewFile, sendPreviewStatus, sendWebResponse, toVueRouterPagePath, toWebRequest, ubeanDevRequestPlugin, ubeanPlugin, ubeanPreviewPlugin, writeDevWorkerEntry };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/build",
|
|
3
|
-
"version": "0.6.0
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Vite plugins, production build, SSG prerender, type codegen, and Server Actions plugin for ubean",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@intlify/unplugin-vue-i18n": "11.2.5",
|
|
48
|
-
"@ubean/app": "0.6.0
|
|
49
|
-
"@ubean/client": "0.6.0
|
|
50
|
-
"@ubean/config": "0.6.0
|
|
51
|
-
"@ubean/i18n": "0.6.0
|
|
52
|
-
"@ubean/islands": "0.6.0
|
|
53
|
-
"@ubean/markdown": "0.6.0
|
|
54
|
-
"@ubean/pages": "0.6.0
|
|
55
|
-
"@ubean/preset": "0.6.0
|
|
56
|
-
"@ubean/routes": "0.6.0
|
|
57
|
-
"@ubean/scan": "0.6.0
|
|
58
|
-
"@ubean/server": "0.6.0
|
|
59
|
-
"@ubean/shared": "0.6.0
|
|
60
|
-
"@ubean/vue": "0.6.0
|
|
48
|
+
"@ubean/app": "0.6.0",
|
|
49
|
+
"@ubean/client": "0.6.0",
|
|
50
|
+
"@ubean/config": "0.6.0",
|
|
51
|
+
"@ubean/i18n": "0.6.0",
|
|
52
|
+
"@ubean/islands": "0.6.0",
|
|
53
|
+
"@ubean/markdown": "0.6.0",
|
|
54
|
+
"@ubean/pages": "0.6.0",
|
|
55
|
+
"@ubean/preset": "0.6.0",
|
|
56
|
+
"@ubean/routes": "0.6.0",
|
|
57
|
+
"@ubean/scan": "0.6.0",
|
|
58
|
+
"@ubean/server": "0.6.0",
|
|
59
|
+
"@ubean/shared": "0.6.0",
|
|
60
|
+
"@ubean/vue": "0.6.0",
|
|
61
61
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
62
62
|
"openapi-typescript": "^7.13.0",
|
|
63
63
|
"pathe": "^2.0.3",
|
|
@@ -66,17 +66,17 @@
|
|
|
66
66
|
"unplugin-auto-import": "21.1.0",
|
|
67
67
|
"unplugin-vue-components": "^32.1.0",
|
|
68
68
|
"unplugin-vue-markdown": "^32.1.1",
|
|
69
|
-
"vue-i18n": "11.4.
|
|
69
|
+
"vue-i18n": "11.4.13"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@types/node": "^26.6.
|
|
73
|
-
"hono": "4.13.
|
|
72
|
+
"@types/node": "^26.6.4",
|
|
73
|
+
"hono": "4.13.12",
|
|
74
74
|
"typescript": "npm:typescript-native-bridge@latest",
|
|
75
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@
|
|
76
|
-
"vite-plus": "
|
|
75
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.0.0",
|
|
76
|
+
"vite-plus": "1.0.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@
|
|
79
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@1.0.0"
|
|
80
80
|
},
|
|
81
81
|
"peerDependenciesMeta": {
|
|
82
82
|
"vite": {
|