UNPKG

@anov/cic-convert

Version:

CIC标准转换工具

27 lines 579 B
import resolve from 'rollup-plugin-node-resolve'; import commonjs from 'rollup-plugin-commonjs'; import babel from "rollup-plugin-babel"; import { terser } from 'rollup-plugin-terser'; export default [{ input: 'src/index.js', plugins: [ resolve(), commonjs(), babel({exclude: ['node_modules/**']}), terser(), ], external: [], output: [{ format: 'es', file: 'build/index.module.js', indent: '\t', minifyInternalExports: true, }, { format: 'cjs', file: 'build/bundle.js', indent: '\t', minifyInternalExports: true, } ] }];