How to handle Javascript dependencies

I’m a plugin newbie. I have written a few for myself and I think the plug in thing is a lotta fun.

I’m writing a bigger plugin for release. I have borrowed some code from Github for use with my plugin and that code has some dependencies. In Windows, I might install the dependencies via node.js.

I’m wondering how to do it with an Obsidian plugin. Do you just include the code for dependencies with the plugin? What if there’s a LOT of dependencies or the dependency code is big?

Any guidance from those of you who have done this more than me – which is pretty much all of you – is appreciated! Thanks.

1 Like