1.0.0
Breaking Changes
Before, the plugin didn't really work at 100%, or at least, it wasn't totally type safe. Only strings were stored in import.meta.env. Even when using z.number()
or Schema.number()
. Same for all other types other than string
. It's all fixed now, everything works as expected. We've changed our strategy and now use define
from vite rather than process.env.
This is the main reason for this major version change.
Features
- Added a
debug
property in the plugin configuration that allows process.env to be logged before the vite-plugin-validate-env processing
Fixes
- Previously, when .env file was modified and the vite dev server was running, the changes were not taken into account. This is now fixed
New Contributors
Full Changelog: v0.2.5...v1.0.0