diff --git a/examples/basic/bun.lockb b/examples/basic/bun.lockb index f9d4924..5bca9eb 100755 Binary files a/examples/basic/bun.lockb and b/examples/basic/bun.lockb differ diff --git a/examples/basic/package.json b/examples/basic/package.json index 637e1b4..f273bbd 100644 --- a/examples/basic/package.json +++ b/examples/basic/package.json @@ -5,7 +5,7 @@ "dev": "vite", "build": "vite build --mode client && vite build", "preview": "wrangler pages dev ./dist", - "deploy": "$npm_execpath build && wrangler pages deploy ./dist" + "deploy": "$npm_execpath run build && wrangler pages deploy ./dist" }, "private": true, "devDependencies": { diff --git a/examples/mdx/app/global.d.ts b/examples/mdx/app/global.d.ts index dbf5d87..3ffadb2 100644 --- a/examples/mdx/app/global.d.ts +++ b/examples/mdx/app/global.d.ts @@ -1,5 +1,4 @@ -// eslint-disable-next-line node/no-extraneous-import -import 'hono' +import {} from 'hono' import type { Meta } from './types' declare module 'hono' { diff --git a/examples/mdx/app/routes/_renderer.tsx b/examples/mdx/app/routes/_renderer.tsx index 0712f7f..daba04e 100644 --- a/examples/mdx/app/routes/_renderer.tsx +++ b/examples/mdx/app/routes/_renderer.tsx @@ -1,32 +1,27 @@ import { jsxRenderer } from 'hono/jsx-renderer' -export default jsxRenderer( - ({ children, title, frontmatter }) => { - return ( - - - - - {{title ?? frontmatter?.title ?? 'My Blog'}} - - - -
-

- My Blog -

-
-
-
{children}
-
- - - - ) - }, - { - docType: true, - } -) +export default jsxRenderer(({ children, title, frontmatter }) => { + return ( + + + + + {{title ?? frontmatter?.title ?? 'My Blog'}} + + + +
+

+ My Blog +

+
+
+
{children}
+
+ + + + ) +}) diff --git a/examples/mdx/bun.lockb b/examples/mdx/bun.lockb index 3aa9cd5..e7d31d5 100755 Binary files a/examples/mdx/bun.lockb and b/examples/mdx/bun.lockb differ diff --git a/examples/mdx/package.json b/examples/mdx/package.json index 91b3ad5..2e2dfcb 100644 --- a/examples/mdx/package.json +++ b/examples/mdx/package.json @@ -5,7 +5,7 @@ "dev": "vite", "build": "vite build", "preview": "wrangler pages dev ./dist", - "deploy": "$npm_execpath build && wrangler pages deploy ./dist" + "deploy": "$npm_execpath run build && wrangler pages deploy ./dist" }, "private": true, "devDependencies": { @@ -17,6 +17,6 @@ "wrangler": "^3.23.0" }, "dependencies": { - "hono": "4.0.0-rc.3" + "hono": "4.0.0-rc.4" } } \ No newline at end of file diff --git a/examples/mdx/vite.config.ts b/examples/mdx/vite.config.ts index 572687e..eda9fe4 100644 --- a/examples/mdx/vite.config.ts +++ b/examples/mdx/vite.config.ts @@ -1,4 +1,3 @@ -import devServer from '@hono/vite-dev-server' import ssg from '@hono/vite-ssg' import mdx from '@mdx-js/rollup' import honox from 'honox/vite' @@ -12,7 +11,6 @@ export default defineConfig(() => { return { plugins: [ honox(), - devServer({ entry }), ssg({ entry }), mdx({ jsxImportSource: 'hono/jsx',