ember-cli / ember-cli/ember-compatibility-helpers

Expose optional features

Open
#27 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
25
Forks
19
PR merge metrics
No merged PRs in 30d

Description

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:

```javascript
import { hasOptionalFeature } from 'ember-compatibility-helpers';

if (hasOptionalFeature('jquery-integration')) {
// ...
}
```

I think this will either require, or else supercede https://github.com/emberjs/ember-optional-features/issues/10, but either way, should address https://github.com/emberjs/ember-optional-features/issues/10#issuecomment-421180959.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.