UNPKG

@tarantool.io/polyfills

Version:

## Usage

19 lines (14 loc) 611 B
'use strict'; require('core-js/stable'); require('regenerator-runtime/runtime'); // fetch() polyfill for making API calls. require('whatwg-fetch'); // Object.assign() is commonly used with React. // It will use the native implementation if it's present and isn't buggy. Object.assign = require('object-assign'); // In tests, polyfill requestAnimationFrame since jsdom doesn't provide it yet. // We don't polyfill it in the browser--this is user's responsibility. if (process.env['NODE_ENV'] === 'test') { // eslint-disable-next-line @typescript-eslint/no-var-requires require('raf').polyfill(global); }