mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix: babel polyfil can not be disabled (#6021)
This commit is contained in:
parent
efd242ad35
commit
a56817f2f8
@ -129,7 +129,7 @@ module.exports = (context, options = {}) => {
|
|||||||
// Transform runtime, but only for helpers
|
// Transform runtime, but only for helpers
|
||||||
plugins.push([require('@babel/plugin-transform-runtime'), {
|
plugins.push([require('@babel/plugin-transform-runtime'), {
|
||||||
regenerator: useBuiltIns !== 'usage',
|
regenerator: useBuiltIns !== 'usage',
|
||||||
corejs: useBuiltIns !== false ? false : corejs,
|
corejs: false,
|
||||||
helpers: useBuiltIns === 'usage',
|
helpers: useBuiltIns === 'usage',
|
||||||
useESModules: buildTarget !== 'server',
|
useESModules: buildTarget !== 'server',
|
||||||
absoluteRuntime
|
absoluteRuntime
|
||||||
|
Loading…
Reference in New Issue
Block a user