stefanpenner / es6-promise

A polyfill for ES6-style Promises
MIT License
7.3k stars 593 forks source link

ie9 catch error #353

Closed sokolovdm closed 2 years ago

sokolovdm commented 4 years ago

Hello. I'm using vue-cli with es6-promise

babel.config.js:

require('es6-promise').polyfill();

module.exports = {
    presets: [
        ['@vue/app', {
            polyfills: [
                'es6.promise',
                'es6.symbol'
             ]
         }]
    ]
}

and ie9 crushing project in this place

Screenshot 2019-07-18 at 12 59 45

I saw in yours documentation that 'catch' and 'finally' reserved words in <= ie9. How i can fix this? Thanks.

zloirock commented 4 years ago

You should use something like this transform.

stefanpenner commented 4 years ago

Yes, I believe many minification tools also offer this.