deprecate custom module formatters
This commit is contained in:
parent
7dbde208ef
commit
221c632c05
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user