There is currently no public API for accessing the state of optional features at runtime, and this addon seems like the ideal place. Something like:
import { hasOptionalFeature } from 'ember-compatibility-helpers';
if (hasOptionalFeature('jquery-integration')) {
// ...
}
I think this will either require, or else supercede emberjs/ember-optional-features#10, but either way, should address emberjs/ember-optional-features#10 (comment).
There is currently no public API for accessing the state of optional features at runtime, and this addon seems like the ideal place. Something like:
I think this will either require, or else supercede emberjs/ember-optional-features#10, but either way, should address emberjs/ember-optional-features#10 (comment).