rollup-plugin-swc3
Advanced tools
Changelog
0.8.0
extensions
.
include
/ exclude
, this provides a granular way to specify the files that will be processed by the plugin.Changelog
0.7.0
rollup-plugin-swc
now supports both Rollup 2 and Rollup 3.Changelog
0.6.0
extends
from tsconfig.json
/jsconfig.json
.tsconfig.json
/jsconfig.json
file to tsconfig
option.tsconfig.json
/jsconfig.json
from the source file that is currently being transpiled, rollup-plugin-swc
's behavior is now aligned with tsc
.Changelog
0.5.0
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
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
.
rollup-plugin-swc
will also set jsx.tramsform.react.development
to true
if tsconfig.json
specifies jsx: react-jsxdev
.Changelog
0.4.0
id
to swc's filename
option.
.swcrc
, and also enables some other swc's functionality.ts/.tsx
to .mjs/.js/.cjs/.jsx
.
.js/.jsx
extension for TypeScript with "moduleResolution": "Node16"
. So rollup-plugin-swc will now try all possible extensions.import Foo from 'foo.jsx'
, rollup-plugin-swc will search for foo.ts
, foo.tsx
, foo.mjs
, foo.js
, foo.jsx
.