FormidableLabs / babel-plugin-transform-define

Compile time code replacement for babel similar to Webpack's DefinePlugin
MIT License
245 stars 31 forks source link

Support for defines declared in an external module #3

Closed nevir closed 8 years ago

nevir commented 8 years ago

This allows for dynamic defines (based on a configuration environment, etc). Note that you are welcome to use Babel features within the module.

igrayson commented 8 years ago

Any update?

baer commented 8 years ago

Any word on the status here?

baer commented 8 years ago

I implemented this in a slightly different way but accomplished the same goals. You can now have the plugin read config from any file you like.

https://github.com/FormidableLabs/babel-plugin-transform-define/pull/19

baer commented 8 years ago

Also, thanks so much for this PR and for pushing this forward! It's great to have contributors. I added a bunch of tests already and I plan to keep the improvements rolling.