blacklist.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. // 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', // Image extensions.
  24. '.bmp',
  25. '.gif',
  26. '.ico',
  27. '.jpeg',
  28. '.jpg',
  29. '.png',
  30. '.svg',
  31. '.tiff',
  32. '.tif',
  33. '.webp', // Video extensions.
  34. '.avi',
  35. '.mp4',
  36. '.mpeg',
  37. '.mpg',
  38. '.ogv',
  39. '.webm',
  40. '.3gp',
  41. '.3g2', // Audio extensions.
  42. '.aac',
  43. '.midi',
  44. '.mid',
  45. '.mp3',
  46. '.oga',
  47. '.wav',
  48. '.3gp',
  49. '.3g2', // Font extensions.
  50. '.eot',
  51. '.otf',
  52. '.ttf',
  53. '.woff',
  54. '.woff2'
  55. ]);
  56. var _default = extensions;
  57. exports.default = _default;