Closed sirenkovladd closed 8 months ago
But for
const js = `throw new Error('The language "' + r.language + '" has no grammar.');`
it was done differently I think this is a mistake because actually it would be better to use template literals here
We can add option to disable such transformation, about second case - it’s hard to implement, but PR’s a welcome
Just landed ability to disable apply-template-literals
plugin 🎉 . Is it works for you?
As I understood in these changes, only that you turn off this transformation, without additional checking which of the options will be better
but unfortunately, the problem indicated in the title is not solved
There is no place I can add the check right now, but you can add a new rule to minify
plugin which will check the size and apply transformation (instead of this one).
Closed due to a long time of inactivity 🏝
Also this can be implemented using @putout/minify
API, you can always run with one set of options, and then use another one and check which is better for you.
it seems that if you leave this line as an addition, the result will be smaller
is it not considered an option to either remove the conversion to template literals, or add a check of the original size?