diff --git a/.flowconfig b/.flowconfig index 4b51cb2fd..08d02717a 100644 --- a/.flowconfig +++ b/.flowconfig @@ -81,7 +81,7 @@ esproposal.class_instance_fields=enable munge_underscores=true module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub' -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\)$' -> 'RelativeImageStub' +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' suppress_type=$FlowIssue suppress_type=$FlowFixMe diff --git a/local-cli/server/runServer.js b/local-cli/server/runServer.js index 57c0be9d2..2aa9d208b 100644 --- a/local-cli/server/runServer.js +++ b/local-cli/server/runServer.js @@ -83,7 +83,7 @@ function getPackagerServer(args, config) { 'bmp', 'gif', 'jpg', 'jpeg', 'png', 'psd', 'svg', 'webp', // Image formats 'm4v', 'mov', 'mp4', 'mpeg', 'mpg', 'webm', // Video formats 'aac', 'aiff', 'caf', 'm4a', 'mp3', 'wav', // Audio formats - 'html', // Document formats + 'html', 'pdf', // Document formats ], resetCache: args.resetCache || args['reset-cache'], verbose: args.verbose, diff --git a/packager/react-packager/src/Server/index.js b/packager/react-packager/src/Server/index.js index f7b4b354c..1856fc96f 100644 --- a/packager/react-packager/src/Server/index.js +++ b/packager/react-packager/src/Server/index.js @@ -62,7 +62,7 @@ const validateOpts = declareOpts({ 'bmp', 'gif', 'jpg', 'jpeg', 'png', 'psd', 'svg', 'webp', // Image formats 'm4v', 'mov', 'mp4', 'mpeg', 'mpg', 'webm', // Video formats 'aac', 'aiff', 'caf', 'm4a', 'mp3', 'wav', // Audio formats - 'html', // Document formats + 'html', 'pdf', // Document formats ], }, transformTimeoutInterval: {