mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
feat(core): initialize on preview allowlist
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user