environment.js 693 B

12345678910111213141516171819
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.default = {
  4. encodeBase64: function encodeBase64(str) {
  5. // Avoid Buffer constructor on newer versions of Node.js.
  6. var buffer = (Buffer.from ? Buffer.from(str) : (new Buffer(str)));
  7. return buffer.toString('base64');
  8. },
  9. mimeLookup: function (filename) {
  10. return require('mime').lookup(filename);
  11. },
  12. charsetLookup: function (mime) {
  13. return require('mime').charsets.lookup(mime);
  14. },
  15. getSourceMapGenerator: function getSourceMapGenerator() {
  16. return require('source-map').SourceMapGenerator;
  17. }
  18. };
  19. //# sourceMappingURL=environment.js.map