stefanpenner / es6-promise

A polyfill for ES6-style Promises

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ie9 catch error

sokolovdm opened this issue · comments

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.

You should use something like this transform.

Yes, I believe many minification tools also offer this.