import minify from "rollup-plugin-babel-minify";

const { main: MAIN_DEST_FILE, module: MODULE_DEST_FILE } = require('./package.json');

export default {
    entry: 'lib/index.js',
    targets: [
        { dest: MAIN_DEST_FILE, format: 'umd' },
        { dest: MODULE_DEST_FILE, format: 'es' },
    ],
    moduleName: 'whynot',
    exports: 'named',
    sourceMap: true,
    plugins: [
        minify({
            comments: false,
            sourceMap: true
        })
    ]
}
@@ -12,17 +12,17 @@
 fy from 
-%22
+'
 rollup-p
@@ -43,9 +43,9 @@
 nify
-%22
+'
 ;%0A%0Ac
@@ -151,17 +151,14 @@
 t %7B%0A
-    entry
+%09input
 : 'l
@@ -175,37 +175,27 @@
 s',%0A
-    targets: %5B%0A        %7B dest
+%09output: %5B%0A%09%09%7B file
 : MA
@@ -225,26 +225,38 @@
 umd'
- %7D,%0A        %7B dest
+, exports: 'named' %7D,%0A%09%09%7B file
 : MO
@@ -289,76 +289,38 @@
 s' %7D
-,%0A    %5D,%0A    moduleName: 'whynot',%0A    exports: 'named',%0A    
+%0A%09%5D,%0A%09name: 'whynot',%0A%09
 source
-M
+m
 ap: 
@@ -325,20 +325,17 @@
 : true,%0A
-    
+%09
 plugins:
@@ -337,24 +337,18 @@
 gins: %5B%0A
-        
+%09%09
 minify(%7B
@@ -348,28 +348,19 @@
 inify(%7B%0A
-            
+%09%09%09
 comments
@@ -372,20 +372,11 @@
 se,%0A
-            
+%09%09%09
 sour
@@ -391,22 +391,15 @@
 rue%0A
-        %7D)%0A    
+%09%09%7D)%0A%09
 %5D%0A%7D
+;%0A

Fix rollup config for 0.50.0