blacklist.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. /**
  7. * Copyright (c) Meta Platforms, Inc. and affiliates.
  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. // Feel free to add any extensions that cannot be a Haste module.
  21. const extensions = new Set([
  22. // JSONs are never haste modules, except for "package.json", which is handled.
  23. '.json',
  24. // Image extensions.
  25. '.bmp',
  26. '.gif',
  27. '.ico',
  28. '.jpeg',
  29. '.jpg',
  30. '.png',
  31. '.svg',
  32. '.tiff',
  33. '.tif',
  34. '.webp',
  35. // Video extensions.
  36. '.avi',
  37. '.mp4',
  38. '.mpeg',
  39. '.mpg',
  40. '.ogv',
  41. '.webm',
  42. '.3gp',
  43. '.3g2',
  44. // Audio extensions.
  45. '.aac',
  46. '.midi',
  47. '.mid',
  48. '.mp3',
  49. '.oga',
  50. '.wav',
  51. '.3gp',
  52. '.3g2',
  53. // Font extensions.
  54. '.eot',
  55. '.otf',
  56. '.ttf',
  57. '.woff',
  58. '.woff2'
  59. ]);
  60. var _default = extensions;
  61. exports.default = _default;