Closed naranjamecanica closed 3 years ago
Sorry, I just saw it. Let me see
Can give me reproduction?I can't reproduce it
Sure, after the weekend I'll try to isolate it for you.
This seems to be happening to me, and I believe you can guard against it in your writeBundle()
with something like:
async writeBundle(options, bundle) {
if (options.chunkFileNames.includes('-legacy')) {
return;
}
Although that's quick-and-dirty. I imagine you can change the name of the chunk to not always be legacy, so it's likely not foolproof, but maybe a start...
I'm using https://github.com/vitejs/vite/tree/main/packages/plugin-legacy in my build setup to support older browsers and this causes to trigger the imagemin compression of images to run twice.
Thanks for the great plugin!