Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Container.get(ApolloService).init();
// await SchemaIntrospection()
} catch (e) {
console.error(e);
}
isRunning = false;
if (config.$views) {
config.$views = await transpileComponentsForViews(config.$views)
}
if(config.$components) {
config.$components = (await transpileComponentsInit(config.$components as string[])).map(c => c && c.link ? c.link : c) as any;
}
Container.reset(Config)
Container.remove(Config)
Container.set(Config, config);
if (config.$views) {
Container.get(PubSubService).publish('listenForChanges', config.$views);
}
Container.reset('main-config-compiled')
Container.remove('main-config-compiled')
Container.set('main-config-compiled', config)
console.log(`📦 Bundle realoaded! ${Date.now() - timer}ms`, path);
}
if (config.$views) {
config.$views = await transpileComponentsForViews(config.$views)
}
if(config.$components) {
config.$components = (await transpileComponentsInit(config.$components as string[])).map(c => c && c.link ? c.link : c) as any;
}
Container.reset(Config)
Container.remove(Config)
Container.set(Config, config);
if (config.$views) {
Container.get(PubSubService).publish('listenForChanges', config.$views);
}
Container.reset('main-config-compiled')
Container.remove('main-config-compiled')
Container.set('main-config-compiled', config)
console.log(`📦 Bundle realoaded! ${Date.now() - timer}ms`, path);
}