ember-cli / babel-plugin-feature-flags

A babel transform for managing feature flags
57 stars 6 forks source link

Read options.feature from a file. #20

Open strctr opened 7 years ago

strctr commented 7 years ago

Add option to read feature flags from a file. Plugin config should looks like this:

["feature-flags", {
    "import": {
        "module": "config/features",
     },
     "features": "./app/config/features-env.js" // relative to cwd
}]

Similar idea is implemented in https://github.com/FormidableLabs/babel-plugin-transform-define. If need, I can create PR.

mmun commented 7 years ago

Sounds good to me. I believe this project is no longer in use in the ember-cli ecosystem (instead we've moved to https://github.com/chadhietala/babel-plugin-debug-macros), but I'm happy to merge a PR with this feature.