Skip to content

Commit 85e3750

Browse files
Update to latest closure compiler (#435)
1 parent bfb50ab commit 85e3750

15 files changed

+60
-64
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"acorn": "7.3.1",
4040
"acorn-walk": "7.1.1",
4141
"estree-walker": "2.0.1",
42-
"google-closure-compiler": "20200517.0.0",
42+
"google-closure-compiler": "20210808.0.0",
4343
"magic-string": "0.25.7",
4444
"uuid": "8.1.0"
4545
},
@@ -90,7 +90,7 @@
9090
"singleQuote": true
9191
},
9292
"volta": {
93-
"node": "14.4.0",
93+
"node": "16.6.1",
9494
"yarn": "1.22.4"
9595
},
9696
"publishConfig": {
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class a{constructor(b){this.a=b}console(){console.log(this.a)}}export default a
1+
class a{constructor(b){this.g=b}console(){console.log(this.g)}}export default a
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class a{constructor(b){this.a=b}console(){console.log(this.a)}}export default a
1+
class a{constructor(b){this.g=b}console(){console.log(this.g)}}export default a
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class b{constructor(a){this.a=a}console(){console.log(this.a)}}function bar(){console.log(1)};function baz(a){console.log(a)};var foo=1;export{b as ExportedClass,bar,baz,foo}
1+
class b{constructor(a){this.g=a}console(){console.log(this.g)}}function bar(){console.log(1)};function baz(a){console.log(a)};var foo=1;export{b as ExportedClass,bar,baz,foo}

test/export-transpilation/fixtures/named-constant.esm.es5.js

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/export-transpilation/fixtures/named-function.esm.es5.js

+9-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class a{constructor(b){this.a=b}console(){console.log(this.a)}}export var Exported=a
1+
class a{constructor(b){this.g=b}console(){console.log(this.g)}}export var Exported=a
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'use strict';var wrapper=function(a){a.a=function(b){document.body.innerHTML="hello "+b};return a}({})
1+
'use strict';var wrapper=function(a){a.g=function(b){document.body.innerHTML="hello "+b};return a}({})
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'use strict';var wrapper=function(a){a.greeting=function(a){document.body.innerHTML="hello "+a};return a}({})
1+
'use strict';var wrapper=function(a){a.greeting=function(b){document.body.innerHTML="hello "+b};return a}({})
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'use strict';var wrapper=function(a){a.greeting=function(a){document.body.innerHTML="hello "+a};return a}({})
1+
'use strict';var wrapper=function(a){a.greeting=function(b){document.body.innerHTML="hello "+b};return a}({})

test/iife/fixtures/iife-wrapped-safely.iife.pretty.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
var wrapper = function(a) {
3-
a.greeting = function(a) {
4-
document.body.innerHTML = "hello " + a;
3+
a.greeting = function(b) {
4+
document.body.innerHTML = "hello " + b;
55
};
66
return a;
77
}({})
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export function exported(){import("./dynamic-imported-67216f69.js").then(a=>a.a())}
1+
export function exported(){import("./dynamic-imported-67216f69.js").then(a=>a.g())}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
var a=Object.freeze({__proto__:null,c:1,a:2,b:()=>console.log("foo")});console.log(...a)
1+
var a=Object.freeze({__proto__:null,i:1,g:2,h:()=>console.log("foo")});console.log(...a)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
class a{constructor(b){this.a=b}console(){console.log(this.a)}}export var ExportThis=a
1+
class a{constructor(b){this.g=b}console(){console.log(this.g)}}export var ExportThis=a

yarn.lock

+28-34
Original file line numberDiff line numberDiff line change
@@ -1809,46 +1809,40 @@ globby@^6.1.0:
18091809
pify "^2.0.0"
18101810
pinkie-promise "^2.0.0"
18111811

1812-
google-closure-compiler-java@^20200517.0.0:
1813-
version "20200517.0.0"
1814-
resolved "https://registry.yarnpkg.com/google-closure-compiler-java/-/google-closure-compiler-java-20200517.0.0.tgz#778370c22273c9085f4cf959ce063f8f112c02ac"
1815-
integrity sha512-JVZBiyyXwcYi6Yc3lO6dF2hMLJA4OzPm4/mgsem/tF1vk2HsWTnL3GTaBsPB2ENVZp0hoqsd4KgpPiG9ssNWxw==
1816-
1817-
google-closure-compiler-js@^20200517.0.0:
1818-
version "20200517.0.0"
1819-
resolved "https://registry.yarnpkg.com/google-closure-compiler-js/-/google-closure-compiler-js-20200517.0.0.tgz#9cb0861f764073d1c4d3b7453b74073ccb1ecfb1"
1820-
integrity sha512-dz6dOUHx5nhdIqMRXacAYS8aJfLvw4IKxGg28Hq/zeeDPHlX3P3iBK20NgFDfT8zdushThymtMqChSy7C5eyfA==
1821-
1822-
google-closure-compiler-linux@^20200517.0.0:
1823-
version "20200517.0.0"
1824-
resolved "https://registry.yarnpkg.com/google-closure-compiler-linux/-/google-closure-compiler-linux-20200517.0.0.tgz#2b9ecb634130060174aff5c52329a694ea4be68b"
1825-
integrity sha512-S5xPh6TtP+ESzZrmQLcDDqtZAsCVTbdI4VS98wQlN6IMZTd94nAnOCg9mrxQNAgop2t4sdsv/KuH0BGPUWEZ+w==
1826-
1827-
google-closure-compiler-osx@^20200517.0.0:
1828-
version "20200517.0.0"
1829-
resolved "https://registry.yarnpkg.com/google-closure-compiler-osx/-/google-closure-compiler-osx-20200517.0.0.tgz#9394e9a2fd97e3729fc3bd2abcffff6aab2cfcaa"
1830-
integrity sha512-FWIcsKqLllLjdOBZd7azijVaObydgRd0obVNi63eUfC5MX6T4qxKumGCyor2UCNY6by2ESz+PlGqCFzFhZ6b2g==
1831-
1832-
google-closure-compiler-windows@^20200517.0.0:
1833-
version "20200517.0.0"
1834-
resolved "https://registry.yarnpkg.com/google-closure-compiler-windows/-/google-closure-compiler-windows-20200517.0.0.tgz#c5cdde438c29458666a83358567b12072924ed6c"
1835-
integrity sha512-UXhjRGwS8deTkRla/riyVq3psscgMuw78lepEPtq5NgbumgJzY2+IQP9q+4MVOfJW58Rv0JUWKAFOnBBSZWcAQ==
1836-
1837-
1838-
version "20200517.0.0"
1839-
resolved "https://registry.yarnpkg.com/google-closure-compiler/-/google-closure-compiler-20200517.0.0.tgz#6c47f99fc1be59bd4f9e23c5a8f2e66d64b54143"
1840-
integrity sha512-80W9zBS9Ajk1T5InWCfsoPohDmo5T1AAyw1rHh5+dgb/jPgwC65KhY+oJozTncf+/7tyQHJXozTARwhSlBUcMg==
1812+
google-closure-compiler-java@^20210808.0.0:
1813+
version "20210808.0.0"
1814+
resolved "https://registry.yarnpkg.com/google-closure-compiler-java/-/google-closure-compiler-java-20210808.0.0.tgz#9722073e2ace0ed1a9934423e6277c9994418e84"
1815+
integrity sha512-7dEQfBzOdwdjwa/Pq8VAypNBKyWRrOcKjnNYOO9gEg2hjh8XVMeQzTqw4uANfVvvANGdE/JjD+HF6zHVgLRwjg==
1816+
1817+
google-closure-compiler-linux@^20210808.0.0:
1818+
version "20210808.0.0"
1819+
resolved "https://registry.yarnpkg.com/google-closure-compiler-linux/-/google-closure-compiler-linux-20210808.0.0.tgz#42b844cef30cce6570d21f5d75c71f1af36fc070"
1820+
integrity sha512-byKi5ITUiWRvEIcQo76i1siVnOwrTmG+GNcBG4cJ7x8IE6+4ki9rG5pUe4+DOYHkfk52XU6XHt9aAAgCcFDKpg==
1821+
1822+
google-closure-compiler-osx@^20210808.0.0:
1823+
version "20210808.0.0"
1824+
resolved "https://registry.yarnpkg.com/google-closure-compiler-osx/-/google-closure-compiler-osx-20210808.0.0.tgz#6fe601c80d19a998d2703de6bb5a8c4d41f75e24"
1825+
integrity sha512-iwyAY6dGj1FrrBdmfwKXkjtTGJnqe8F+9WZbfXxiBjkWLtIsJt2dD1+q7g/sw3w8mdHrGQAdxtDZP/usMwj/Rg==
1826+
1827+
google-closure-compiler-windows@^20210808.0.0:
1828+
version "20210808.0.0"
1829+
resolved "https://registry.yarnpkg.com/google-closure-compiler-windows/-/google-closure-compiler-windows-20210808.0.0.tgz#f907fa046d8a25d820485cb4482fbd5bada9cf03"
1830+
integrity sha512-VI+UUYwtGWDYwpiixrWRD8EklHgl6PMbiEaHxQSrQbH8PDXytwaOKqmsaH2lWYd5Y/BOZie2MzjY7F5JI69q1w==
1831+
1832+
1833+
version "20210808.0.0"
1834+
resolved "https://registry.yarnpkg.com/google-closure-compiler/-/google-closure-compiler-20210808.0.0.tgz#0638e71f1073f71682277200db71d0ea05b3de1d"
1835+
integrity sha512-+R2+P1tT1lEnDDGk8b+WXfyVZgWjcCK9n1mmZe8pMEzPaPWxqK7GMetLVWnqfTDJ5Q+LRspOiFBv3Is+0yuhCA==
18411836
dependencies:
18421837
chalk "2.x"
1843-
google-closure-compiler-java "^20200517.0.0"
1844-
google-closure-compiler-js "^20200517.0.0"
1838+
google-closure-compiler-java "^20210808.0.0"
18451839
minimist "1.x"
18461840
vinyl "2.x"
18471841
vinyl-sourcemaps-apply "^0.2.0"
18481842
optionalDependencies:
1849-
google-closure-compiler-linux "^20200517.0.0"
1850-
google-closure-compiler-osx "^20200517.0.0"
1851-
google-closure-compiler-windows "^20200517.0.0"
1843+
google-closure-compiler-linux "^20210808.0.0"
1844+
google-closure-compiler-osx "^20210808.0.0"
1845+
google-closure-compiler-windows "^20210808.0.0"
18521846

18531847
got@^9.6.0:
18541848
version "9.6.0"

0 commit comments

Comments
 (0)