closure-compiler icon indicating copy to clipboard operation
closure-compiler copied to clipboard

A JavaScript checker and optimizer.

Results 180 closure-compiler issues
Sort by recently updated
recently updated
newest added

I've created this as a pull request instead of a normal Google-internal change because it was easier to work on the OSS build rules from a git repository.

I am using a babel library for a usecase and during minification I get the below error. Error output: ``` Caused by: java.lang.RuntimeException: INTERNAL COMPILER ERROR. Please report this problem....

Bumps [bazelbuild/setup-bazelisk](https://github.com/bazelbuild/setup-bazelisk) from 2 to 3. Release notes Sourced from bazelbuild/setup-bazelisk's releases. v3.0.0 What's Changed Update README.md for v2 by @​mishas in bazelbuild/setup-bazelisk#20 Bump prettier from 2.6.1 to 2.6.2 by...

dependencies

Closure doesn't yet have extern definitions for WebGPU. Over in Emscripten, we are finally switching to externs instead of doing `["this"]` everywhere (except everywhere we forgot and so it's broken)....

Bumps [actions/setup-java](https://github.com/actions/setup-java) from 3 to 4. Release notes Sourced from actions/setup-java's releases. v4.0.0 What's Changed In the scope of this release, the version of the Node.js runtime was updated to...

dependencies

In https://closure-compiler.app, when doing "Whitespace only", the setting: `// @language_out ECMASCRIPT_NEXT` needs to be added otherwise a `for(const row of rows)` returns `$jscomp` and loads of junk JavaScript code that...

`BaseRenderingContext2D.prototype.roundRect`: https://html.spec.whatwg.org/multipage/canvas.html#canvasrenderingcontext2d `Path2D.prototype.roundRect`: https://html.spec.whatwg.org/multipage/canvas.html#path2d-objects Both refer to: https://html.spec.whatwg.org/multipage/canvas.html#dom-context-2d-roundrect

``` % echo 'const x = async () => { const buffer = await import(/** @type {string} */("buffer")); alert("1", buffer);}; x();' | google-closure-compiler -W QUIET --module_resolution WEBPACK -O ADVANCED ```...

From https://developers.google.com/closure/compiler/docs/js-for-compiler#tag-license, it appears that any `@license` comments end up in the compiled output, and no flags can prevent that (and perhaps, nor should they). Given a project which uses...

Even simple union types require brackets (e.g. `(number|undefined)`) without brackets there is a warning. ```js /** * @type {{ * age: number|undefined, // WARNING - [JSC_TYPE_PARSE_ERROR] Bad type annotation. *...