The Glob:
Which should match any .js files that do not end with -dbg is wrongly translated to:
^(?:(?:^|[\\/]|(?:(?:(?!(?:^|[\\/])\.{1,2}(?:[\\/]|$)).)*?)[\\/])(?:(?!(?:[^\\/]*?-dbg).@(js))[^\\/]*?)\.(js))$
Please note how for the negative backreference, the glob pattern .@(js) is literally taking into the regex and is not translated into a regexp / excapted itself? Expected RegExp would have been:
^(?:(?:^|[\\/]|(?:(?:(?!(?:^|[\\/])\.{1,2}(?:[\\/]|$)).)*?)[\\/])(?:(?!(?:[^\\/]*?-dbg)\.(js))[^\\/]*?)\.(js))$