Thanks for your reply. My fear was that I was only able to import stuff using a tiddlywiki.files file. Thanks also for your link describing what these files do. I wasn't aware of this. Anyway, I'll have to figure out if it is worth trying to pack the required modules in a seperate tiddlywiki.files plugin.
Am Montag, 1. Oktober 2018 17:57:49 UTC+2 schrieb Jed Carty: > > TiddlyWiki doesn't have a mechanism to include npm modules from the node > modules folder. If you use the node version and the modules are used > server-side than it can work but packaging them into the single html file > version takes a bit more work. > > The largest concern with a lot of npm modules is if they can be used by a > browser or not, but assuming so than the easiest way is to include them > with tiddlywiki.files files. There are a few examples of this in some of > the plugins in the GitHub repo, one example is here: > https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/jszip/files > > an explanation of what .files files do is on tiddlywiki.com here > https://tiddlywiki.com/#tiddlywiki.files%20Files > > One problem that I have run into with some modules is when they have > relative paths in a require, in that case you may have to do some extensive > re-writes to make anything work. > -- 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/cc3eed36-b892-4022-9837-d12b1c5bcdc3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

