esbuild icon indicating copy to clipboard operation
esbuild copied to clipboard

`file` loader should copy original timestamps

Open ringoz opened this issue 2 years ago • 0 comments

I am using --loader=file for some outputs which are further post-processed by make build tool. The problem is esbuild always rewrites output files, even when inputs are unchanged. This leads to new timestamps and unnecessary rerunning of costly post-processing.

Ideally, no rewriting should occur for input files which are unchanged. But copying file attributes like modification time will also work.

ringoz avatar May 31 '22 10:05 ringoz