I've built https://www.npmjs.com/package/ngx-mqtt and am curently stuck with the issue that angular and it's ecosystem changed over time in a way, that transpiling mqtt.js with node polyfills doesn't work anymore. I once had a complete custom build setup, but switched to @angular/cli, but I don't find a way to either do the aforementioned or include a browserified mqtt.js into the build.
Has anybody experience with including a browserified javascript files into an @angular/cli library?
the problem with the mqtt.js in typescript is that polyfills.ts is not working because its deprecated. It will show you that error
so you can fix that with the npm command
npm install util process
so you can use mqtt.js insteat of ngx-mqtt because its only a wrapper and is also causes small performance issues