Replies: 1 comment 1 reply
-
I'm not quite sure, but maybe you want SSR instead of client side served code? 🤔 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So, I was wondering if it is somehow possible to remove any logic automatically that is used with
import.meta.env.DEV
vars.Let's say I have an if-clause in Vue3
v-if="isDev"
,isDev
is assigned in my<script setup..
and now runningvite build
would completly remove anything related to it sinceimport.meta.env.DEV
isfalse
.Did anyone create something like this before, or is this even possible? Maybe not because of how different React/Vue looks like, but a simple JS if-clause might work better to remove example data that is only used in dev mode.
Beta Was this translation helpful? Give feedback.
All reactions