question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to remove "sourcesContent" from generated source map file?

See original GitHub issue

Hi, I am obfuscating JS code using javascript-obfuscator CLI with source map enabled. The generated map file contains sourcesContent which in turn contains all the source of obfuscated code. Is there an option to tell javascript-obfuscator not to include source content in map file.

The CLI command I am using.

javascript-obfuscator themes/blue/.source/js --output themes/blue/dist/js --compact true --self-defending true --source-map true

Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
sanex3339commented, Jul 19, 2021

I personally prefer my variant with sourceMapSourcesMode option. Will implement it this week.

1reaction
sanex3339commented, Jul 19, 2021

Feel free to ask about the new option here or create a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to remove "sourcesContent" from webpack ...
I can't find any reference in the docs and there doesn't seem to be an option to turn this off. javascript · webpack...
Read more >
Remove Comments From SourceMaps · Issue #49331 - GitHub
I would like a seperate sourcemaps file but with an option to not include comments that are inside any ts files.
Read more >
Source Maps - SurviveJS
Inline source maps add the mapping data directly to the generated files. Separate source maps emit the mapping data to separate source map...
Read more >
Source-maps could be revealing your private project files
This line describes the location of a generated source-map file for this ... You should not remove all .map files in your build...
Read more >
Devtool - webpack
devtool performance production quality (none) build: fastest rebuild: fastest yes bundle eval build: fast rebuild: fastest no generated eval‑cheap‑source‑map build: ok rebuild: fast no transformed
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found