feat(core): initialize on preview allowlist

This commit is contained in:
Kamil Myśliwiec
2023-02-08 10:42:52 +01:00
parent a64b9cc9cb
commit bf5b7ad394
8 changed files with 57 additions and 33 deletions

View File

@@ -63,6 +63,7 @@ export class Module {
>();
private readonly _exports = new Set<InstanceToken>();
private _distance = 0;
private _initOnPreview = false;
private _isGlobal = false;
private _token: string;
@@ -98,6 +99,14 @@ export class Module {
this._isGlobal = global;
}
get initOnPreview() {
return this._initOnPreview;
}
set initOnPreview(initOnPreview: boolean) {
this._initOnPreview = initOnPreview;
}
get providers(): Map<InstanceToken, InstanceWrapper<Injectable>> {
return this._providers;
}