diff --git a/project/src/loaders/BundleLoader.ts b/project/src/loaders/BundleLoader.ts index a470e095..0d891f62 100644 --- a/project/src/loaders/BundleLoader.ts +++ b/project/src/loaders/BundleLoader.ts @@ -67,9 +67,13 @@ export class BundleLoader { const bundlePath = `${this.httpServerHelper.getBackendUrl()}/files/bundle/${bundle.key}`; const bundleFilepath = bundle.path || `${modpath}bundles/${bundle.key}`.replace(/\\/g, "/"); - this.bundles[bundle.key] = new BundleInfo(modpath, bundle, bundlePath, bundleFilepath); + this.addBundle(bundle.key, new BundleInfo(modpath, bundle, bundlePath, bundleFilepath)); } } + + public addBundle(key: string, b: BundleInfo): void { + this.bundles[key] = b; + } } export interface BundleManifest