@hono/vite-build 1.3.0 → 1.3.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.
@@ -28,7 +28,13 @@ const getEntryContent = async (options) => {
28
28
  let added = false
29
29
  for (const [, app] of Object.entries(modules)) {
30
30
  if (app) {
31
- mainApp.route('/', app)
31
+ mainApp.all('*', (c) => {
32
+ let executionCtx
33
+ try {
34
+ executionCtx = c.executionCtx
35
+ } catch {}
36
+ return app.fetch(c.req.raw, c.env, executionCtx)
37
+ })
32
38
  mainApp.notFound((c) => {
33
39
  let executionCtx
34
40
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hono/vite-build",
3
3
  "description": "Vite plugin to build your Hono app",
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "types": "dist/index.d.ts",
6
6
  "module": "dist/index.js",
7
7
  "type": "module",
@@ -84,7 +84,7 @@
84
84
  "publint": "^0.1.12",
85
85
  "rimraf": "^5.0.1",
86
86
  "tsup": "^7.2.0",
87
- "vite": "^5.4.12",
87
+ "vite": "^6.1.1",
88
88
  "vitest": "^2.1.1"
89
89
  },
90
90
  "peerDependencies": {