frandiox/vite-ssr

command "--mode" option become invalid

gitsheny opened this issue · 2 comments

when i use command "vite-ssr build --mode test", the mode in vite.config.js is still "development".

"./src/build/index.ts", line:21
const viteConfig = _viteConfig || await resolveViteConfig()
why not set param "mode" from "inlineBuildOptions" to "resolveViteConfig"

a temporary solution : "cross-env MODE=test vite-ssr build --mode test",