JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3837
  • Score
    100M100P100Q133665F
  • License MIT

Browser and JS shims used by Airbnb.

Package Exports

  • airbnb-browser-shims
  • airbnb-browser-shims/browser-only

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (airbnb-browser-shims) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

airbnb-browser-shims Version Badge

Browser and JS language shims used by Airbnb.

Just require/import airbnb-browser-shims, and the environment will be shimmed.

import 'airbnb-browser-shims';

Included shims

Only browser shims

If you only want to bring in the browser shims and not the JS language shims (from airbnb-js-shims), you can import airbnb-browser-shims/browser-only. If you choose this route, you will want to be sure that you are properly bringing in the language shims for the browsers you support somehow. For example:

import 'airbnb-js-shims/target/es2015';
import 'airbnb-browser-shims/browser-only';