Skip to content

Commit

Permalink
Use writeIfChanged by default
Browse files Browse the repository at this point in the history
  • Loading branch information
volkanceylan committed Dec 25, 2024
1 parent 4ea9203 commit 784f82e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/tsbuild/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ export const esbuildOptions = (opt) => {
plugins.push(importAsGlobalsPlugin(opt.importAsGlobals ?? importAsGlobalsMapping));
}

if (opt.writeIfChanged === undefined || opt.writeIfChanged) {
plugins.push(writeIfChanged());
opt.write = false;
}

delete opt.clean;
delete opt.importAsGlobals;
delete opt.writeIfChanged;
Expand Down

0 comments on commit 784f82e

Please sign in to comment.