Skip to content

Commit 685df00

Browse files
committed
chore: add comments
1 parent c43b93b commit 685df00

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
const logger = require('../logger');
22

3-
module.exports = (compiler) => {
3+
/**
4+
* warn the user if bail and watch both are used together
5+
* @param {Object} webpack compiler
6+
* @returns {void}
7+
*/
8+
const bailAndWatchWarning = (compiler) => {
49
if (compiler.options.bail && compiler.options.watch) {
510
logger.warn('You are using "bail" with "watch". "bail" will still exit webpack when the first error is found.');
611
}
712
};
13+
14+
module.exports = bailAndWatchWarning;

0 commit comments

Comments
 (0)