index.js 421 B

1234567891011121314
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. function isSourceMap(input) {
  6. // All required options for `new SourceMapConsumer(...options)`
  7. // https://github.com/mozilla/source-map#new-sourcemapconsumerrawsourcemap
  8. return Boolean(input && input.version && input.sources && Array.isArray(input.sources) && typeof input.mappings === 'string');
  9. }
  10. exports.default = {
  11. isSourceMap
  12. };