Skip to content

Commit 7cd75df

Browse files
tido64zamotany
authored andcommitted
fix: additional plugins for Hermes (#674)
1 parent bcbcf38 commit 7cd75df

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • packages/haul-babel-preset-react-native/src

packages/haul-babel-preset-react-native/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,16 @@ export function getDefaultPostPlugins(): PluginSpec[] {
5353
export function getHermesPlugins(): PluginSpec[] {
5454
// Additional plugins for Hermes because it doesn't support ES6 yet
5555
return [
56+
['@babel/plugin-transform-computed-properties'],
57+
['@babel/plugin-transform-destructuring'],
58+
['@babel/plugin-transform-regenerator'],
5659
['@babel/plugin-transform-shorthand-properties'],
5760
['@babel/plugin-transform-classes'],
61+
['@babel/plugin-transform-arrow-functions'],
5862
['@babel/plugin-transform-spread'],
5963
['@babel/plugin-proposal-object-rest-spread'],
6064
['@babel/plugin-transform-template-literals', { loose: true }],
65+
['@babel/plugin-transform-for-of', { loose: true }],
6166
];
6267
}
6368

0 commit comments

Comments
 (0)