@pyreon/vite-plugin 0.1.0 → 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.
Files changed (2) hide show
  1. package/README.md +2 -3
  2. package/package.json +6 -2
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
- ```ts
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(h(App, null))
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.0",
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,6 +35,7 @@
35
35
  "dev": "vl_rolldown_build-watch",
36
36
  "test": "echo 'no tests yet'",
37
37
  "typecheck": "tsc --noEmit",
38
+ "lint": "biome check .",
38
39
  "prepublishOnly": "bun run build"
39
40
  },
40
41
  "dependencies": {
@@ -44,6 +45,9 @@
44
45
  "vite": ">=5.0.0"
45
46
  },
46
47
  "devDependencies": {
47
- "vite": "^7.3.1"
48
+ "vite": "^8.0.0"
49
+ },
50
+ "publishConfig": {
51
+ "access": "public"
48
52
  }
49
53
  }