mastic-polyfills

1.1.0 • Public • Published

mastic-polyfills

Collection of polyfills intended to be used by mastic-node-server and mastic-filler

How to use it

First, install mastic-polyfills as one of your dependencies :

npm i mastic-polyfills --save

and then you can import the polyfills you want to pass to mastic-node-server or mastic-filler

import { Promise } from 'mastic-polyfills';

List of polyfills

Animations

web-animations-js/web-animations-next.min.js from web-animations/web-animations-js

See browser support

classList

dom-shims/shim/Element.classList from necolas/dom-shims

See browser support

fetch

whatwg-fetch from github/fetch

See browser support

fetch-jsonp

fetch-jsonp from camsong/fetch-jsonp

This is to support a your fetch calls in <IE10

See browser support

Intl

intl from andyearnshaw/Intl.js

See browser support

Object.assign

object-assign from sindresorhus/object-assign

See browser support

object-fit

object-fit-images from bfred-it/object-fit-images

See browser support

Promise

promise/lib/es6-extensions.js from then/promise

See browser support

Package Sidebar

Install

npm i mastic-polyfills

Weekly Downloads

2

Version

1.1.0

License

MIT

Last publish

Collaborators

  • thibthib