mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-27 22:49:11 +08:00
Add babel runtime version to transform-runtime plugin to reduce… (#7726)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user