ts-swc-rollup-plugin
v1.4.2
Published
A rollup plugin for swc using ts-swc-transform
Downloads
6,421
Maintainers
Readme
ts-swc-rollup-plugin
A rollup plugin for swc using ts-swc-transform.
Pass tsconfig name
// rollup.config.js
import swc from 'ts-swc-rollup-plugin';
export default {
input: 'ABC',
output: {},
plugins: [
swc({
// All options are optional
cwd: process.cwd(), // default
tsconfig: 'tsconfig.json', // default
}),
];
}
Pass tsconfig object
// rollup.config.js
import swc from 'ts-swc-rollup-plugin';
import { getTsconfig } from 'get-tsconfig';
export default {
input: 'ABC',
output: {},
plugins: [
swc({
// All options are optional
cwd: process.cwd(), // default
tsconfig: getTsconfig(), // custom
}),
];
}