Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Support source maps #14

Open
bminer opened this issue Jun 6, 2014 · 3 comments
Open

Support source maps #14

bminer opened this issue Jun 6, 2014 · 3 comments

Comments

@bminer
Copy link

bminer commented Jun 6, 2014

It would be REALLY cool if node-obfuscator could generate source maps that link the obfuscated JavaScript code back to the appropriate source file/line/column, etc. for debugging purposes.

From what I understand, you could pass a source map option to node-obfuscator to eventually be passed along to uglifyjs; however, this source map would be for the concatenated JavaScript, not for the original source. With a little bit of work, it might be possible to map the uglifyjs source map back to the original source code.

Thoughts on this?

@stephenmathieson
Copy link
Owner

Hmm.. may be able to add it in at obfuscator.register, as it's aware of both the filename and its contents. I like the idea, as it would make locating bugs much, much easier.

@paambaati
Copy link

+1

@brian-mann
Copy link

+1 this would be super helpful

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants