'use strict'

const rollup = require('rollup')
const babel = require('rollup-plugin-babel')
const filesize = require('rollup-plugin-filesize')

rollup.rollup({
  entry: 'src/index.js',
  plugins: [
    babel({
      exclude: 'node_modules/**',
      presets: ['es2015-rollup']
    }),
    filesize()
  ]
}).then((bundle) => {
  console.log('server.js: ')
  bundle.write({
    format: 'iife',
    banner: '#!/usr/bin/env node',
    dest: 'server.js'})
})

@@ -1,73 +1,22 @@
-'use strict'%0A%0Aconst rollup = require('rollup')%0Aconst babel = require(
+import babel from 
 'rol
@@ -36,14 +36,14 @@
 bel'
-)%0Acons
+%0Aimpor
 t fi
@@ -53,18 +53,13 @@
 ize 
-= require(
+from 
 'rol
@@ -82,25 +82,25 @@
 ize'
-)
 %0A%0A
-rollup.rollup(
+export default 
 %7B%0A  
@@ -122,16 +122,88 @@
 ex.js',%0A
+  dest: 'server.js',%0A  format: 'iife',%0A  banner: '#!/usr/bin/env node',%0A
   plugin
@@ -318,153 +318,5 @@
  %5D%0A%7D
-).then((bundle) =%3E %7B%0A  console.log('server.js: ')%0A  bundle.write(%7B%0A    format: 'iife',%0A    banner: '#!/usr/bin/env node',%0A    dest: 'server.js'%7D)%0A%7D)
 %0A

simplify rollup config file