You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if conditions always included development or production
E.g. vite build will automatically set the production condition while vite dev will automatically set the development condition. Rollup also sets the development and production conditions by default.
It would be nice if
conditions
always includeddevelopment
orproduction
E.g.
vite build
will automatically set theproduction
condition whilevite dev
will automatically set thedevelopment
condition. Rollup also sets thedevelopment
andproduction
conditions by default.References:
https://vite.dev/config/shared-options#resolve-conditions
https://vite.dev/guide/env-and-mode#node-env-and-modes
Libraries like Svelte rely on this to be set. This works automatically in Vite and Rollup, but requires extra configuration in esbuild
If the user has not provided either
production
ordevelopment
then setproduction
by default ordevelopment
ifNODE_ENV === 'development'
The text was updated successfully, but these errors were encountered: