11 lines
273 B
JavaScript
11 lines
273 B
JavaScript
import typescript from '@rollup/plugin-typescript';
|
|
import json from '@rollup/plugin-json';
|
|
|
|
export default {
|
|
input: 'src/index.ts',
|
|
output: {
|
|
dir: 'dist',
|
|
format: 'cjs'
|
|
},
|
|
plugins: [typescript({ module: 'ESNext' }), json( {compact: true, preferConst: true })],
|
|
};
|