2022-09-24 00:58:47 +00:00
|
|
|
import {defineConfig} from 'rollup';
|
|
|
|
import ts from '@rollup/plugin-typescript';
|
2021-07-11 11:04:04 +00:00
|
|
|
|
2022-09-24 00:53:12 +00:00
|
|
|
export default defineConfig({
|
2021-07-11 11:04:04 +00:00
|
|
|
input: 'src/index.ts',
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
file: 'dist/index.cjs',
|
|
|
|
format: 'cjs',
|
|
|
|
},
|
|
|
|
{
|
2021-08-17 18:11:40 +00:00
|
|
|
file: 'dist/index.mjs',
|
2021-07-11 11:04:04 +00:00
|
|
|
format: 'esm',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
plugins: [
|
2022-09-24 00:58:47 +00:00
|
|
|
ts({tsconfig: './tsconfig.json'}),
|
2021-07-11 11:04:04 +00:00
|
|
|
],
|
2022-09-24 00:53:12 +00:00
|
|
|
});
|