import {defineConfig} from "vite"
export default defineConfig((props) => {
const is_dev = props.command === "serve"
return {
optimizeDeps: {
exclude: is_dev ? ["some_dep_i_don't want_cached_in_dev"] : [],
},
}
})
import {defineConfig} from "vite"
export default defineConfig((props) => {
const is_dev = props.command === "serve"
return {
optimizeDeps: {
exclude: is_dev ? ["some_dep_i_don't want_cached_in_dev"] : [],
},
}
})