@hono/vite-dev-server
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -35,7 +35,11 @@ import { getRequestListener } from "@hono/node-server"; | ||
} | ||
const appModule = await server2.ssrLoadModule(entry); | ||
let appModule; | ||
try { | ||
appModule = await server2.ssrLoadModule(entry); | ||
} catch (e) { | ||
return next(e); | ||
} | ||
const app = appModule["default"]; | ||
if (!app) { | ||
console.error(`Failed to find a named export "default" from ${entry}`); | ||
return next(); | ||
return next(new Error(`Failed to find a named export "default" from ${entry}`)); | ||
} | ||
@@ -42,0 +46,0 @@ getRequestListener(async (request) => { |
{ | ||
"name": "@hono/vite-dev-server", | ||
"description": "Vite dev-server plugin for Hono", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"types": "dist/index.d.ts", | ||
@@ -6,0 +6,0 @@ "module": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27430
513