diff --git a/.flowconfig b/.flowconfig index 8912680eb305c1..e906bb11e66aa4 100644 --- a/.flowconfig +++ b/.flowconfig @@ -63,6 +63,10 @@ module.system.haste.paths.whitelist=/IntegrationTests/.* module.system.haste.paths.blacklist=/Libraries/react-native/react-native-implementation.js module.system.haste.paths.blacklist=/Libraries/Animated/src/polyfills/.* +module.file_ext=.js +module.file_ext=.json +module.file_ext=.ios.js + munge_underscores=true module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' diff --git a/.flowconfig.android b/.flowconfig.android index cd5a38ec5de347..037cdfeac7ee48 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -44,6 +44,10 @@ emoji=true esproposal.optional_chaining=enable esproposal.nullish_coalescing=enable +module.file_ext=.js +module.file_ext=.json +module.file_ext=.android.js + module.system=haste module.system.haste.use_name_reducers=true # keep the following in sync with server/haste/hasteImpl.js