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

Use the "app" argument if available #165

Merged
merged 2 commits into from
Jun 25, 2019
Merged

Conversation

2hu12
Copy link
Contributor

@2hu12 2hu12 commented Jun 25, 2019

The app argument passed to included is the host app or parent addon and the addon has a import api exposed since ember-cli/ember-cli#5877.

This PR does no changes to normal ember app but the app with a lazy engine which depend on ember-highcharts directly, it could distribute the hightcharts vendor to the engine-vendor.js instead of the vendor.js of the whole app so that other engines do not have to download the hightcharts vendor(also need other tricks like adding the "ember-highcharts" to the addons.blacklist of the whole app option).

The `app` argument passed to `included` is the host app or parent addon and the addon has a `import` api exposed since ember-cli/ember-cli#5877.

This PR does no changes to normal ember app but the app with a lazy engine which depend on `ember-highcharts` directly, it could distribute the `hightcharts` vendor to the `engine-vendor.js` instead of the `vendor.js` of the whole app so that other engines do not have to download the `hightcharts` vendor(also need other tricks like add the "ember-highcharts" to the `addons.blacklist` of the whole app option).
index.js Show resolved Hide resolved
@nlfurniss nlfurniss merged commit 8dac788 into ahmadsoe:master Jun 25, 2019
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