interlockjs / interlock

JS bundler - inspired by Git, built on Babel.
MIT License
72 stars 7 forks source link

babelConfig function #77

Open divmain opened 8 years ago

divmain commented 8 years ago

The function should accept the module object as its argument and return a babel config object. This will allow you to transform based upon module namespace, file path, or other property.

In the case of React, for example, we'd want the equivalent of webpack's DefinePlugin as a babel transform, but nothing else.