maybe you could use the 'prefix' field in the tiddlywiki.files and redefine
'require' there..
On Wednesday, January 24, 2018 at 9:08:59 PM UTC+1, TheDiveO wrote:
>
> My goal is to support so-called Video.js player plugins in my TwTube
> plugin. Placing the video.js player itself into a TiddlyWiki library module
> such as $:/plugin/TheDiveO/twtube/video.js works as expected.
>
> Now, video.js plugins, say foo.js, attach themselves to the video.js
> player by means of getting the referece to it via require("video.js"). And
> that is causing me problems: because the required module name is not
> relative, this would reference a (user) tiddler video.js. However, it
> should be the plugin tiddler instead, somewhere inside $:/plugins/...
>
> Of course, I can edit the plugin source to fix the require()...
>
> But: is there another way ot hack to get the require working as needed?
> One bad idea that occured to me is simply adding an alias to
> $tw.modules.titles... Any better ideas?
>
> 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].
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/eda78889-99bb-4004-b58c-b7d0bd6e1ddf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.