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

vendorFiles should maintain its order even when it's overridden #2312

Merged
merged 2 commits into from
Oct 14, 2014

Conversation

Keoven
Copy link
Contributor

@Keoven Keoven commented Oct 14, 2014

We were overriding vendorFiles, and we encountered that when we tried to simply override the 'ember.js' file, it reordered the hash in having ember.js as a first import. This resulted in evaluation of ember before some of its dependencies.

@rwjblue
Copy link
Member

rwjblue commented Oct 14, 2014

Awesome, thanks for this!

Can you add a test where you set some of the deps (lets say Ember and Handlebars) to null (this should result in vendor.js not containing Ember or Handlebars)? This functionality should not be affected by your changes here, but since you are in there adding tests... 😉

@Keoven
Copy link
Contributor Author

Keoven commented Oct 14, 2014

Updated, I hope I understood you correctly 😉

@rwjblue
Copy link
Member

rwjblue commented Oct 14, 2014

Yup, perfect, thank you!

rwjblue added a commit that referenced this pull request Oct 14, 2014
vendorFiles should maintain its order even when it's overridden
@rwjblue rwjblue merged commit 75c678f into ember-cli:master Oct 14, 2014
@Keoven Keoven deleted the fix/vendor-files branch October 14, 2014 15:17
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.

2 participants