diff --git a/index.js b/index.js index d947312..57e9ff4 100644 --- a/index.js +++ b/index.js @@ -60,6 +60,15 @@ const validateConfig = config => { ); } + if (config.module.loaders !== undefined) { + error( + ` + You've configured your loaders with the legacy "module.loaders" field. + Please use the newer "module.rules" format instead. + ` + ); + } + config.module.rules.forEach(rules => { if (!rules.include) { error(