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

[BUGFIX release] don't load "app" code when loading globals files #4063

Merged
merged 1 commit into from
Jan 12, 2016

Conversation

fivetanley
Copy link
Member

The code that gets compiled for the globals build is in a closure with
its own instance of loader.js, so the entries for ember-data don't end
up in ember-cli's instance of loader.js. The ember-data code does
include shims that end up in the app's instance of loader.js, so we
exclude the app code from running in this case.

}

return this._super.treeForApp.apply(this, arguments);
}
Copy link
Member

Choose a reason for hiding this comment

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

missing comma here causing a JS parsing error (and the Travis failure)

Copy link
Member

Choose a reason for hiding this comment

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

🐦 👀

@fivetanley fivetanley force-pushed the globals-fixes branch 3 times, most recently from 7901cae to a9ffe7f Compare January 12, 2016 19:38
The code that gets compiled for the globals build is in a closure with
its own instance of `loader.js`, so the entries for ember-data don't end
up in ember-cli's instance of `loader.js`. The ember-data code does
include shims that end up in the app's instance of loader.js, so we
exclude the app code from running in this case.
fivetanley added a commit that referenced this pull request Jan 12, 2016
[BUGFIX release] don't load "app" code when loading globals files
@fivetanley fivetanley merged commit f261ca8 into emberjs:master Jan 12, 2016
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