I'm upgrading an application to Angular 18 and the new build system throws a warning:
▲ [WARNING] Suspicious use of the "!" operator inside the "instanceof" operator [suspicious-boolean-not]
src/my-application/app/vendor/zing-touch/zingtouch.min.js:893:14:
893 │ if (!t instanceof u) throw new Error("Parameter gesture...
│ ~~
╵ (!t)
The code "!x instanceof y" is parsed as "(!x) instanceof y". You need to insert parentheses to get "!(x instanceof y)" instead.
It doesn't look like a big deal, but the fix looks pretty simple.
This is with the latest zingtouch.min.js from the dist directory.