metro-buck: check validity of segments
metro-buck: check validity of segments

Reviewed By: davidaurelio

Differential Revision: D6496312

fbshipit-source-id: 586dc8d9f64d13cfddaf6bfe768e8f7b3442561a

exponentjs/react-native,Bhullnatik/react-native,arthuralee/react-native,janicduplessis/react-native,jevakallio/react-native,dikaiosune/react-native,jevakallio/react-native,exponent/react-native,myntra/react-native,myntra/react-native,pandiaraj44/react-native,hoangpham95/react-native,exponent/react-native,Bhullnatik/react-native,rickbeerendonk/react-native,rickbeerendonk/react-native,myntra/react-native,facebook/react-native,dikaiosune/react-native,jevakallio/react-native,hammerandchisel/react-native,pandiaraj44/react-native,exponentjs/react-native,pandiaraj44/react-native,hoangpham95/react-native,ptmt/react-native-macos,rickbeerendonk/react-native,javache/react-native,dikaiosune/react-native,ptmt/react-native-macos,dikaiosune/react-native,ptmt/react-native-macos,dikaiosune/react-native,exponentjs/react-native,myntra/react-native,arthuralee/react-native,dikaiosune/react-native,arthuralee/react-native,hoangpham95/react-native,javache/react-native,hammerandchisel/react-native,ptmt/react-native-macos,hoastoolshop/react-native,jevakallio/react-native,javache/react-native,facebook/react-native,Bhullnatik/react-native,Bhullnatik/react-native,ptmt/react-native-macos,facebook/react-native,hammerandchisel/react-native,hoangpham95/react-native,dikaiosune/react-native,exponentjs/react-native,hoastoolshop/react-native,exponentjs/react-native,myntra/react-native,janicduplessis/react-native,ptmt/react-native-macos,ptmt/react-native-macos,janicduplessis/react-native,hoastoolshop/react-native,javache/react-native,jevakallio/react-native,exponentjs/react-native,hammerandchisel/react-native,hoastoolshop/react-native,hoastoolshop/react-native,exponentjs/react-native,janicduplessis/react-native,rickbeerendonk/react-native,javache/react-native,hoangpham95/react-native,rickbeerendonk/react-native,rickbeerendonk/react-native,exponent/react-native,pandiaraj44/react-native,janicduplessis/react-native,hoastoolshop/react-native,hoastoolshop/react-native,jevakallio/react-native,javache/react-native,pandiaraj44/react-native,exponent/react-native,javache/react-native,Bhullnatik/react-native,myntra/react-native,facebook/react-native,dikaiosune/react-native,arthuralee/react-native,arthuralee/react-native,hoangpham95/react-native,janicduplessis/react-native,facebook/react-native,hammerandchisel/react-native,jevakallio/react-native,pandiaraj44/react-native,janicduplessis/react-native,hammerandchisel/react-native,rickbeerendonk/react-native,exponentjs/react-native,myntra/react-native,exponent/react-native,jevakallio/react-native,facebook/react-native,rickbeerendonk/react-native,hoangpham95/react-native,exponent/react-native,hoangpham95/react-native,exponent/react-native,pandiaraj44/react-native,hammerandchisel/react-native,facebook/react-native,rickbeerendonk/react-native,hammerandchisel/react-native,javache/react-native,Bhullnatik/react-native,jevakallio/react-native,myntra/react-native,Bhullnatik/react-native,exponent/react-native,myntra/react-native,Bhullnatik/react-native,ptmt/react-native-macos,pandiaraj44/react-native,facebook/react-native,janicduplessis/react-native,facebook/react-native,javache/react-native,hoastoolshop/react-native