Releases: SukkaW/rollup-plugin-swc
Releases · SukkaW/rollup-plugin-swc
0.8.2
0.8.1
0.8.0
0.7.0
0.6.0
- Supports
extends
fromtsconfig.json
/jsconfig.json
. - Supports passing a full path of a
tsconfig.json
/jsconfig.json
file totsconfig
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 withtsc
.
0.5.0
rollup-plugin-swc
now also respectsjsx
option fromtsconfig.json
when no corresponding swc option is provided.jsxImportSource
fromtsconfig.json
will be passed to swc'sjsc.transform.react.importSource
- if
tsconfig.json
specifiesjsx: react-jsx
orjsx: react-jsxdev
,rollup-plugin-swc
will setjsx.tramsform.react.runtime
toautomatic
, otherwise it will beclassic
.- Currently, swc doesn't support preserving JSX, and will always transpile JSX into javascript code.
rollup-plugin-swc
will also setjsx.tramsform.react.development
totrue
iftsconfig.json
specifiesjsx: react-jsxdev
.
0.4.2
0.4.1
- Fix some minor issues
- Changelog for 0.4.0
0.4.0
- Automatically pass rollup's file
id
to swc'sfilename
option.- It should help swc find the
.swcrc
, and also enables some other swc's functionality
- It should help swc find the
- 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 forfoo.ts
,foo.tsx
,foo.mjs
,foo.js
,foo.jsx
. - PRs are welcome if you want to make rollup-plugin-swc more spec compliant.
- When using native ESM, import path requires
0.3.0
- 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.
- Now all minify will be done in rollup's
- 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.