rollup

    import resolve from 'rollup-plugin-node-resolve';
    import uglify from 'rollup-plugin-uglify';
    export default {
       entry: 'src/index.js',
       plugins:[
          uglify(),
          resolve()
      ],
      format: 'cjs',
      external:['lodash'],
      sourceMap: true,
      dest: 'dist/bundle.js'
  };

你可能感兴趣的:(rollup)