Skip to content

[Feature Request]: Empty Output Directory #6485

@aprosail

Description

@aprosail

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions