-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when obfuscating TypeScript with deadCodeInjection: true #78
Comments
Interesting , can you attach your source code or simple project that can reproduce this error? |
@sanex3339 I narrowed down the error to what I believe is related to TypeScript's generated code for async/await inside of a try/catch when targeting ES5 as the compilation language. Please see the attached .zip file for the example project that I made. |
Oh, catch it! This construction thows error:
In ast tree empty array element parsed as |
Fixed! Please check new |
@sanex3339 I tested it out and the error no longer occurs during webpack compilation. The generated JavaScript appears to run without any visible issues in Chrome. Thank you! 👏👏👏 |
You're welcome. |
Using webpack-obfuscator 0.10.1 (also with 0.10.0), I receive the following error when running
webpack -p
. It only occurs when deadCodeInjection is turned on and happens at any deadCodeInjectionThreshold. I'm not sure if it's my specific setup or an issue with javascript/webpack-obfuscator.The text was updated successfully, but these errors were encountered: