@pyreon/vite-plugin 0.1.1 → 0.1.2
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 +2 -3
- package/package.json +5 -6
package/README.md
CHANGED
|
@@ -36,14 +36,13 @@ export default defineConfig({
|
|
|
36
36
|
|
|
37
37
|
Your server entry must export a `handler` (or default export) with the signature `(req: Request) => Promise<Response>`:
|
|
38
38
|
|
|
39
|
-
```
|
|
39
|
+
```tsx
|
|
40
40
|
// src/entry-server.ts
|
|
41
41
|
import { renderToString } from "@pyreon/runtime-server"
|
|
42
|
-
import { h } from "@pyreon/core"
|
|
43
42
|
import App from "./App"
|
|
44
43
|
|
|
45
44
|
export async function handler(req: Request): Promise<Response> {
|
|
46
|
-
const html = await renderToString(
|
|
45
|
+
const html = await renderToString(<App />)
|
|
47
46
|
return new Response(html, {
|
|
48
47
|
headers: { "Content-Type": "text/html" },
|
|
49
48
|
})
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pyreon/vite-plugin",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Vite plugin for Pyreon — .pyreon SFC support, HMR, compiler integration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,18 +35,17 @@
|
|
|
35
35
|
"dev": "vl_rolldown_build-watch",
|
|
36
36
|
"test": "echo 'no tests yet'",
|
|
37
37
|
"typecheck": "tsc --noEmit",
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"postpack": "bun run ../../scripts/resolve-workspace-deps.ts post"
|
|
38
|
+
"lint": "biome check .",
|
|
39
|
+
"prepublishOnly": "bun run build"
|
|
41
40
|
},
|
|
42
41
|
"dependencies": {
|
|
43
|
-
"@pyreon/compiler": "
|
|
42
|
+
"@pyreon/compiler": "workspace:*"
|
|
44
43
|
},
|
|
45
44
|
"peerDependencies": {
|
|
46
45
|
"vite": ">=5.0.0"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
|
-
"vite": "^
|
|
48
|
+
"vite": "^8.0.0"
|
|
50
49
|
},
|
|
51
50
|
"publishConfig": {
|
|
52
51
|
"access": "public"
|