From 4b6c0b92c06f54a41cfda3e3d74fa2ae426b1d4a Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Tue, 15 Mar 2022 05:19:58 -0700 Subject: [PATCH] Remove `@babel/plugin-transform-regenerator` from RN Babel preset (#789) Summary: ## Summary Hermes added support for generators in 0.2.0, and JSC is ES6 feature complete since r202125. NOTE: This is a combined Metro + React Native commit. For React Native, the only change here is adding `babel/plugin-transform-regenerator` to `repo-config` ( = `devDependencies`), so the tests no longer implicitly consume it via Metro. Changelog: [Internal] X-link: https://github.com/facebook/metro/pull/789 Reviewed By: rh389 Differential Revision: D34819044 Pulled By: motiz88 fbshipit-source-id: fe27b2c2af0281d5309d4c16f95762d4d4935eba --- repo-config/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/repo-config/package.json b/repo-config/package.json index d2cc56cc93f..6c230d96f42 100644 --- a/repo-config/package.json +++ b/repo-config/package.json @@ -11,6 +11,7 @@ "dependencies": { "@babel/core": "^7.14.0", "@babel/generator": "^7.14.0", + "@babel/plugin-transform-regenerator": "^7.0.0", "@react-native-community/eslint-plugin": "*", "@react-native/eslint-plugin-specs": ">0.0.2", "@reactions/component": "^2.0.2",