Skip to content

Commit

Permalink
Add babel runtime version to transform-runtime plugin to reduce… (#7726)
Browse files Browse the repository at this point in the history
  • Loading branch information
topaxi authored and ianschmitz committed Oct 6, 2019
1 parent e51ea13 commit ac93f31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/babel-preset-react-app/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac93f31

Please sign in to comment.