title: Cannot read property 'rollupVersion' of undefined or how to setup gulp with rollup and babel
body: <p>i am trying to bundle some JS code for my cordova App. I choose Gulp with Rollup and Babel. So now I am trying to solve problem with "regeneratorRuntime is not defined". So I found some Issues on Github. So now I get this error:</p>
  
  <pre><code>events.js:174
        throw er; // Unhandled 'error' event
        ^
  TypeError: Cannot read property 'rollupVersion' of undefined
      at Object.options (C:\Users\Uzivatel\Documents\Projects\c4w-app-2019\node_modules\rollup-plugin-node-resolve\dist\rollup-plugin-node-resolve.cjs.js:219:47)
      at C:\Users\Uzivatel\Documents\Projects\c4w-app-2019\node_modules\rollup\dist\rollup.js:18478:31
      at Array.reduce (&lt;anonymous&gt;)
      at new Graph (C:\Users\Uzivatel\Documents\Projects\c4w-app-2019\node_modules\rollup\dist\rollup.js:18476:32)
      at Object.rollup (C:\Users\Uzivatel\Documents\Projects\c4w-app-2019\node_modules\rollup\dist\rollup.js:18954:23)
      at C:\Users\Uzivatel\Documents\Projects\c4w-app-2019\node_modules\gulp-rollup\index.js:170:23
      at Array.map (&lt;anonymous&gt;)
      at C:\Users\Uzivatel\Documents\Projects\c4w-app-2019\node_modules\gulp-rollup\index.js:159:37
      at process._tickCallback (internal/process/next_tick.js:68:7)
  Emitted 'error' event at:
      at GulpRollup.EventEmitter.emit (domain.js:454:12)
      at Immediate.&lt;anonymous&gt; (C:\Users\Uzivatel\Documents\Projects\c4w-app-2019\node_modules\gulp-rollup\index.js:229:14)
      at runCallback (timers.js:705:18)
      at tryOnImmediate (timers.js:676:5)
      at processImmediate (timers.js:658:5)
      at process.topLevelDomainCallback (domain.js:120:23)
  </code></pre>
  
  <p>Here is some config what I've made:</p>
  
  <p><strong>gulpfile.js</strong></p>
  
  <pre><code>var gulp = require('gulp');
  var rollup = require('gulp-rollup');
  var rollupBabel = require('rollup-plugin-babel');
  var commonjs = require('rollup-plugin-commonjs');
  var resolve = require('rollup-plugin-node-resolve');
  
  function bundle(cb) {
    gulp
      .src('./www/src/**/*.js')
      // transform the files here.
      .pipe(
        rollup({
          // any option supported by Rollup can be set here.
          output: {
            format: 'iife',
            globals: {
              '@babel/runtime-regenerator': 'regeneratorRuntime'
            }
          },
          plugins: [
            resolve(),
            commonjs({
              include: 'node_modules/**'
            }),
            rollupBabel({
              exclude: 'node_modules/**',
              presets: [['@babel/preset-env', { modules: false }]],
              runtimeHelpers: true
            })
          ],
          input: './www/src/App.js'
        })
      )
      .pipe(gulp.dest('./www/js/'));
    cb();
  }
  
  exports.bundle = bundle;
  </code></pre>
  
  <p><strong>.babelrc</strong></p>
  
  <pre><code>{
    "presets": ["@babel/env"],
    "plugins": [
      "@babel/plugin-transform-runtime"
    ]
  }
  </code></pre>
  
  <p>Please, can someon help me how to setup all correctly to get this working? I need to bundle about 20 js files with ES6 code to one file with transpiled JS, for use in my Cordova App.</p>
  
  <p>Thanks.</p>