Add babel runtime version to transform-runtime plugin to reduce… (#7726)

This commit is contained in:
Damian Senn
2019-10-07 00:31:12 +02:00
committed by Ian Schmitz
parent e51ea135e1
commit ac93f310bf

View File

@@ -170,6 +170,10 @@ module.exports = function(api, opts, env) {
{
corejs: false,
helpers: areHelpersEnabled,
// By default, babel assumes babel/runtime version 7.0.0-beta.0,
// explicitly resolving to match the provided helper functions.
// https://github.com/babel/babel/issues/10261
version: require('@babel/runtime/package.json').version,
regenerator: true,
// https://babeljs.io/docs/en/babel-plugin-transform-runtime#useesmodules
// We should turn this on once the lowest version of Node LTS