canvas-confetti icon indicating copy to clipboard operation
canvas-confetti copied to clipboard

Confetti doesn't work after obfuscation.

Open romua opened this issue 3 years ago • 5 comments

2dba049b-ab0e-4504-acab-22196978863e

romua avatar Oct 26 '21 10:10 romua

@catdad Could you please help with this?

"javascript-obfuscator": "^2.11.0" used

romua avatar Oct 26 '21 11:10 romua

Hmm... what have you done to investigate so far? I assume you have reason to believe this is an issue with this library and not an issue with the obfuscator?

catdad avatar Oct 26 '21 16:10 catdad

@catdad just high level investigation. Also it is worth mentioned I'm using your wonderful library inside angular-electron app(so all kinds of angular minifications/optimizations are happening). It happens after obfuscation only(so my CI steps: build(works here)> obfuscate(errors here))

romua avatar Oct 26 '21 16:10 romua

I think this may be due to the main function being obfuscated, the code injected may not be able to run in a worker env. Not exactly sure why (like a transpiled function not available?)

https://github.com/catdad/canvas-confetti/blob/master/src/confetti.js#L133

claudevervoort avatar Mar 16 '22 21:03 claudevervoort

I have the same problem...

Ambrise avatar Jan 24 '24 16:01 Ambrise