Closure Compiler v20230206 released

17 views
Skip to first unread message

lha...@google.com

unread,
Feb 10, 2023, 3:50:35 PM2/10/23
to Closure Compiler Discuss
Downloads:
Maven: http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22closure-compiler%22
NPM: https://www.npmjs.com/package/google-closure-compiler

Release Notes:
https://github.com/google/closure-compiler/wiki/Releases

February 6, 2023 (v20230206)
  • Correct the name of SourceBuffer mode property from externs.

  • Fix behavior of Array.prototype.flat() and Array.prototype.flatMap() for sparse arrays.

  • Avoid using regex parser unless bundling or pruning unused inputs. This is expected to be a small speedup and not a breaking change.

  • Define --browser_featureset_year 2023 based on Chromium 108, Firefox 108 (jinx!), and Safari 16.2. Due to a missing feature in Safari, this will still emit ES2021, but userland code can still switch off of an expectation of more recent browsers.

    For more info on newly supported features, see: https://caniuse.com/?compare=chrome+96,safari+15,firefox+95,chrome+108,safari+16.2,firefox+108&compareCats=all

  • Removed multiple deprecated compiler options: setInlineFunctions(boolean) was replaced by setInlineFunctions(Reach), setMoveFunctionDeclarations was replaced by setRewriteGlobalDeclarationsForTryCatchWrapping, and setCssRenamingWhitelist was replaced by setCssRenamingSkiplist

  • Speed up bundle generation by only relying on the regex-based fast parse. This is not expected to be a behavioral change.

Reply all
Reply to author
Forward
0 new messages