Wednesday, 10 May 2017

How to delete a source map script

For a hobby project I'd like to load and debug code in NW.js (chromium based node-webkit) dynamically. I learned that I can have dynamically created functions show up in the devtools sources list by appending it with a certain formatted comment (//# sourceURL=scriptname.js;).

If there is a way to add dynamically created code to the source map, then there probably also has to be a way to remove it from there again (except the manual way). Am I unaware of some existing devtools source-map API that let's me delete these sources programmatically?



via John Smith

No comments:

Post a Comment