Hi Mario,
>
> If you have a closer look, how jszip is implemented, you should be able to
> use the same mechanism.
>
yes, I use it the same 'require("...hammer.js");' way
>
> TiddlyWiki uses the "commonjs" modul loader convention. The hammer.js checks
> for this mechanims
> <https://github.com/hammerjs/hammer.js/blob/563b5b1e4bfbb5796798dd286cd57b7c56f1eb9e/hammer.js#L3230>
>
> and should do the right things.
>
> So it should be possible to include hammer.js as a library, that can be
> used similar too: JSZip = require("$:/plugins/tiddlywiki/jszip/jszip.js")
> .. as in xlsutils
> <https://github.com/Jermolene/TiddlyWiki5/blob/86266c506f8dffddd1bf00745c19b72e25b87b14/plugins/tiddlywiki/xlsx-utils/importer.js#L18>.
>
> <- click!
>
I've seen that the JSZip plugin contains the license, a description and the
minified library without further modifications. That would do it the
hammer.js case, too
>
> There will be some testing needed. But imo this should be a starting point.
>
I'd test it, sure thing! Beyond the starting point, what else is expected
from my point?
>
> -m
>
>
> Simon
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/c34debdd-ed0d-42b5-bbb4-c99c3ae0a538%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.