blacklist.js 1.3 KB

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