ReferenceError:未定义regeneratorRuntime

时间:2016-10-08 21:10:03

标签: javascript babel rollup rollupjs

我正在使用rollup从我的项目中构建一个模块,它不包括regeneratorRuntime。我在这里缺少什么?

module.exports = {
  external: [],
  entry: './src/appProxypass/index.js',
  dest: './packages/proxypass-app/index.js',
  format: 'cjs',
  plugins: [
    require('rollup-plugin-commonjs')({
    }),
    require('rollup-plugin-babel')({
      babelrc: false,
      runtimeHelpers: true,
      // externalHelpers: true,
      'presets': [
        'es2015-rollup',
        'stage-2'
      ],
      'plugins': [
        'transform-async-to-generator',
        'syntax-async-functions',
        'transform-flow-strip-types',
        'transform-class-properties'
      ],
      exclude: 'node_modules/**'
    }),
    require('rollup-plugin-cleanup')()
  ]
}

0 个答案:

没有答案