You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
544 B
JavaScript
28 lines
544 B
JavaScript
import typescript from 'rollup-plugin-typescript2';
|
|
import pkg from './package.json';
|
|
|
|
export default [
|
|
{
|
|
input: 'src/index.ts',
|
|
output: [
|
|
{
|
|
file: pkg.main,
|
|
format: 'cjs',
|
|
sourcemap: true,
|
|
},
|
|
{
|
|
file: pkg.module,
|
|
format: 'es',
|
|
sourcemap: true,
|
|
},
|
|
],
|
|
external: [...Object.keys(pkg.dependencies || {})],
|
|
plugins: [
|
|
typescript({
|
|
// eslint-disable-next-line global-require
|
|
typescript: require('typescript'),
|
|
}),
|
|
],
|
|
},
|
|
];
|