blacklist.js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. /**
  6. * Copyright (c) 2014-present, Facebook, Inc. All rights reserved.
  7. *
  8. * This source code is licensed under the MIT license found in the
  9. * LICENSE file in the root directory of this source tree.
  10. *
  11. *
  12. */
  13. // This list is compiled after the MDN list of the most common MIME types (see
  14. // https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/
  15. // Complete_list_of_MIME_types).
  16. //
  17. // Only MIME types starting with "image/", "video/", "audio/" and "font/" are
  18. // reflected in the list. Adding "application/" is too risky since some text
  19. // file formats (like ".js" and ".json") have an "application/" MIME type.
  20. //
  21. // Feel free to add any extensions that cannot contain any "@providesModule"
  22. const extensions = new Set([
  23. // JSONs are never haste modules, except for "package.json", which is handled.
  24. '.json',
  25. // Image extensions.
  26. '.bmp',
  27. '.gif',
  28. '.ico',
  29. '.jpeg',
  30. '.jpg',
  31. '.png',
  32. '.svg',
  33. '.tiff',
  34. '.tif',
  35. '.webp',
  36. // Video extensions.
  37. '.avi',
  38. '.mp4',
  39. '.mpeg',
  40. '.mpg',
  41. '.ogv',
  42. '.webm',
  43. '.3gp',
  44. '.3g2',
  45. // Audio extensions.
  46. '.aac',
  47. '.midi',
  48. '.mid',
  49. '.mp3',
  50. '.oga',
  51. '.wav',
  52. '.3gp',
  53. '.3g2',
  54. // Font extensions.
  55. '.eot',
  56. '.otf',
  57. '.ttf',
  58. '.woff',
  59. '.woff2'
  60. ]);
  61. exports.default = extensions;