Open arpancj opened 4 years ago
This seems like a bug. We should strive to keep original files unchanged as much as possible. The train this happens is probably that the pretty print defaults to true and I forgot about it. Let's treat this as a bug
Thanks for confirming -- I thought it might have something to do with the parsing or linting.
Had earlier spent a couple hours trying to debug my deploy script before I realized it was the build plugin doing it. 🤦♂️ Very useful plugin though -- was using a custom hashing script, but yours is so much faster than my hacky code.
Is this fixed?
I have a svelte file that is compiled using rollup, and the final stage includes magnification using terser().
This works perfectly, until I add the hash files plugin -- when this is run, it undoes the magnification step and reformats the JS file -- almost doubling the file size.
Is there a reason this is happening and is there a way to prevent this from happening?