Skip to content

Commit

Permalink
Move Computed Prop, Array Spread, Object Spread/Rest to Hermes Stable
Browse files Browse the repository at this point in the history
Summary:
This diff moved object computed properties, es2015 array spread, and es2018
object rest/spread into the hermes stable channel after proper experiments.

Reviewed By: cpojer, avp

Differential Revision: D24900803

fbshipit-source-id: 6be90bdbe30279dcef4613ee7185fab4a45dc3a2
  • Loading branch information
Huxpro authored and facebook-github-bot committed Nov 12, 2020
1 parent 9dccffd commit c2c01b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/metro-react-native-babel-preset/src/configs/main.js
Expand Up @@ -131,10 +131,10 @@ const getPreset = (src, options) => {
// and patch react-refresh to not depend on this transform.
extraPlugins.push(es2015ArrowFunctions);

if (!isHermesCanary) {
if (!isHermes) {
extraPlugins.push(es2015ComputedProperty);
}
if (!isHermesCanary && (isNull || hasClass || src.indexOf('...') !== -1)) {
if (!isHermes && (isNull || hasClass || src.indexOf('...') !== -1)) {
extraPlugins.push(es2015Spread);
extraPlugins.push(objectRestSpread);
}
Expand Down

0 comments on commit c2c01b2

Please sign in to comment.