19 lines
426 B
TypeScript
19 lines
426 B
TypeScript
|
// See: https://rollupjs.org/introduction/
|
||
|
|
||
|
import commonjs from '@rollup/plugin-commonjs';
|
||
|
import nodeResolve from '@rollup/plugin-node-resolve';
|
||
|
import typescript from '@rollup/plugin-typescript';
|
||
|
|
||
|
const config = {
|
||
|
input: 'src/index.ts',
|
||
|
output: {
|
||
|
esModule: true,
|
||
|
file: 'dist/index.js',
|
||
|
format: 'es',
|
||
|
sourcemap: true,
|
||
|
},
|
||
|
plugins: [typescript(), nodeResolve(), commonjs()],
|
||
|
};
|
||
|
|
||
|
export default config;
|