What problem does this feature solve?
Add an option to empty output directory before build, just like the build.emptyOutDir options in vite.
What does the proposed API look like?
import { defineConfig } from "rolldown"
export default defineConfig({
...,
output: {
...,
dir: xxx,
emptyOutDir: true,
}
})
#6486