Unverified Commit 979e9bd9 authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

Update swc (#30404)



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


This includes

 - https://github.com/swc-project/swc/pull/2530
   - Strip out `declare`-d class properties properly.

 - https://github.com/swc-project/swc/pull/2538
   - Marks method properties as a scope while renaming variables.
   - Fix regression of object-rest pattern handler.
   - Improve name mangler a bit, by marking it as a scope.

 - https://github.com/swc-project/swc/pull/2551
   - Fix a bug of the property inlining pass which can break many react apps.

There is a minor regression in the minifier due to added aliasing check.


(I manually selected crates to update)
parent 54ae78f9
...@@ -1831,9 +1831,9 @@ dependencies = [ ...@@ -1831,9 +1831,9 @@ dependencies = [
[[package]] [[package]]
name = "swc_ecma_minifier" name = "swc_ecma_minifier"
version = "0.46.2" version = "0.46.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5e176784d0e18a806e8d0b056d5bef66fe00549969d29c511cbd511e44962a3" checksum = "6abaca75252c8eb4f362580db9b4e34f25db28aa834c86ad894d4d161e647005"
dependencies = [ dependencies = [
"ahash", "ahash",
"indexmap", "indexmap",
...@@ -1926,9 +1926,9 @@ dependencies = [ ...@@ -1926,9 +1926,9 @@ dependencies = [
[[package]] [[package]]
name = "swc_ecma_transforms_base" name = "swc_ecma_transforms_base"
version = "0.41.1" version = "0.41.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d41d430cffc0739c15fd923d20a4c19fb87c46027f4d7013a067118995b8697f" checksum = "29cb0f3b2640773d4a175f159cf8e415c5d0497a9831579a3a2bb3c12c2d40b8"
dependencies = [ dependencies = [
"once_cell", "once_cell",
"phf", "phf",
...@@ -1959,9 +1959,9 @@ dependencies = [ ...@@ -1959,9 +1959,9 @@ dependencies = [
[[package]] [[package]]
name = "swc_ecma_transforms_compat" name = "swc_ecma_transforms_compat"
version = "0.47.1" version = "0.47.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "952a132b93d850158fa278e094d1332ebf3b6ab0cf96135d6f320dc012f40a45" checksum = "848a3df0611dd2c180a5c0265472b08583fae329dc6da2c79f4933be201940de"
dependencies = [ dependencies = [
"ahash", "ahash",
"arrayvec", "arrayvec",
...@@ -2107,9 +2107,9 @@ dependencies = [ ...@@ -2107,9 +2107,9 @@ dependencies = [
[[package]] [[package]]
name = "swc_ecma_transforms_typescript" name = "swc_ecma_transforms_typescript"
version = "0.56.0" version = "0.56.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9c0c80efa7f1106aec6eaf77c26ce0fa968cf9dacd87b6d0da4c7825d363f2c" checksum = "08e24e661be9fd9018ca10d6394db3e0f970c8c7fef6649740a1d96e54f8bc7d"
dependencies = [ dependencies = [
"serde", "serde",
"swc_atoms", "swc_atoms",
......
...@@ -26,7 +26,7 @@ function _nonIterableRest() { ...@@ -26,7 +26,7 @@ function _nonIterableRest() {
function _slicedToArray(a, b) { function _slicedToArray(a, b) {
return _arrayWithHoles(a) || _iterableToArrayLimit(a, b) || _nonIterableRest(); return _arrayWithHoles(a) || _iterableToArrayLimit(a, b) || _nonIterableRest();
} }
var foo = _slicedToArray(a, 1)[0], Foo = function() { var _other = _slicedToArray(a, 1), foo = _other[0], Foo = function() {
"use strict"; "use strict";
_classCallCheck(this, Foo); _classCallCheck(this, Foo);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment