ember-cli / ember-cli/babel-plugin-feature-flags

Support multiple modules.

Open
#14 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
56
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Ember is migrating from `import isEnabled from 'ember-metal/features'` to `import { isFeatureEnabled } from 'ember-metal';`. During the transition (while the code is being updated piece by piece) it would be nice to instruct this plugin to simply process both modules. Unfortunately, that doesn't seem possible today.

One possible solution is something like:

``` js
{
"plugins": [["feature-flags", [
{
"import": {
"module": "ember-metal/features"
},
"features": {
"new-feature": "disabled"
}
},
{
"import": {
"module": "ember-metal",
"name": "isFeatureEnabled"
},
"features": {
"new-feature": "disabled"
}
}
]]
}
```

@mmun - Thoughts?

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.