Skip to content

Commit

Permalink
Fixes for regenerator stuff in the output.
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Nov 5, 2017
1 parent 96d3955 commit bb8065e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"ie >= 11"
]
},
"modules": false
"exclude": ["transform-async-to-generator", "transform-regenerator"],
"modules": false,
"loose": true
}
]
],
Expand All @@ -32,4 +34,4 @@
]
}
}
}
}
7 changes: 5 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import nodeResolve from 'rollup-plugin-node-resolve'
import babel from 'rollup-plugin-babel'
import { list as babelHelpersList } from 'babel-helpers'
import replace from 'rollup-plugin-replace'
import uglify from 'rollup-plugin-uglify'

Expand All @@ -18,7 +19,8 @@ if (env === 'es' || env === 'cjs') {
];
config.plugins.push(
babel({
plugins: ['external-helpers']
plugins: ['external-helpers'],
externalHelpersWhitelist: babelHelpersList.filter(helperName => helperName !== 'asyncGenerator')
})
)
}
Expand All @@ -32,7 +34,8 @@ if (env === 'development' || env === 'production') {
}),
babel({
exclude: 'node_modules/**',
plugins: ['external-helpers']
plugins: ['external-helpers'],
externalHelpersWhitelist: babelHelpersList.filter(helperName => helperName !== 'asyncGenerator')
}),
replace({
'process.env.NODE_ENV': JSON.stringify(env)
Expand Down

0 comments on commit bb8065e

Please sign in to comment.