You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an empty array is passed to watchOptions.ignored then webpack ignores all files.
I believe the problem is this code that converts the ignored array into a function:
if (Array.isArray(ignored)) {
const regexp = new RegExp(ignored.map(i => stringToRegexp(i)).join("|"));
return x => regexp.test(x.replace(/\\/g, "/"));
When ignored is an empty array, it returns a RegExp that matches all strings.
The text was updated successfully, but these errors were encountered:
dextersealy
changed the title
Passing empty array for the **ignored** option causes webpack to ignore all files
Passing empty array for the ignored option causes webpack to ignore all files
Aug 12, 2024
If an empty array is passed to
watchOptions.ignored
then webpack ignores all files.I believe the problem is this code that converts the
ignored
array into a function:When
ignored
is an empty array, it returns a RegExp that matches all strings.The text was updated successfully, but these errors were encountered: