webpack-obfuscator icon indicating copy to clipboard operation
webpack-obfuscator copied to clipboard

webpack-obfuscator is not generating sourcemaps

Open er11cohen opened this issue 2 years ago • 4 comments

We use "webpack-obfuscator": "^3.5.1" with const webpackObfuscator = new WebpackObfuscator( { sourceMap: true, });

but sourcemaps files not generating I also opened stackoverflow question but without help. https://stackoverflow.com/questions/73569780/javascript-obfuscator-with-webpack-obfuscator-source-map-files-not-working Thank you in advance for any help :)

er11cohen avatar Sep 14 '22 08:09 er11cohen

Just to confirm I'm seeing the same issue with 3.5.1.

dantatepico avatar Dec 08 '22 16:12 dantatepico

Any solution? or any workaround?

Avinashgurugubelli avatar Apr 09 '23 16:04 Avinashgurugubelli

This appears to be working

new WebpackObfuscatorPlugin({
  sourceMap: true,
})

This is because sourceMap is an option no ObfuscatorOptions from javascript-obfuscator. It is generating sourcemaps for me, but unsure how accurate those sourcemaps are as I have yet to test them.

catpreneur avatar Jun 06 '23 00:06 catpreneur

As of version 3.5.1, the plugin doesn't generate source maps at all.

@oofdog I couldn't find any documentation about this plugin (WebpackObfuscatorPlugin), I gave it a try and it didn't work.

We need source maps to be able to debug apps in production.

Any updates on this?

markerio avatar Sep 15 '23 16:09 markerio