Complex JS Backend stuff #3436
-
Hi! I would like do do something more complicated in the backend using the custom request handler (I would like to mimic a bookmark sync api, so I can sync bookmarks to trilium). There are a few libraries I have to use to make it feasable. I am not a JS expert (I did some Typescript). I tried to put a library (lzutf8) into a backend script js note. Then in the parent node I tried to include it with Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
Hi, yes, it's supposed to work like that. Trilium tries to emulate Common JS modules, but I think that not all libraries will work. It's best to try to avoid dependencies like that. |
Beta Was this translation helpful? Give feedback.
-
Hi. |
Beta Was this translation helpful? Give feedback.
Hi, yes, it's supposed to work like that. Trilium tries to emulate Common JS modules, but I think that not all libraries will work.
It's best to try to avoid dependencies like that.