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

```mjs // e.mjs const a = 'print me'; export { a as "dove" }; ``` ```mjs // i.mjs import { "dove" as b } from './e.mjs'; console.log(b); ``` `"dove"` is...

help wanted
P3

The current chrome extension externs in for mv2 and mv3 is the new version which is not supported by current externs ## Example ```js closure-compiler: Property scripting never defined on...

This was found during fuzzing research. Input for `$SIMPLE_OPTIMIZATIONS` ``` for(;(d_29);(true)){ ((true) + (-- (([]).length))) } ``` Stack Trace: ``` java.lang.IllegalStateException: Invalid child for DEC node. Reference node: NUMBER 0.0...

In issue #3707 I asked for support for passthrough of dynamic import in Closure Compiler. The issue was closed as support was apparently added. However it seems that in subsequent...

help wanted

``` class Test { static myTest = "abc"; } ``` fails to compile. I'm getting around this by doing ``` class Test { static get myTest() { return "abc" };...

internal-issue-created

Input: ``` // ==ClosureCompiler== // @compilation_level ADVANCED_OPTIMIZATIONS // @output_file_name default.js // @language_out ECMASCRIPT_2015 // ==/ClosureCompiler== const A = class { constructor(opts) { } }; new A(1); ``` Expected output: ```...

Version: v20220502 I use closure-compiler in ADVANCED mode and get java.lang.IllegalStateException `0 error(s), 223 warning(s), 60.6% typed java.lang.IllegalStateException at com.google.common.base.Preconditions.checkState(Preconditions.java:486) at com.google.javascript.rhino.Node.getOnlyChild(Node.java:563) at com.google.javascript.jscomp.NodeUtil.getRValueOfLValue(NodeUtil.java:5190) at com.google.javascript.jscomp.PureFunctionIdentifier.populateFunctionDefinitions(PureFunctionIdentifier.java:423) at java.util.Map.forEach(Map.java:661) at com.google.javascript.jscomp.PureFunctionIdentifier.populateDatastructuresForAnalysisTraversal(PureFunctionIdentifier.java:399)...

Compiler version: v20220405 Input code: ``` let x="test"; console.log(`${Math.random()}/${x}`); ``` Generated output with `-O ADVANCED`: ``` console.log(`${Math.random()}/${"test"}`); ``` Expected output: ``` console.log(`${Math.random()}/test`); ```

enhancement

Uses rules_jvm_external's java_export rule to mark a given java_library as an artifact for export to maven. This rule will find any dependencies that were originally fetched from maven (by looking...

When importing types using NODE resolution (i.e., via `require(…)`), Closure Compiler in some cases recognises the resulting types and in other cases does not. Consider: types.js: ```JS /** @constructor */...

triage-done