vizzu-lib
vizzu-lib copied to clipboard
Vizzu breaks when used with Terser drop_console
If Vizzu is deployed to production with console.log statements dropped, via Terser, the chart is not rendered and an exception is thrown.
If Terser is disabled, the chart library works fine.
Hi, what's the message in the thrown exception?
Unfortunately, when in devmode, it doesn't happen, even with Terser drop_console applied.
In production, the code is minified. Whilst using source maps, it just says "s is not a function". I suspect the error occurs when it's attempting to log that it's falling back to use ArrayBuffer to load the web assembly.
On Tue, 24 May 2022, 11:27 Laszlo Simon, @.***> wrote:
Hi, what's the message in the thrown exception?
— Reply to this email directly, view it on GitHub https://github.com/vizzuhq/vizzu-lib/issues/103#issuecomment-1135645356, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADS245YSVGGINTTW5KUYK3LVLSOJJANCNFSM5WX3KRIQ . You are receiving this because you authored the thread.Message ID: @.***>
We have no resources to debug this in Terser. I'm closing this due to inactivity.