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
Libraries like Svelte rely on this for tree-shaking out parts of its bundle or returning different modules based on the value. This works automatically in Vite, but requires extra configuration in Rollup
Actual Behavior / Situation
exportConditions is empty by default
Modification Proposal
If the user has not provided either production or development then set production if NODE_ENV is undefined or production and development otherwise.
The text was updated successfully, but these errors were encountered:
@rollup/plugin-node-resolve
Expected Behavior / Situation
It would be nice if
exportConditions
always includeddevelopment
orproduction
vite build
will automatically set theproduction
condition whilevite dev
will automatically set thedevelopment
conditionReferences:
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 for tree-shaking out parts of its bundle or returning different modules based on the value. This works automatically in Vite, but requires extra configuration in Rollup
Actual Behavior / Situation
exportConditions
is empty by defaultModification Proposal
If the user has not provided either
production
ordevelopment
then setproduction
ifNODE_ENV
isundefined
orproduction
anddevelopment
otherwise.The text was updated successfully, but these errors were encountered: