mirror of
https://github.com/swc-project/swc.git
synced 2025-01-03 19:14:01 +03:00
5ce4e1e927
swc_ecma_parser: - Use correct position for comments in ```ts function Bar() { const [foo, setFoo] = useState(0); React.useEffect(() => { // @refresh reset }); return <h1>{foo}</h1>; } ```
7 lines
150 B
TypeScript
7 lines
150 B
TypeScript
function Bar() {
|
|
const [foo, setFoo] = useState(0);
|
|
React.useEffect(() => {
|
|
// @refresh reset
|
|
});
|
|
return <h1>{ foo } < /h1>;
|
|
} |