fetch.js 429 B

123456789101112131415161718
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. *
  7. * @format
  8. */
  9. /* globals Headers, Request, Response */
  10. 'use strict';
  11. // side-effectful require() to put fetch,
  12. // Headers, Request, Response in global scope
  13. require('whatwg-fetch');
  14. module.exports = {fetch, Headers, Request, Response};