Merge pull request #3087 from nordluf/master

Make babel-cli watching only given files and extensions.
This commit is contained in:
Sebastian McKenzie
2015-11-17 23:00:35 -08:00

View File

@@ -137,6 +137,8 @@ module.exports = function (commander, filenames, opts) {
persistent: true,
ignoreInitial: true
}).on("all", function (type, filename) {
if (util.shouldIgnore(filename) || !util.canCompile(filename, commander.extensions)) return;
if (type === "add" || type === "change") {
util.log(type + " " + filename);
try {