Steps required for Ember-cli to support ES6 Object.assign()


#1

How to change ember-cli build to transpile all Object.assign() call with poly fills

On IE 11, we see this error

SCRIPT438: Object doesn’t support property or method ‘assign’

Our ember app code is based on ES6, including usage of Object.assign

Even after installing the plugin

https://github.com/babel/babel/tree/development/packages/babel-plugin-transform-object-assign

with respective .babelrc file changes, ember-cli does not seem to transpile


#2

It’s a ember-cli-babel option. Basically, in your ember-cli-build.js file, look for the // Add options here comment and add the Babel option there. Should be something like:

var app = new EmberApp(defaults, {
  // Add options here
  babel: {
    includePolyfill: true
  }
});

#3

Is your issue solved ?