Skip to content

Commit

Permalink
fix: build.emptyOutDir = true has no effect (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasReibnitz authored Mar 14, 2024
1 parent 191fa4f commit a49de48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export function manifestLoaderPlugin(options: ResolvedOptions): vite.Plugin {
// Runs during: Build, dev, watch
async buildStart() {
// Empty out directory
if (resolvedConfig.build.emptyOutDir) {
if (userConfig.build?.emptyOutDir) {
logger.verbose("Removing build.outDir...");
await fs.rm(getOutDir(resolvedConfig), {
recursive: true,
Expand Down

0 comments on commit a49de48

Please sign in to comment.