meteor-vite
meteor-vite copied to clipboard
Add warning when Vite config is loaded using CommonJS instead of ESM.
If Meteor loads an app's Vite config using CommonJS, the app will break on startup with a hard to decipher error message. Since we load Vite configs before Vite, the default warning message with more useful error information is never emitted.
Related:
- https://github.com/JorgenVatle/meteor-vite/issues/315