teleclimber / Dropserver

An application platform for your personal web services. https://dropserver.org
Apache License 2.0
45 stars 1 forks source link

Sort out app bundling and remote module access #63

Closed teleclimber closed 2 years ago

teleclimber commented 2 years ago

Some issues we are facing now:

This is very relevant for dev experience.

teleclimber commented 2 years ago

Pro/cons of bundling/not-bundling:

Pro-bundling:

Pro-not-bundling:

teleclimber commented 2 years ago

Note that as of 425d612002398dfd90a0ea71a524135b95358741, the app code is loaded statically.

Furthermore, you can expect Deno to have a vendoring feature some day, which could be a big help here.

My current thinking is that apps will be usable without bundling (so long as they do not load remote modules dynamically), but there will also be support (and maybe preference for) apps that have all deps in the vendor dir. It would just be a characteristic of the published app: pre-bundled, or requires accessing external code. Further, anybody can create a bundled version of an unbundled app.

teleclimber commented 2 years ago

Going to close this because not actionable right now because static loading of app is compatible with restrictive allow-net, at least for simple apps.