Skip to content

Releases: SukkaW/rollup-plugin-swc

0.8.0

11 Dec 13:01
Compare
Choose a tag to compare
  • Add new option extensions.
    • Along with include / exclude, this provides a granular way to specify the files that will be processed by the plugin.
    • For extensionless imports, the plugin will search and resolve files for extensions in the order specified.

0.7.0

19 Oct 06:12
Compare
Choose a tag to compare
  • Add Rollup 3.0.0 support.
    • rollup-plugin-swc now supports both Rollup 2 and Rollup 3.

0.6.0

11 Sep 16:03
Compare
Choose a tag to compare
  • Supports extends from tsconfig.json/jsconfig.json.
  • Supports passing a full path of a tsconfig.json/jsconfig.json file to tsconfig option.
  • When finding the nearest tsconfig.json/jsconfig.json from the source file that is currently being transpiled, rollup-plugin-swc's behavior is now aligned with tsc.

0.5.0

02 Sep 09:30
Compare
Choose a tag to compare
  • 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.

0.4.2

02 Sep 05:48
Compare
Choose a tag to compare

Remove unused dependency (@huozhi #20)

0.4.1

25 Aug 13:00
Compare
Choose a tag to compare

0.4.0

25 Aug 12:06
Compare
Choose a tag to compare
  • Automatically pass rollup's file id to swc's filename option.
    • It should help swc find the .swcrc, and also enables some other swc's functionality
  • Automatically mapping .ts/.tsx to .mjs/.js/.cjs/.jsx.
    • When using native ESM, import path requires .js/.jsx extension for TypeScript with "moduleResolution": "Node16". So rollup-plugin-swc will now try all possible extensions.
    • E.g. if you write import Foo from 'foo.jsx', rollup-plugin-swc will search for foo.ts, foo.tsx, foo.mjs, foo.js, foo.jsx.
    • PRs are welcome if you want to make rollup-plugin-swc more spec compliant.

0.3.0

16 Apr 20:03
Compare
Choose a tag to compare
  • Completely disable swc minify during rollup's transform phase.
    • Now all minify will be done in rollup's renderChunk phase, which is a one-pass process, resulting in even faster build performance.
  • Remove the workaround for rollup's virtual module that is introduced in 0.1.2 (#1)
    • swc has fixed the issue, and the corresponding test case has been added in swc-project/swc#4255
    • The peerDependencies of swc has been updated to >=1.2.165. You will need to bump the version of swc to 1.2.165 or higher after this release.

0.2.0

22 Jan 12:30
Compare
Choose a tag to compare
  • Standalone minify plugin
  • Support reading baseUrl and paths from your tsconfig.json (and jsconfig.json).

0.1.4

03 Dec 21:50
Compare
Choose a tag to compare
  • Add .mjs extension support
  • Export a default for use with rollup's --configPlugin