From be292fa98478590ad71ca01194866f720d3cf648 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Tue, 21 Dec 2021 03:20:25 -0500 Subject: [PATCH] feat: upgrade esbuild to 0.14.6 --- package.json | 2 +- pnpm-lock.yaml | 137 ++++++++++++++----------- test/__snapshots__/minify.test.ts.snap | 32 +++--- 3 files changed, 94 insertions(+), 77 deletions(-) diff --git a/package.json b/package.json index 96488ea2..d6e287d4 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "webpack": "^4.40.0 || ^5.0.0" }, "dependencies": { - "esbuild": "^0.14.2", + "esbuild": "^0.14.6", "joycon": "^3.0.1", "json5": "^2.2.0", "loader-utils": "^2.0.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f20703d6..d3b2514d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,7 @@ specifiers: '@types/loader-utils': ^2.0.3 '@types/webpack': ^4.41.32 css-loader: ^5.2.0 - esbuild: ^0.14.2 + esbuild: ^0.14.6 eslint: ^8.5.0 husky: ^4.3.8 jest: ^27.4.4 @@ -25,7 +25,7 @@ specifiers: webpack5: npm:webpack@^5.0.0 dependencies: - esbuild: 0.14.2 + esbuild: 0.14.6 joycon: 3.0.1 json5: 2.2.0 loader-utils: 2.0.0 @@ -48,7 +48,7 @@ devDependencies: unionfs: 4.4.0 webpack: 4.46.0 webpack-test-utils: 1.1.0_webpack@4.46.0 - webpack5: /webpack/5.65.0_esbuild@0.14.2 + webpack5: /webpack/5.65.0_esbuild@0.14.6 packages: @@ -2572,147 +2572,164 @@ packages: is-symbol: 1.0.4 dev: true - /esbuild-android-arm64/0.14.2: - resolution: {integrity: sha512-hEixaKMN3XXCkoe+0WcexO4CcBVU5DCSUT+7P8JZiWZCbAjSkc9b6Yz2X5DSfQmRCtI/cQRU6TfMYrMQ5NBfdw==} + /esbuild-android-arm64/0.14.6: + resolution: {integrity: sha512-s38gxoqFnr42VHDoN5jkvUFJpqOHf2IEki3FKeu/AZzU+FSw6yngUjNBtmkCmBfHvfCEGBCkuqciJTwfwE+YhA==} cpu: [arm64] os: [android] + requiresBuild: true dev: false optional: true - /esbuild-darwin-64/0.14.2: - resolution: {integrity: sha512-Uq8t0cbJQkxkQdbUfOl2wZqZ/AtLZjvJulR1HHnc96UgyzG9YlCLSDMiqjM+NANEy7/zzvwKJsy3iNC9wwqLJA==} + /esbuild-darwin-64/0.14.6: + resolution: {integrity: sha512-tm9Q5usB6NjbKXUbrGAdW2OKfaHmgda2jmQeqarJkVPcVnz0XEWrn3hO6PGcD9pJr/5qwizBaUH3TzvsIhRlng==} cpu: [x64] os: [darwin] + requiresBuild: true dev: false optional: true - /esbuild-darwin-arm64/0.14.2: - resolution: {integrity: sha512-619MSa17sr7YCIrUj88KzQu2ESA4jKYtIYfLU/smX6qNgxQt3Y/gzM4s6sgJ4fPQzirvmXgcHv1ZNQAs/Xh48A==} + /esbuild-darwin-arm64/0.14.6: + resolution: {integrity: sha512-W1Ytsa4EY5qlx433E2ffWnhT0plPHEWbRg+IhtkNnzQP1jaRaCNRPILUpufmmO78PY8oFx5qAT/vPf73H96R7g==} cpu: [arm64] os: [darwin] + requiresBuild: true dev: false optional: true - /esbuild-freebsd-64/0.14.2: - resolution: {integrity: sha512-aP6FE/ZsChZpUV6F3HE3x1Pz0paoYXycJ7oLt06g0G9dhJKknPawXCqQg/WMyD+ldCEZfo7F1kavenPdIT/SGQ==} + /esbuild-freebsd-64/0.14.6: + resolution: {integrity: sha512-Lb9raMwL12FZ4omr6vLlWjIhI+RdXoWEaghv0bAGEo9x1MkfEly83KiEIeJle7VFpGrHsR4OTYyJ4sztcPc+0A==} cpu: [x64] os: [freebsd] + requiresBuild: true dev: false optional: true - /esbuild-freebsd-arm64/0.14.2: - resolution: {integrity: sha512-LSm98WTb1QIhyS83+Po0KTpZNdd2XpVpI9ua5rLWqKWbKeNRFwOsjeiuwBaRNc+O32s9oC2ZMefETxHBV6VNkQ==} + /esbuild-freebsd-arm64/0.14.6: + resolution: {integrity: sha512-0xpvXhfu+Qc8uZXTvahuBfOAEIkyUa2XIEzLGV10t66svfZ9mC0ZH+kqiNLr7ETLz+P0PTExv3xtt5YoRD4DeA==} cpu: [arm64] os: [freebsd] + requiresBuild: true dev: false optional: true - /esbuild-linux-32/0.14.2: - resolution: {integrity: sha512-8VxnNEyeUbiGflTKcuVc5JEPTqXfsx2O6ABwUbfS1Hp26lYPRPC7pKQK5Dxa0MBejGc50jy7YZae3EGQUQ8EkQ==} + /esbuild-linux-32/0.14.6: + resolution: {integrity: sha512-zm7NwLrnckBqckAL41JW1Z1ddn6HRGo3e4D3aZG+NrlDDu60J2Pv/wVTTc8tEvb2MChAU0kok8InKmoPv0dp6g==} cpu: [ia32] os: [linux] + requiresBuild: true dev: false optional: true - /esbuild-linux-64/0.14.2: - resolution: {integrity: sha512-4bzMS2dNxOJoFIiHId4w+tqQzdnsch71JJV1qZnbnErSFWcR9lRgpSqWnTTFtv6XM+MvltRzSXC5wQ7AEBY6Hg==} + /esbuild-linux-64/0.14.6: + resolution: {integrity: sha512-pYRXlQmgd7kDlkAV3AJHI5u+CpQ40HKVlY2SYuxRKb18BaCLgjhihDn87QYFTcCTYQpoo12LLea6ka4HpDKi0Q==} cpu: [x64] os: [linux] + requiresBuild: true dev: false optional: true - /esbuild-linux-arm/0.14.2: - resolution: {integrity: sha512-PaylahvMHhH8YMfJPMKEqi64qA0Su+d4FNfHKvlKes/2dUe4QxgbwXT9oLVgy8iJdcFMrO7By4R8fS8S0p8aVQ==} + /esbuild-linux-arm/0.14.6: + resolution: {integrity: sha512-V2H7diFlZdHy2GUrOw6V2gJMTBSu5FrbkkIp2uwe76Z+BoqCiX+1Qs3lC7Ng0lcx4KoTmzyEW1gRm3RE6Qi83A==} cpu: [arm] os: [linux] + requiresBuild: true dev: false optional: true - /esbuild-linux-arm64/0.14.2: - resolution: {integrity: sha512-RlIVp0RwJrdtasDF1vTFueLYZ8WuFzxoQ1OoRFZOTyJHCGCNgh7xJIC34gd7B7+RT0CzLBB4LcM5n0LS+hIoww==} + /esbuild-linux-arm64/0.14.6: + resolution: {integrity: sha512-T4pL9ABEbL5NKFWkEXpIttXiCWdqvHxtkRMSGKStfk3FmI7W9qtn8cKmCxHUzg1DJ87c+FSWWOS+BmND5nSVwg==} cpu: [arm64] os: [linux] + requiresBuild: true dev: false optional: true - /esbuild-linux-mips64le/0.14.2: - resolution: {integrity: sha512-Fdwrq2roFnO5oetIiUQQueZ3+5soCxBSJswg3MvYaXDomj47BN6oAWMZgLrFh1oVrtWrxSDLCJBenYdbm2s+qQ==} + /esbuild-linux-mips64le/0.14.6: + resolution: {integrity: sha512-ZOMFyAKxOEy5zAY1dA+5XKbNzj6Olq86Pu6aDBOE7pIN7PtYeVQUw4AmQMC3JNUrT8OjiTi1/bL0HPqLJQ06Yg==} cpu: [mips64el] os: [linux] + requiresBuild: true dev: false optional: true - /esbuild-linux-ppc64le/0.14.2: - resolution: {integrity: sha512-vxptskw8JfCDD9QqpRO0XnsM1osuWeRjPaXX1TwdveLogYsbdFtcuiuK/4FxGiNMUr1ojtnCS2rMPbY8puc5NA==} + /esbuild-linux-ppc64le/0.14.6: + resolution: {integrity: sha512-vl+fAVdV2R19InpZEyLj3pSUNMHUDEp6dX5Apn9MMpIYPn+LhLoTeIVKnS+eMxoOWCH3qGLoHJ8p/9n1USinLQ==} cpu: [ppc64] os: [linux] + requiresBuild: true dev: false optional: true - /esbuild-netbsd-64/0.14.2: - resolution: {integrity: sha512-I8+LzYK5iSNpspS9eCV9sW67Rj8FgMHimGri4mKiGAmN0pNfx+hFX146rYtzGtewuxKtTsPywWteHx+hPRLDsw==} + /esbuild-netbsd-64/0.14.6: + resolution: {integrity: sha512-RGbrgvtUzYmTcnOKo97LMaTA8WnGae/mDGSiRY/9196IIxTbtY/kWnVtZp5ro0OOo2/v6tyvtKVOTljTnbXoIA==} cpu: [x64] os: [netbsd] + requiresBuild: true dev: false optional: true - /esbuild-openbsd-64/0.14.2: - resolution: {integrity: sha512-120HgMe9elidWUvM2E6mMf0csrGwx8sYDqUIJugyMy1oHm+/nT08bTAVXuwYG/rkMIqsEO9AlMxuYnwR6En/3Q==} + /esbuild-openbsd-64/0.14.6: + resolution: {integrity: sha512-31qrrCThwRf1yFe/bz7K7Edi2YP46nRgyil7ssJv9dHNdagmy5Tk/WbN/CecVQiS9+ZyrddqdyqERg+Q8xYPNg==} cpu: [x64] os: [openbsd] + requiresBuild: true dev: false optional: true - /esbuild-sunos-64/0.14.2: - resolution: {integrity: sha512-Q3xcf9Uyfra9UuCFxoLixVvdigo0daZaKJ97TL2KNA4bxRUPK18wwGUk3AxvgDQZpRmg82w9PnkaNYo7a+24ow==} + /esbuild-sunos-64/0.14.6: + resolution: {integrity: sha512-Hp2iiouX+5yi4ZGT78o15TavNFcIjv9PvZfib/Nx6i5oAcq30eIdHXZvJXse1J4IMy2UTfUwRPp4IbFuq4t8tA==} cpu: [x64] os: [sunos] + requiresBuild: true dev: false optional: true - /esbuild-windows-32/0.14.2: - resolution: {integrity: sha512-TW7O49tPsrq+N1sW8mb3m24j/iDGa4xzAZH4wHWwoIzgtZAYPKC0hpIhufRRG/LA30bdMChO9pjJZ5mtcybtBQ==} + /esbuild-windows-32/0.14.6: + resolution: {integrity: sha512-dAA64fXfwLCDTwUU3bK1RJhj/NhY/yKWrAr2lSWSqsbonAQmCf5ltO0/jKAZDv58KgOposN+pcN+QXsXsOxofA==} cpu: [ia32] os: [win32] + requiresBuild: true dev: false optional: true - /esbuild-windows-64/0.14.2: - resolution: {integrity: sha512-Rym6ViMNmi1E2QuQMWy0AFAfdY0wGwZD73BnzlsQBX5hZBuy/L+Speh7ucUZ16gwsrMM9v86icZUDrSN/lNBKg==} + /esbuild-windows-64/0.14.6: + resolution: {integrity: sha512-LONuzbp2LRC6PEt3BnRvIP9XiqLY+1UMz55rFqSRcx1hKvgwmiMVF7ZOV7Kqi5r/ejIKDmIosOhh3qy6WKqNRA==} cpu: [x64] os: [win32] + requiresBuild: true dev: false optional: true - /esbuild-windows-arm64/0.14.2: - resolution: {integrity: sha512-ZrLbhr0vX5Em/P1faMnHucjVVWPS+m3tktAtz93WkMZLmbRJevhiW1y4CbulBd2z0MEdXZ6emDa1zFHq5O5bSA==} + /esbuild-windows-arm64/0.14.6: + resolution: {integrity: sha512-3ntwiIv3EF4jJran1D6FdQLPQyxXq8+j/xtdZj/eWRxYDO8LWlm1ULEx/capZB2JS/GjKkQkmRaaMjWcRJ01wQ==} cpu: [arm64] os: [win32] + requiresBuild: true dev: false optional: true - /esbuild/0.14.2: - resolution: {integrity: sha512-l076A6o/PIgcyM24s0dWmDI/b8RQf41uWoJu9I0M71CtW/YSw5T5NUeXxs5lo2tFQD+O4CW4nBHJXx3OY5NpXg==} + /esbuild/0.14.6: + resolution: {integrity: sha512-IbaeG3srFXK2p/WPhBctu9AGcJ1O0ksBbHTYgLwLAAmbonO49p8E06R4P+4B5gVvquNDU1QUa/0wHY6sT4VDmA==} hasBin: true requiresBuild: true optionalDependencies: - esbuild-android-arm64: 0.14.2 - esbuild-darwin-64: 0.14.2 - esbuild-darwin-arm64: 0.14.2 - esbuild-freebsd-64: 0.14.2 - esbuild-freebsd-arm64: 0.14.2 - esbuild-linux-32: 0.14.2 - esbuild-linux-64: 0.14.2 - esbuild-linux-arm: 0.14.2 - esbuild-linux-arm64: 0.14.2 - esbuild-linux-mips64le: 0.14.2 - esbuild-linux-ppc64le: 0.14.2 - esbuild-netbsd-64: 0.14.2 - esbuild-openbsd-64: 0.14.2 - esbuild-sunos-64: 0.14.2 - esbuild-windows-32: 0.14.2 - esbuild-windows-64: 0.14.2 - esbuild-windows-arm64: 0.14.2 + esbuild-android-arm64: 0.14.6 + esbuild-darwin-64: 0.14.6 + esbuild-darwin-arm64: 0.14.6 + esbuild-freebsd-64: 0.14.6 + esbuild-freebsd-arm64: 0.14.6 + esbuild-linux-32: 0.14.6 + esbuild-linux-64: 0.14.6 + esbuild-linux-arm: 0.14.6 + esbuild-linux-arm64: 0.14.6 + esbuild-linux-mips64le: 0.14.6 + esbuild-linux-ppc64le: 0.14.6 + esbuild-netbsd-64: 0.14.6 + esbuild-openbsd-64: 0.14.6 + esbuild-sunos-64: 0.14.6 + esbuild-windows-32: 0.14.6 + esbuild-windows-64: 0.14.6 + esbuild-windows-arm64: 0.14.6 dev: false /escalade/3.1.1: @@ -6616,7 +6633,7 @@ packages: worker-farm: 1.7.0 dev: true - /terser-webpack-plugin/5.3.0_f592fd1abc9021af4a955c6d0afec721: + /terser-webpack-plugin/5.3.0_7335913b5bdce0b6b5633d1829de4e8e: resolution: {integrity: sha512-LPIisi3Ol4chwAaPP8toUJ3L4qCM1G0wao7L3qNv57Drezxj6+VEyySpPw4B1HSO2Eg/hDY/MNF5XihCAoqnsQ==} engines: {node: '>= 10.13.0'} peerDependencies: @@ -6632,7 +6649,7 @@ packages: uglify-js: optional: true dependencies: - esbuild: 0.14.2 + esbuild: 0.14.6 jest-worker: 27.4.5 schema-utils: 3.1.1 serialize-javascript: 6.0.0 @@ -7111,7 +7128,7 @@ packages: webpack-sources: 1.4.3 dev: true - /webpack/5.65.0_esbuild@0.14.2: + /webpack/5.65.0_esbuild@0.14.6: resolution: {integrity: sha512-Q5or2o6EKs7+oKmJo7LaqZaMOlDWQse9Tm5l1WAfU/ujLGN5Pb0SqGeVkN/4bpPmEqEP5RnVhiqsOtWtUVwGRw==} engines: {node: '>=10.13.0'} hasBin: true @@ -7142,7 +7159,7 @@ packages: neo-async: 2.6.2 schema-utils: 3.1.1 tapable: 2.2.1 - terser-webpack-plugin: 5.3.0_f592fd1abc9021af4a955c6d0afec721 + terser-webpack-plugin: 5.3.0_7335913b5bdce0b6b5633d1829de4e8e watchpack: 2.3.1 webpack-sources: 3.2.2 transitivePeerDependencies: diff --git a/test/__snapshots__/minify.test.ts.snap b/test/__snapshots__/minify.test.ts.snap index 6f3424c4..71b0bc36 100644 --- a/test/__snapshots__/minify.test.ts.snap +++ b/test/__snapshots__/minify.test.ts.snap @@ -428,17 +428,17 @@ exports[`Webpack 4 Loader + Minification minifyIdentifiers 1`] = ` constructor() { O(this, n); } - }, n = new WeakSet(), e = function() { + }, n = /* @__PURE__ */ new WeakSet(), e = function() { }, a), (x = class { constructor() { O(this, d, void 0); } - }, d = new WeakMap(), x), + }, d = /* @__PURE__ */ new WeakMap(), x), (y = class { - }, l = new WeakMap(), O(y, l, void 0), y), + }, l = /* @__PURE__ */ new WeakMap(), O(y, l, void 0), y), (u = class { - }, c = new WeakSet(), A = function() { + }, c = /* @__PURE__ */ new WeakSet(), A = function() { }, O(u, c), u), 1e9 ]; @@ -610,17 +610,17 @@ exports[`Webpack 4 Loader + Minification minifySyntax 1`] = ` constructor() { __privateAdd(this, _x); } - }, _x = new WeakSet(), x_fn = function() { + }, _x = /* @__PURE__ */ new WeakSet(), x_fn = function() { }, _b), (_c = class { constructor() { __privateAdd(this, _x2, void 0); } - }, _x2 = new WeakMap(), _c), + }, _x2 = /* @__PURE__ */ new WeakMap(), _c), (_d = class { - }, _x3 = new WeakMap(), __privateAdd(_d, _x3, void 0), _d), + }, _x3 = /* @__PURE__ */ new WeakMap(), __privateAdd(_d, _x3, void 0), _d), (_e = class { - }, _x4 = new WeakSet(), x_fn2 = function() { + }, _x4 = /* @__PURE__ */ new WeakSet(), x_fn2 = function() { }, __privateAdd(_e, _x4), _e), 1e9 ]; @@ -1086,17 +1086,17 @@ exports[`Webpack 5 Loader + Minification minifyIdentifiers 1`] = ` constructor() { i(this, t); } - }, t = new WeakSet(), r = function() { + }, t = /* @__PURE__ */ new WeakSet(), r = function() { }, a), (f = class { constructor() { i(this, c, void 0); } - }, c = new WeakMap(), f), + }, c = /* @__PURE__ */ new WeakMap(), f), (_ = class { - }, l = new WeakMap(), i(_, l, void 0), _), + }, l = /* @__PURE__ */ new WeakMap(), i(_, l, void 0), _), (s = class { - }, n = new WeakSet(), q = function() { + }, n = /* @__PURE__ */ new WeakSet(), q = function() { }, i(s, n), s), 1e9 ]; @@ -1242,17 +1242,17 @@ exports[`Webpack 5 Loader + Minification minifySyntax 1`] = ` constructor() { __privateAdd(this, _x); } - }, _x = new WeakSet(), x_fn = function() { + }, _x = /* @__PURE__ */ new WeakSet(), x_fn = function() { }, _b), (_c = class { constructor() { __privateAdd(this, _x2, void 0); } - }, _x2 = new WeakMap(), _c), + }, _x2 = /* @__PURE__ */ new WeakMap(), _c), (_d = class { - }, _x3 = new WeakMap(), __privateAdd(_d, _x3, void 0), _d), + }, _x3 = /* @__PURE__ */ new WeakMap(), __privateAdd(_d, _x3, void 0), _d), (_e = class { - }, _x4 = new WeakSet(), x_fn2 = function() { + }, _x4 = /* @__PURE__ */ new WeakSet(), x_fn2 = function() { }, __privateAdd(_e, _x4), _e), 1e9 ];