You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{useState}from"react";importreactLogofrom"./assets/react.svg";import"./App.css";functionApp(): JSX.Element{const[count,setCount]=useState(0);return(<divclassName="App"><div><ahref="https://reactjs.org"target="_blank"rel="noreferrer"><imgsrc={reactLogo}className="logo react"alt="React logo"/></a></div><h1>Rspack+React+TypeScript</h1><divclassName="card"><buttontype="button"onClick={()=>setCount(count=>count+1)}>countis{count}</button><p>Edit<code>src/App.tsx</code> and save to test HMR</p></div><pclassName="read-the-docs">ClickontheRspackandReactlogostolearnmore</p></div>);}exportdefaultApp;
import{useState}from"react";// unusedimportreactLogofrom"./assets/react.svg";// unused and would emit type errorimport"./App.css";declarefunctionApp(): JSX.Element;exportdefaultApp;
Describe the feature
some differences between swc and tsc
source code
expected output
the same as tsc
actual output
Babel plugin or link to the feature description
No response
Additional context
Related links
https://github.com/oxc-project/oxc/blob/0bb1aa4c6472d2553154fe2f1d8939abb69ed915/crates/oxc_isolated_declarations/src/lib.rs#L359
web-infra-dev/rspack#8097
The text was updated successfully, but these errors were encountered: