LinbuduLab / esbuild-plugins

ESBuild plugins by @LinbuduLab
MIT License
113 stars 18 forks source link

Doesn't work as would like it. `outputFiles` isn't iterable. #104

Open mctrafik opened 1 year ago

mctrafik commented 1 year ago

result.outputFiles is null when write: true which is the typical case. IMHO this plugin can look at Object.keys(result.metafile?.outputs) and compress that instead. This way you can avoid the double compilation.