Skip to content

Commit 7319874

Browse files
committed
wip: full bundle dev env
1 parent 122223e commit 7319874

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/vite/src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ export function injectQuery(url: string, queryToInject: string): string {
600600

601601
export { ErrorOverlay }
602602

603-
if (isFullBundleMode) {
603+
if (isFullBundleMode && typeof DevRuntime !== 'undefined') {
604604
class ViteDevRuntime extends DevRuntime {
605605
override createModuleHotContext(moduleId: string) {
606606
const ctx = createHotContext(moduleId)

packages/vite/src/node/server/middlewares/error.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export function errorMiddleware(
7171
if (allowNext) {
7272
next()
7373
} else {
74-
// TODO: support error overlay
7574
res.statusCode = 500
7675
res.end(`
7776
<!DOCTYPE html>

0 commit comments

Comments
 (0)