vizzu-lib icon indicating copy to clipboard operation
vizzu-lib copied to clipboard

Vizzu breaks when used with Terser drop_console

Open tmbenhura opened this issue 3 years ago • 2 comments

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.

tmbenhura avatar May 24 '22 03:05 tmbenhura

Hi, what's the message in the thrown exception?

simzer avatar May 24 '22 09:05 simzer

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: @.***>

tmbenhura avatar May 24 '22 12:05 tmbenhura

We have no resources to debug this in Terser. I'm closing this due to inactivity.

simzer avatar Jul 03 '23 10:07 simzer