Hi TheDiveO > thank you very much for your answer. Being able to have a utility function > that allows to load a JS module with a caller-supplied require() context or > similar looks appealing. This would keep "aliasing" or dedicated module name > resolution local to such modules that need it. And it would be cleaner than > mucking around with $tw.modules.
Most of the logic is already encapsulated in $tw.utils.evalSandboxed(). Let’s see whether the technique works for you before we try to generalise it further. Best wishes Jeremy. > > Best regards, > TheDiveO > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywiki > <https://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/cc5ea6e7-81a7-4d6d-99cb-4bb206219b40%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/cc5ea6e7-81a7-4d6d-99cb-4bb206219b40%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5818178F-A719-40F0-B43E-09809D6BF641%40gmail.com. For more options, visit https://groups.google.com/d/optout.

