mirror of
https://github.com/kevinsqi/react-circular-progressbar.git
synced 2025-12-08 20:25:50 +00:00
28 lines
538 B
JavaScript
28 lines
538 B
JavaScript
import typescript from 'rollup-plugin-typescript2';
|
|
|
|
import pkg from './package.json';
|
|
|
|
export default [
|
|
{
|
|
input: 'src/index.ts',
|
|
external: [...Object.keys(pkg.dependencies || {}), ...Object.keys(pkg.peerDependencies || {})],
|
|
output: [
|
|
{
|
|
file: pkg.main,
|
|
format: 'cjs',
|
|
sourcemap: true,
|
|
},
|
|
{
|
|
file: pkg.module,
|
|
format: 'es',
|
|
sourcemap: true,
|
|
},
|
|
],
|
|
plugins: [
|
|
typescript({
|
|
typescript: require('typescript'),
|
|
}),
|
|
],
|
|
},
|
|
];
|