@ilha/void 0.1.3 → 0.1.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.
- package/README.md +1 -1
- package/dist/plugin.js +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Render [Void](https://void.cloud) pages, layouts, forms, and islands with [Ilha]
|
|
|
10
10
|
bun add @ilha/void
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
`ilha`, `vite`, and `void` are peer dependencies. Void needs Node.js 24.21 or newer.
|
|
13
|
+
`ilha`, `vite`, and `void` are peer dependencies. Void needs Node.js 24.21 or newer. Requires `void ^1.1.12`: upgrade with `bun add void@^1.1.12` — older Void releases lack the islands API this package builds on.
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
package/dist/plugin.js
CHANGED
|
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { generateComponentManifest, resolveEffectiveLayoutChain, resolvePagesDir, resolveStaticPageDataBuildOptions, scanPages } from "void/pages";
|
|
4
4
|
import { normalizePath } from "vite";
|
|
5
|
-
import { ISLANDS_CLIENT_ENTRY_ID, ISLANDS_RENDERER_ID, computePagesNeedingClientJS, editIslandSource, findIslandImports, findStaticCssImports,
|
|
5
|
+
import { ISLANDS_CLIENT_ENTRY_ID, ISLANDS_RENDERER_ID, computePagesNeedingClientJS, editIslandSource, findIslandImports, findStaticCssImports, hasIslandPages, resolveSpecifier, rewriteCssImportForVirtualModule, watchPagesForRescan } from "void/pages-islands-plugin";
|
|
6
6
|
|
|
7
7
|
//#region src/plugin-islands.ts
|
|
8
8
|
const COMPONENT_EXTENSIONS = [
|
|
@@ -115,8 +115,8 @@ const islandsPlugin = (pagesDir, { root }) => {
|
|
|
115
115
|
scan = await scanPages(root, { pagesDir });
|
|
116
116
|
prescan(scan);
|
|
117
117
|
},
|
|
118
|
-
config(_, env) {
|
|
119
|
-
if (env.command === "serve" || !existsSync(pagesDir) || !
|
|
118
|
+
async config(_, env) {
|
|
119
|
+
if (env.command === "serve" || !existsSync(pagesDir) || !await hasIslandPages(root, pagesDir)) return;
|
|
120
120
|
return { build: {
|
|
121
121
|
manifest: true,
|
|
122
122
|
rollupOptions: { input: { "islands-client": ISLANDS_CLIENT_ENTRY_ID } }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilha/void",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Ilha pages, server rendering, islands, forms, and navigation for Void",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"frontend",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"ilha": "^0.16.0",
|
|
64
64
|
"vite": "^8.3.1",
|
|
65
|
-
"void": "^1.1.
|
|
65
|
+
"void": "^1.1.12"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"ilha": ">=0.16.0",
|
|
69
69
|
"vite": "^8.0.0",
|
|
70
|
-
"void": "^1.1.
|
|
70
|
+
"void": "^1.1.12"
|
|
71
71
|
}
|
|
72
72
|
}
|