I have nodejs v11.12.0, npm 6.9.0 and webpack v4.29.6
When i set RegExp to parameter include, i see an errors.
I watch src of Loader, and find this code
// check if current file should be affected if (typeof options.include === 'object' && options.include.indexOf(options.basename) > -1) { isIncluded = true; } else if (options.include instanceof RegExp && options.basename.match(options.include)) { isIncluded = true; } else if (options.include === true) { isIncluded = true; }
If inside include RegExp, typeof return 'object' and options.include.indexOf(options.basename) gives an error.
Hi.
I have nodejs v11.12.0, npm 6.9.0 and webpack v4.29.6 When i set RegExp to parameter include, i see an errors.
I watch src of Loader, and find this code
// check if current file should be affected if (typeof options.include === 'object' && options.include.indexOf(options.basename) > -1) { isIncluded = true; } else if (options.include instanceof RegExp && options.basename.match(options.include)) { isIncluded = true; } else if (options.include === true) { isIncluded = true; }
If inside include RegExp, typeof return 'object' and
options.include.indexOf(options.basename)
gives an error.