Refactor of asset bundles

This commit is contained in:
Zef Hemel
2022-10-12 11:47:13 +02:00
parent 9dd94c5397
commit 4c19ab21f2
96 changed files with 6279 additions and 770 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ export class Plug<HookT> {
constructor(
system: System<HookT>,
name: string,
sandboxFactory: (plug: Plug<HookT>) => Sandbox
sandboxFactory: (plug: Plug<HookT>) => Sandbox,
) {
this.system = system;
this.name = name;
@@ -55,7 +55,7 @@ export class Plug<HookT> {
}
if (!this.canInvoke(name)) {
throw new Error(
`Function ${name} is not available in ${this.runtimeEnv}`
`Function ${name} is not available in ${this.runtimeEnv}`,
);
}
await this.sandbox.load(name, funDef.code!);