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
rollup-plugin-swc now also respects jsx option from tsconfig.json when no corresponding swc option is provided.
jsxImportSource from tsconfig.json will be passed to swc's jsc.transform.react.importSource
if tsconfig.json specifies jsx: react-jsx or jsx: react-jsxdev, rollup-plugin-swc will set jsx.tramsform.react.runtime to automatic, otherwise it will be classic.
Currently, swc doesn't support preserving JSX, and will always transpile JSX into javascript code.
rollup-plugin-swc will also set jsx.tramsform.react.development to true if tsconfig.json specifies jsx: react-jsxdev.