Unverified Commit 3146ed37 authored by Donny/강동윤's avatar Donny/강동윤 Committed by GitHub

Update swc (#31639)



The purpose of this PR is to apply

 - https://github.com/swc-project/swc/pull/2779
   - Fixes #31291.
   - Not sure if it's fully fixed, but fixes some bugs related to #31391 

 - https://github.com/swc-project/swc/pull/2818
   - Fixes #31627


I'll undraft this PR once https://github.com/swc-project/swc/pull/2818 is fixed.
parent f52211ba
......@@ -1993,9 +1993,9 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
version = "0.51.0"
version = "0.51.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7fbd027af67de996ed8730195067df8e830d67c11fbdca050689718e3baa3b6"
checksum = "3403abf2d19dc33ba72f8aed71b1ebfd5ae55a03149e8fa7b73b8c054b17571b"
dependencies = [
"ahash",
"indexmap",
......@@ -2108,9 +2108,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_classes"
version = "0.30.0"
version = "0.30.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07a73afb9f2760dab0a7a23181691cb0b785058e3fcf75e8da25fed45208ec84"
checksum = "709296c35b892ad9973789f27ec522afb92e790d5db7f6378c7ef669616b8288"
dependencies = [
"swc_atoms",
"swc_common",
......@@ -2122,9 +2122,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_compat"
version = "0.52.5"
version = "0.52.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89a53176bfa44f5bb092cda315ac34a23fe26d62a93c8deec0cb7df810f85385"
checksum = "704f6bf26236ddc569c553b00057832925fc8f741521f578b24f716808a68b19"
dependencies = [
"ahash",
"arrayvec",
......
import { useEffect } from 'react'
import { select, selectAll } from 'd3-selection'
export default function Home() {
useEffect(() => {
new MyClass()
}, [])
return (
<svg>
<g className="group">
<path />
<path />
</g>
<g className="group">
<path />
<path />
</g>
</svg>
)
}
class MyClass {
constructor() {
selectAll('.group').each(function () {
select(this).selectAll('path')
})
}
}
\ No newline at end of file
import { useEffect } from 'react';
import { select, selectAll } from 'd3-selection';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
export default function Home() {
useEffect(function() {
new MyClass();
}, []);
return(/*#__PURE__*/ React.createElement("svg", null, /*#__PURE__*/ React.createElement("g", {
className: "group"
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null)), /*#__PURE__*/ React.createElement("g", {
className: "group"
}, /*#__PURE__*/ React.createElement("path", null), /*#__PURE__*/ React.createElement("path", null))));
};
var MyClass = function MyClass() {
"use strict";
_classCallCheck(this, MyClass);
selectAll('.group').each(function() {
select(this).selectAll('path');
});
};
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