We are migrating our site to ember, so as of now we use ember as well as JSPs. Since in production, I have a polyfill loaded when my site loads, I want to use babel polyfill inside the ember app only on development and testing environment. I do not want it on production bulid. I know I can do the following
//ember-cli-build.js
let app = new EmberApp(defaults, {
'ember-cli-babel': {
'includePolyfill': true
}
}
I need something like the following to include polyfill based on the environment.
//ember-cli-build.js
let app = new EmberApp(defaults, {
'ember-cli-babel': {
'includePolyfill': this.ENV=='production' ? false:true
}
}
Aucun commentaire:
Enregistrer un commentaire