Angular 7 introduced terser as the default minifier which seems breaking included agora SDK. After compiling production build, the javascript breaks with the following runtime error:
main.d0bf7f26789e80a5d773.js:1 ERROR TypeError: i.default.debug is not a function
at u (main.d0bf7f26789e80a5d773.js:1)
at n (main.d0bf7f26789e80a5d773.js:1)
at t.getGatewayList (main.d0bf7f26789e80a5d773.js:1)
at Object.t.join (main.d0bf7f26789e80a5d773.js:1)
at e.ngOnInit (main.d0bf7f26789e80a5d773.js:1)
at main.d0bf7f26789e80a5d773.js:1
at main.d0bf7f26789e80a5d773.js:1
at Qg (main.d0bf7f26789e80a5d773.js:1)
at _y (main.d0bf7f26789e80a5d773.js:1)
at Object.updateDirectives (main.d0bf7f26789e80a5d773.js:1)
Angular 7 introduced terser as the default minifier which seems breaking included agora SDK. After compiling production build, the javascript breaks with the following runtime error: