File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export interface Metadata {
42
42
css ?: string ;
43
43
} ;
44
44
hasMixins : boolean ;
45
+ hasVault : boolean ;
45
46
dependencies : Record < string , string > ;
46
47
}
47
48
@@ -362,7 +363,7 @@ export abstract class ModuleInstanceBase<
362
363
public metadata : Metadata | null ,
363
364
public artifacts : Array < string > ,
364
365
public checksum : string ,
365
- ) { }
366
+ ) { }
366
367
367
368
// ?
368
369
public updateMetadata ( metadata : Metadata ) {
@@ -374,7 +375,12 @@ export abstract class ModuleInstanceBase<
374
375
375
376
export class ModuleInstance extends ModuleInstanceBase < Module >
376
377
implements MixinLoader {
378
+ // assumes installed & enabled
377
379
public async loadProviders ( ) {
380
+ if ( ! this . metadata ! . hasVault ) {
381
+ return ;
382
+ }
383
+
378
384
const vault = await fetchJson < _Vault > ( this . getRelPath ( "vault.json" ) ! )
379
385
. catch ( ( ) => null ) ;
380
386
const provider = vault ?. modules ?? { } ;
You can’t perform that action at this time.
0 commit comments