esbuild
esbuild copied to clipboard
`file` loader should copy original timestamps
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.