Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix(validation): Error on legacy module loaders config (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Dec 4, 2017
1 parent a89cfe0 commit cbf2232
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cbf2232

Please sign in to comment.