1.0.0 • Published 8 years ago

ie-babel-class v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

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.