@ubean/build 0.5.0 → 0.5.1

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.
@@ -184,7 +184,11 @@ async function createStaticSsgRenderer(cwd, manifest, init) {
184
184
  let mod;
185
185
  try {
186
186
  const entryPath = resolve(cwd, manifest.serverDir, "entry.mjs");
187
- mod = await import(pathToFileURL(entryPath).href);
187
+ // @vite-ignore:加载的是运行时拼路径的构建产物(.ubean/server/entry.mjs),
188
+ mod = await import(
189
+ /* @vite-ignore */
190
+ pathToFileURL(entryPath).href
191
+ );
188
192
  } catch (err) {
189
193
  logger.warn(`Failed to load static SSG entry: ${err instanceof Error ? err.message : String(err)}. Falling back.`);
190
194
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/build",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Vite plugins, production build, SSG prerender, type codegen, and Server Actions plugin for ubean",
5
5
  "files": [
6
6
  "dist"
@@ -45,17 +45,17 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@intlify/unplugin-vue-i18n": "11.2.5",
48
- "@ubean/client": "0.5.0",
49
- "@ubean/config": "0.5.0",
50
- "@ubean/i18n": "0.5.0",
51
- "@ubean/islands": "0.5.0",
52
- "@ubean/markdown": "0.5.0",
53
- "@ubean/pages": "0.5.0",
54
- "@ubean/preset": "0.5.0",
55
- "@ubean/routes": "0.5.0",
56
- "@ubean/scan": "0.5.0",
57
- "@ubean/shared": "0.5.0",
58
- "@ubean/vue": "0.5.0",
48
+ "@ubean/client": "0.5.1",
49
+ "@ubean/config": "0.5.1",
50
+ "@ubean/i18n": "0.5.1",
51
+ "@ubean/islands": "0.5.1",
52
+ "@ubean/markdown": "0.5.1",
53
+ "@ubean/pages": "0.5.1",
54
+ "@ubean/preset": "0.5.1",
55
+ "@ubean/routes": "0.5.1",
56
+ "@ubean/scan": "0.5.1",
57
+ "@ubean/shared": "0.5.1",
58
+ "@ubean/vue": "0.5.1",
59
59
  "@vitejs/plugin-vue": "^6.0.8",
60
60
  "openapi-typescript": "^7.13.0",
61
61
  "pathe": "^2.0.3",