Replies: 2 comments 2 replies
-
You should use |
Beta Was this translation helpful? Give feedback.
2 replies
-
is
this way you've written out TerserPluging correct? Specifically sourceMap: true? The documentation puts it inside the terserOptions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
I'm working on a project where I'm using Webpack for bundling, Terser for minification, and JavaScriptObfuscator for obfuscation.
Everything works fine, and the final bundle contains obfuscated code. However, when I enable source maps, they do not work as expected. In Chrome DevTools:
Obfuscation Configuration
I'm applying obfuscation after Terser, and my
JavaScriptObfuscator
configuration is as follows:Webpack Plugin Configuration
The obfuscation step is applied after Terser, during the
processAssets
stage:Apart from the above configurations, I have given
devtool: source-map
and optimization asIssue & Expected Behavior
Current Behavior:
Expected Behavior:
Questions
JavaScriptObfuscator
and Webpack so that the source maps retain mappings to the original source code?Any guidance or best practices would be greatly appreciated! 🙌
Beta Was this translation helpful? Give feedback.
All reactions