Skip to content

Commit 6ed73ac

Browse files
committed
Move @babel/plugin-transform-flow-strip-types to test config
1 parent a902581 commit 6ed73ac

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

babel.config.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ module.exports = {
1212
},
1313
],
1414
],
15-
plugins: [
16-
'@babel/plugin-proposal-class-properties',
17-
'@babel/plugin-transform-flow-strip-types',
18-
],
15+
plugins: ['@babel/plugin-proposal-class-properties'],
16+
env: {
17+
test: {
18+
// https://github.com/react-native-community/upgrade-support/issues/152
19+
plugins: ['@babel/plugin-transform-flow-strip-types'],
20+
},
21+
},
1922
};

0 commit comments

Comments
 (0)