blacklist.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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', '.gif', '.ico', '.jpeg', '.jpg', '.png', '.svg', '.tiff', '.tif', '.webp',
  27. // Video extensions.
  28. '.avi', '.mp4', '.mpeg', '.mpg', '.ogv', '.webm', '.3gp', '.3g2',
  29. // Audio extensions.
  30. '.aac', '.midi', '.mid', '.mp3', '.oga', '.wav', '.3gp', '.3g2',
  31. // Font extensions.
  32. '.eot', '.otf', '.ttf', '.woff', '.woff2']);
  33. exports.default = extensions;