fix(core): update

This commit is contained in:
2021-08-12 23:35:39 +02:00
parent b584978287
commit 93153baa95
10 changed files with 24627 additions and 1120 deletions

View File

@@ -47,14 +47,14 @@ import * as _anotherPlugin from 'anotherPlugin'; // plugin does not get loaded h
// define lazy module
let anotherLazyModule = new LazyModule() < typeof _anotherPlugin > ('anotherPlugin', __dirname);
myLazyModule.whenLoaded.then(myPlugin => {
myLazyModule.whenLoaded.then((myPlugin) => {
/* do something with myPlugin.
myPlugin receives the typings flow from LazyModule class
This does NOT load the module during runtime
The promise whenLoaded will be resolved whenever load() is called for the first time */
});
myLazyModule.load().then(myPlugin => {
myLazyModule.load().then((myPlugin) => {
/* do something with myPlugin.
myPlugin receives the typings flow from LazyModule class
This DOES LOAD the module */