On Wednesday, January 20, 2021 at 9:18:38 PM UTC+1 Flibbles wrote:

> I don't think so. I'm not sure what that is,


I didn't have a look at your code and I also need to test the plugin in 
detail. ... It seems the uglify.js library is capable of creating 
source-map files. source-maps contain information for browsers, to connect 
"uglified code" with the original source code. So it's possible to debug 
ugly code, as if it is source code. 

The system is designed to be used with js code, that is loaded from 
js-files that are served by servers and is activated by the html <script> 
tag. 

TW js-code is activated by the TW core, using common-js functions ... So 
the mapping may be trickier, than normal. ... I just wanted to know, if you 
did explore this mechanism. 
 

> and I can't find it in the core.


That's right. TW core has no info about that atm. 
 

> Uglify works by hijacking the View Widget, which is used for all plugin 
> writing during saves. It's not great, but it's what I found works. 


I think that's a nice way to do it for TW node-server. Because it's 
transparent and seems to "just work"!
 

> If there's a better way, I'd gladly change it over.
>

... As I wrote ... Just a question

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4c090ebc-292f-4429-a6b1-fbf40551c7b8n%40googlegroups.com.

Reply via email to