Giter VIP home page Giter VIP logo

js-shims's Introduction

airbnb-js-shims Version Badge

JS language shims used by Airbnb.

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

import 'airbnb-js-shims';

Included shims

Targeting versions

If you do not need to support older browsers, you can pick a subset of ES versions to target. For example, if you don't support pre-ES5 browsers, you can start your shims with ES2015 by requiring/importing the specific target file. This will shim the environment for that version and upward.

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

Included targets

  • airbnb-js-shims/target/es5 (default)
  • airbnb-js-shims/target/es2015
  • airbnb-js-shims/target/es2016
  • airbnb-js-shims/target/es2017
  • airbnb-js-shims/target/es2018
  • airbnb-js-shims/target/es2019
  • airbnb-js-shims/target/es2020

js-shims's People

Contributors

devinrhode2 avatar honzajavorek avatar lencioni avatar ljharb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-shims's Issues

breaks webpack: 'return' outside of function

This package depends on "promise.allsettled": "^1.0.0",

works when forced to 1.0.1, but when resolved to 1.0.2 breaks webpack builds with:

Creating an optimized production build...
Failed to compile.

./node_modules/is-map/index.js
SyntaxError: /usr/app/node_modules/is-map/index.js: 'return' outside of function (12:1)

  10 | \t\treturn false;
  11 | \t};
> 12 | \treturn;
     | \t^
  13 | }
  14 | 
  15 | var $mapHas = $Map ? Map.prototype.has : null;

iOS 9.3, Mobile Safari 9.0 function.prototype.name errors

Hi,

Thanks for this library. Most of the environments I tested seem to get shimmed correctly, however trackjs was still reporting Script Errors. After some debugging it appears that Mobile Safari on iOS 9.3 stops parsing with "Attempting to change configurable attribute of unconfigurable property".

screen shot 2017-07-20 at 22 44 48
screen shot 2017-07-20 at 22 54 52

I'm not really sure if I should actually file an issue at the function.prototype.name repo, but I was hoping someone here might know how to proceed from here. Any help is appreciated!

airbnb-js-shims: "^1.2.0"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.