emosheeep / vite-plugin-virtual-mpa

Out-of-box MPA plugin for Vite, generate multiple entries using only one template.
https://stackblitz.com/~/github.com/emosheeep/vite-plugin-virtual-mpa
MIT License
113 stars 15 forks source link

Prevent the Vite dev server from crashing when rendering EJS templates fails #71

Closed inkfarer closed 2 months ago

inkfarer commented 2 months ago

Before these changes, the Vite dev server would stop if rendering an EJS template caused an error: before

After these changes, the rendering error is handled more gracefully - The server doesn't stop and the error is displayed in the browser. When the issue is solved, the page reloads automatically and the error overlay is cleared. after

Changes were tested with Vite 5.2.11 and 5.3.1.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 30a6ab8c59447a26bd0514e69ffcc6a19db12ad5

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

emosheeep commented 2 months ago

wow, unbelievable! I'll check later today