deprecate custom module formatters

This commit is contained in:
Sebastian McKenzie 2015-05-21 18:44:02 +01:00
parent 7dbde208ef
commit 221c632c05

View File

@ -420,6 +420,10 @@ export default class File {
getModuleFormatter(type: string) {
if (isFunction(type) || !moduleFormatters[type]) {
this.log.deprecate("Custom module formatters are deprecated and will be removed in the next major. Please use Babel plugins instead.");
}
var ModuleFormatter = isFunction(type) ? type : moduleFormatters[type];
if (!ModuleFormatter) {