Skip to content

0.5.0

Compare
Choose a tag to compare
@SukkaW SukkaW released this 02 Sep 09:30
· 112 commits to master since this release
  • 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.