javascript - Object.values throws TypeError in IE browser- How to polyfill it? -
in ember app,i using object.values
method, throwing below error in ie browser.
object doesn't support property or method 'values' typeerror: object doesn't support property or method 'values'
in package.json
"ember-cli-babel": "^6.3.0"
my target.js file shows,
module.exports = { browsers: [ 'ie 9', 'last 1 chrome versions', 'last 1 firefox versions', 'last 1 safari versions' ] };
i using
ember-cli: 2.13.3 node: 6.3.1
object.values
supported only in edge. how polyfill in ember project?. string.endswith
included polyfill in app.js
file. here want use babel-polyfill automatically polyfill browser mentioned in target.js
ember-cli-babel comes polyfill support configuration. should have gone through docs. wasn't aware below configuration magic.
// ember-cli-build.js var app = new emberapp(defaults, { 'ember-cli-babel': { includepolyfill: true } });
Comments
Post a Comment