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

Fixup feature flagging infrastructure. #4320

Merged
merged 2 commits into from
Apr 12, 2016

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Apr 12, 2016

Prior to this:

  • When used as an ember-cli addon, the feature flags would only be processed for production builds.
  • When built for globals builds, the features flags would only be processed for ember-data.prod.js builds.

This is incorrect, they should be processed for all builds (for every environment) so that any features explicitly enabled or disabled in the version of Ember data being used are stripped properly.

rwjblue added 2 commits April 12, 2016 07:40
Prior to this, the feature flags would only be processed for
`production` builds (from within an ember-cli app). This is incorrect,
they should be processed for all builds (for every environment) so that
any features explicitly enabled or disabled in the version of Ember
data being used are stripped properly.
@@ -16,24 +16,29 @@ module.exports = function() {
// features[feature] = false;
// }
// }
Copy link
Member

Choose a reason for hiding this comment

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

I guess we can finally remove this comment too, as it is not relevant anymore...

This is just a note, doesn't need to be done within this wonderful PR!

@bmac bmac merged commit 88dd515 into emberjs:master Apr 12, 2016
@rwjblue
Copy link
Member Author

rwjblue commented Apr 12, 2016

Sample assets:

@rwjblue rwjblue deleted the fixup-feature-processing branch April 12, 2016 13:07
@bmac
Copy link
Member

bmac commented Apr 12, 2016

Thanks @rwjblue.

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.

3 participants