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.
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.