mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
57d1aaf80f
swc_ecma_codegen: - Fix codegen of `\r\n` in template literals when targeting `es2020`. (denoland/deno#10282) swc_ecma_parser: - Support non-identifier getters in typescript. (#1708) swc_ecma_transforms_typescript: - Skip `export {}` if it was not a module. (#1706) - Skip `export {}` if the result is module without it. (#1706)
8 lines
183 B
TypeScript
8 lines
183 B
TypeScript
function Bar() {
|
|
const [foo, setFoo] = useState(0);
|
|
React.useEffect(()=>{
|
|
// @refresh reset
|
|
});
|
|
return(/*#__PURE__*/ React.createElement("h1", null, foo, " "));
|
|
}
|