"Auto Minify" breaks javascript syntax

Found this bug when working with Tailwind so this might be a popular problem.

For numeric literals where numeric literal has no exponent and no decimal point, one can use whitespace to prevent the dot from being interpreted as a decimal point.

For example:
console.log(1 .toString());

Unfortunately Cloudflare “Auto Minify” feature minifies it to:

console.log(1.toString());

which throws “Invalid or unexpected token”

Can this be fixed?

Thank you for reporting this.

If you want and have to use Auto Minify for JS feature on your website, but this is causing an issue, I’d suggest you to temporary disable the “Auto Minify” feature for JS by creating a Page Rule for that particular .js resource (file) until it’s fixed.