UNPKG

easy-unit

Version:
25 lines (23 loc) 457 B
import commonjs from '@rollup/plugin-commonjs'; import { getBabelOutputPlugin } from '@rollup/plugin-babel'; import terser from '@rollup/plugin-terser'; export default { input: 'src/index.js', output: [ { file: 'lib/cjs/index.js', format: 'cjs', }, { file: 'lib/esm/index.js', format: 'esm', }, ], plugins: [ commonjs(), getBabelOutputPlugin({ presets: ['@babel/preset-env'], }), terser(), ], };