When I am compressing my javascript files, the closure compressor/compiler is adding some log output at the beginning of the final file, which makes it non legit javascript anymore.
This behaviour is slightly different locally & when hosting on heroku.
heroku:
Picked up JAVA_TOOL_OPTIONS: -Xmx300m -Xss512k -XX:CICompilerCount=2 -Dfile.encoding=UTF-8
locally:
Jan 04, 2024 4:37:37 PM com.google.javascript.jscomp.PhaseOptimizer$NamedPass process
WARNING: Skipping pass checkConformance
'use strict';
Actual behavior
When I am compressing my javascript files, the closure compressor/compiler is adding some log output at the beginning of the final file, which makes it non legit javascript anymore.
This behaviour is slightly different locally & when hosting on heroku.
heroku:
locally:
Any hints are appreciated?
System configuration
closure-compiler (1.1.14) sprockets (4.2.1) ruby 3.1.1p18
Example