Skip to content

Commit

Permalink
Tidy up rollup config (#2781)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound authored and jossmac committed Jul 10, 2018
1 parent db32763 commit f13be4e
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import babel from 'rollup-plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import uglify from 'rollup-plugin-uglify';
import { minify } from 'uglify-es';
import pkg from './package.json';

const name = 'Select';
const path = 'dist/react-select';
Expand Down Expand Up @@ -29,32 +30,32 @@ export default [
{
input: 'src/index.js',
output: {
file: path + '.es.js',
file: pkg.module,
format: 'es',
},
external: external,
external,
plugins: [babel(babelOptions(false))],
},
{
input: 'src/index.umd.js',
output: {
name: name,
name,
file: path + '.js',
format: 'umd',
},
globals: globals,
external: external,
globals,
external,
plugins: [babel(babelOptions(false)), resolve()],
},
{
input: 'src/index.umd.js',
output: {
name: name,
name,
file: path + '.min.js',
format: 'umd',
},
globals: globals,
external: external,
globals,
external,
plugins: [babel(babelOptions(true)), resolve(), uglify({}, minify)],
},
];

0 comments on commit f13be4e

Please sign in to comment.