fix: babel polyfil can not be disabled (#6021)

This commit is contained in:
Xin Du (Clark) 2019-07-03 08:27:18 +01:00 committed by Pooya Parsa
parent efd242ad35
commit a56817f2f8

View File

@ -129,7 +129,7 @@ module.exports = (context, options = {}) => {
// Transform runtime, but only for helpers
plugins.push([require('@babel/plugin-transform-runtime'), {
regenerator: useBuiltIns !== 'usage',
corejs: useBuiltIns !== false ? false : corejs,
corejs: false,
helpers: useBuiltIns === 'usage',
useESModules: buildTarget !== 'server',
absoluteRuntime