Skip to content

How to get boolean env var as per ImportMetaEnv #6637

Answered by niku98
axelboc asked this question in Q&A
Discussion options

You must be logged in to vote

I just wrote a plugin workaround this issue. You can try it out.
https://www.npmjs.com/package/@niku/vite-env-caster

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@echofly
Comment options

@kamikazePT
Comment options

@niku98
Comment options

Answer selected by axelboc
@rkrisztian
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
10 participants