Lazy plugs (#596)

* Manifest caching and lazy loading of plug workers
* Fixes #546 Plug unloading after time out
This commit is contained in:
Zef Hemel
2023-12-06 18:44:48 +01:00
committed by GitHub
parent 8451680c01
commit 8527528af4
16 changed files with 226 additions and 67 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ export async function updatePlugsCommand() {
const allPlugNames = [...builtinPlugNames, ...allCustomPlugNames];
// And delete extra ones
for (const existingPlug of await space.listPlugs()) {
for (const { name: existingPlug } of await space.listPlugs()) {
const plugName = existingPlug.substring(
"_plug/".length,
existingPlug.length - ".plug.js".length,