closure-compiler
closure-compiler copied to clipboard
A JavaScript checker and optimizer.
Would you please add logical assignment operators as the proposal is in stage 4: ``` a ||= b; a &&= b; a ??= b; ``` https://github.com/tc39/proposal-logical-assignment
# Issue I have rolled an ES module into one large file, including thousands of NPM deps (very large AST), and I am feeding it to the compiler. The output...
lets say i have the following class: ``` class Object3D extends EventDispatcher { constructor() { super(); const quaternion = new Quaternion(); Object.defineProperties( this, { quaternion: { configurable: true, enumerable: true,...
Create two modules: ```js // module 1 /** @constructor */ function Point(x, y) { this.x = x; this.y = y; } var ZERO = new Point(0, 0); ``` ```js //...
There appears to be an issue with `module_resolution=node` when using .mjs files. In my sample project I am unable to get Closure to resolve relative short hand module imports like...
## Context I would like to compile a node based project which dependencies include `util` and other node builtins. However, the compiler won't load them despite using the `--process_common_js_modules` and...
According to the message at [1], future versions of Closure Compiler binaries will no longer distributed from https://dl.google.com/closure-compiler/ URLs. When comparing the last published version in that endpoint at [2],...
java.lang.RuntimeException: INTERNAL COMPILER ERROR. Please report this problem. ``` ERROR: Program threw uncaught exception with args: JsCompiler --checks_only --incremental_check_mode CHECK_IJS --warning_level VERBOSE --jscomp_off reportUnknownTypes --language_in ECMASCRIPT_2017 --language_out ECMASCRIPT5 --js_output_file bazel-out/k8-fastbuild/bin/protobufs/closure_lib_google_typecheck...
Suppose `collection.js`: ```js export class A {} export default {A} ``` and `index.js`: ```js import {A} from './collection.js'; import collection from './collection.js'; class B extends A {} class C extends...
tl,dr: I'm getting `function let()` in my advanced compilation output, which is breaking runtime on older browsers. One of my project's target platform is an old browser not permitting the...