Skip to content

Commit ac93f31

Browse files
topaxiianschmitz
authored andcommitted
Add babel runtime version to transform-runtime plugin to reduce… (#7726)
1 parent e51ea13 commit ac93f31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/babel-preset-react-app/create.js

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

0 commit comments

Comments
 (0)