ie-babel-class

1.0.0 • Public • Published

polyfill for use babel translate es6 for IE<=9 which use class super constructor

this code use babel translate to es5 and run in IE<=9,

class TestSuper {
    constructor() {
        console.log('TestSuper constructor');
    }
}

class Test extends TestSuper {
    constructor() {
        console.log('Test constructor');
        super();
    }
}

export default Test;

will course error:

Unable to get value of the property '***': object is null or undefined

use this as polyfill will fix it.

install

npm i ie-babel-class

then import is before any js.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    4

Package Sidebar

Install

npm i ie-babel-class

Weekly Downloads

4

Version

1.0.0

License

ISC

Last publish

Collaborators

  • gwuhaolin