mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
69186eb74d
node-swc: - Use proper field name in `ObjectPattern`. (#1886) swc_ecma_codegen: - Fix codegen of private properties. (#1898) swc_ecma_transforms_compat: - Fix optional chaining expressions in a single-line arrow expression. (#1836) - `regenerator`: Preserve `ExportDefaultDecl`. (#1799) swc_ecma_transforms_module: - Fix `export default function`. (#1799)
8 lines
159 B
JavaScript
8 lines
159 B
JavaScript
import React from 'react';
|
|
|
|
export default function Foo() {
|
|
return <div onClick={async (e) => { await doSomething(); }}></div>
|
|
}
|
|
|
|
Foo.displayName = "Foo";
|