closure-compiler
closure-compiler copied to clipboard
A JavaScript checker and optimizer.
i recreated this PR since somehow the CLA bot didn't recognize me ----- fixes #3840 - allow user to pass any path separator as --chunk_output_path_prefix as a user, you might...
Starting in v20220803 the release jar now contains an erroneous module-info.class file. Pre-v20220803 releases contain no such file and allow Java to use automatic modules. Starting in v20220803 a module-info.class...
`test.js`: ```js /** @type {BeforeUnloadEvent} */ var a; ``` Compiled with `closure-compiler -O ADVANCED --js test.js --js_output_file test.min.js` version `v20220601`: ``` test.js:1:11: WARNING - [JSC_UNRECOGNIZED_TYPE_ERROR] Bad type annotation. Unknown type...
According to [the docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed) this argument has to be a number. Using the more specific type is needed for https://github.com/google/elemental2/issues/129
The change re-enables existing functionality which has been previously disabled as part of change e17ddd9271874add9608c71dd9d257a5f6e6c085. The reason to re-enable it at this time is to enable minimal binary compression diff...
I am using webpack with closure compiler, I ran into an issue that some function calls from certain modules were removed by the compiler. This is the minimal example for...
Enables downstream projects to depend only on closure-compiler (and not protobuf-java) to read and write sourcemaps. The proto file has shrunk over time, and only has a single message type,...
Looks like this ability used to be in the compiler, but was [removed long ago](https://github.com/google/closure-compiler/commit/e17ddd9271874add9608c71dd9d257a5f6e6c085). A piece of the functionality was re-added for #433, but not the piece allowing for...
I use Multipass to run an Ubuntu 22.04 VM on the Mac with an Apple M3 Pro chip. From within my Ubuntu VM, I install the Google Closure Compiler by...
With --compilation_level ADVANCED, concatenated template literals are not merged into one. ``` let url = document.location.href; console.log( `${url}` + `The URL is ${url}.` ); url = '//example.com/'; console.log( `${url}` +...