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

[This comment](https://github.com/google/closure-compiler/issues/3707#issuecomment-834744655) appears to indicate pass-through for `import.meta` is supported, but it still doesn't seem to work in v20210601. Input test.js: `console.log(import.meta.url);` Command line: `java -jar ./closure-compiler.jar --compilation_level SIMPLE --language_in...

triage-done

Please at least support a basic passthrough for dynamic import for Closure Compiler. In the current version, any presence of dynamic import at all causes a compilation failure. This causes...

As of Safari 15, all major browsers will support top-level await. However it looks like Closure Compiler doesn't support this. (It also appears to be missing a specific flag to...

triage-done

The following code throws an error: ```js const Worker = 'foo'; ``` For reference, here's what the error looks like: ``` stdin:1: ERROR - Duplicate let / const / class...

triage-done
internal-issue-created

When building the following code: ([appspot repro](https://closure-compiler.appspot.com/home#code%3D%252F%252F%2520%253D%253DClosureCompiler%253D%253D%250A%252F%252F%2520%2540compilation_level%2520ADVANCED_OPTIMIZATIONS%250A%252F%252F%2520%2540output_file_name%2520default.js%250A%252F%252F%2520%2540formatting%2520pretty_print%250A%252F%252F%2520%2540language_in%2520ES_NEXT%250A%252F%252F%2520%2540language_out%2520ES_NEXT%250A%252F%252F%2520%2540debug%2520true%250A%252F%252F%2520%253D%253D%252FClosureCompiler%253D%253D%250A%250A%252F%252Fasync%2520functions%250Aasync%2520function%2520waitLog(message)%257B%250A%2509console.log(message)%253B%250A%257D%250Aasync%2520function%2520wrapperFnWait(message)%257B%250A%2509await%2520waitLog(message)%253B%250A%257D%250A%250A%250A%252F%252Fsynchronous%2520functions%250Afunction%2520directLog(message)%257B%250A%2509console.log(message)%253B%250A%257D%250Afunction%2520wrapperFnDirect(message)%257B%250A%2509directLog(message)%253B%250A%257D%250A%250A%250A%252F%252Fmain%2520function%250Aasync%2520function%2520main()%257B%250A%2509await%2520wrapperFnWait(%2522hello%2522)%253B%250A%2509wrapperFnDirect(%2522hello2%2522)%253B%250A%257D%250Amain()%253B)) ```js // ==ClosureCompiler== // @compilation_level ADVANCED_OPTIMIZATIONS // @output_file_name default.js // @formatting pretty_print // @language_in ES_NEXT // @language_out ES_NEXT // @debug true // ==/ClosureCompiler==...

A key component to avoiding circular dependencies is the option to reference a type without importing the module. Example: ``` js import ModelEvent from './model-event'; export default class Model extends...

Documentation
triage-done

![2020-12-10_16-56](https://user-images.githubusercontent.com/25976749/101796078-dee10c80-3b08-11eb-9f14-277ec54e1de1.png) I've just typed: `bazelisk build //:compiler_unshaded_deploy.jar` and all this bad magic happened... ..but it is still compilng, but is it "ok" if there are 404's ? Unfortunately an error...

Since upgrading between the most recent releases (```closure-compiler-v20210106.jar``` to ```closure-compiler-v20210202.jar```) I notice a regression and a loss of useful information in the naming out of some ```--debug``` output. Here's an...

Zone.js needs async functions to be transpiled. Other libraries like OpenTelemetry and Angular need zone.js. It would be nice if there was a command line flag to enable rewriteAsyncFunctions even...

feat

File `example.js`: ``` /** @suppress {es5Strict} */ function hello() { var a = "\306"; } ``` Command: `java -jar closure-compiler.jar example.js` Output: ``` example.js:3:10: WARNING - [JSC_INVALID_OCTAL_LITERAL] This style of...