async function build(
inlineConfig?: InlineConfig
): Promise<RollupOutput | RollupOutput[]>
const path = require(path)
const { build } = require(vite)
;(async () => {
await build({
root: path.resolve(__dirname, ./project),
base: /foo/,
build: {
rollupOptions: {
// ...
}
}
})
})()