Wrap existing defineConfig with other function #25
Unanswered
aheissenberger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to wrap an existing exported defineConfig with a function which loads environment values from files.
gives is this:
vite.config.ts:
.env:
The result after transformation should look like this:
vite.config.ts:
I solved adding
loadEnv
but have no idea how to wrap the existing default export:Beta Was this translation helpful? Give feedback.
All reactions