Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unify prod/dev add-on build #4215

Merged
merged 1 commit into from
Mar 10, 2016
Merged

unify prod/dev add-on build #4215

merged 1 commit into from
Mar 10, 2016

Conversation

stefanpenner
Copy link
Member

force-push mistake, resurrection of #4206

},

included: function(app) {
this._super.included.apply(this, arguments);

if (process.env.EMBER_ENV === 'production') {
add(this.options.babel, 'backlist', ['es6.modules', 'useStrict']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

backlist -> blacklist

@stefanpenner
Copy link
Member Author

Did I really fuck up that spelling again...

@fivetanley
Copy link
Member

it was your heart on the line

@rwjblue
Copy link
Member

rwjblue commented Mar 7, 2016

I am so confused by what is going on. Wasn't this merged already?

@stefanpenner
Copy link
Member Author

@rwjblue nope not yet

I think its good to go now, lets see what others say

},

included: function(app) {
this._super.included.apply(this, arguments);

if (process.env.EMBER_ENV === 'production') {
add(this.options.babel, 'blacklist', ['es6.modules', 'useStrict']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I run npm run production the add function fails because this.options.babel is undefined.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, good catch. I admittedly have been lazy the last few updates here, sorry for not catching.

@stefanpenner
Copy link
Member Author

recent changes are tested in small app + ember data builds with both --prod and not

@bmac
Copy link
Member

bmac commented Mar 10, 2016

Looks good thanks @stefanpenner

bmac added a commit that referenced this pull request Mar 10, 2016
@bmac bmac merged commit f45849d into master Mar 10, 2016
@bmac bmac deleted the cleanup-builds branch March 10, 2016 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants