watchpack
Advanced tools
Comparing version 2.0.0-beta.10 to 2.0.0-beta.11
@@ -37,2 +37,4 @@ /* | ||
return new RegExp(stringToRegexp(ignored)); | ||
} else if (ignored instanceof RegExp) { | ||
return ignored; | ||
} else if (ignored) { | ||
@@ -66,3 +68,5 @@ throw new Error(`Invalid option for 'ignored': ${ignored}`); | ||
if (!options) options = {}; | ||
if (!options.aggregateTimeout) options.aggregateTimeout = 200; | ||
if (typeof options.aggregateTimeout !== "number") { | ||
options.aggregateTimeout = 200; | ||
} | ||
this.options = options; | ||
@@ -69,0 +73,0 @@ this.watcherOptions = cachedNormalizeOptions(options); |
{ | ||
"name": "watchpack", | ||
"version": "2.0.0-beta.10", | ||
"version": "2.0.0-beta.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/watchpack.js", |
@@ -51,2 +51,3 @@ # watchpack | ||
// ignored: ["string", "string"] - multiple glob patterns that should be ignored | ||
// ignored: /regexp/ - a regular expression for files or folders that should not be watched | ||
// All subdirectories are ignored too | ||
@@ -53,0 +54,0 @@ }); |
39510
1100
134