diff --git a/packages/react-native-babel-preset/src/configs/main.js b/packages/react-native-babel-preset/src/configs/main.js index 077e1a68b02..18de16a1681 100644 --- a/packages/react-native-babel-preset/src/configs/main.js +++ b/packages/react-native-babel-preset/src/configs/main.js @@ -206,7 +206,7 @@ const getPreset = (src, options) => { return { comments: false, - compact: true, + compact: options.compact !== false, overrides: [ // the flow strip types plugin must go BEFORE class properties! // there'll be a test case that fails if you don't.