Skip to content

Commit

Permalink
Add version setting to transform-runtime plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ianschmitz committed Jan 30, 2020
1 parent b855da5 commit 38428f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/babel-preset-react-app/dependencies.js
Expand Up @@ -127,6 +127,10 @@ module.exports = function(api, opts) {
{
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
Expand Down

0 comments on commit 38428f3

Please sign in to comment.