Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function Compilable(source: any) {
// console.log('In Compilable: ' + source);
const precompiled = precompile(source);
// console.log('Precompiled');
const component = Component(precompiled);
// console.log(`Compiled Component: ${component}`);
return component;
}
static lookupComponent(name) {
// console.log(`lookupComponent: ${name}`);
let component = ResolverDelegate.components[name];
if (component === null) {
return null;
}
// console.log(`component found: ${component}`);
//source should now be compiled
let { handle, source, capabilities } = component;
return {
handle,
source,
compilable: Component(source),
capabilities
};
}
static lookupModifier(name) {
static lookupComponent(name: any) {
// console.log(`lookupComponent: ${name}`);
let component = ResolverDelegate.components[name];
if (component === null) {
return null;
}
// console.log(`component found: ${component}`);
//source should now be compiled
let { handle, source, capabilities } = component;
return {
handle,
source,
compilable: Component(source),
capabilities
};
}
export function Compilable(source) {
// console.log('In Compilable: ' + source);
const precompiled = precompile(source);
// console.log('Precompiled');
const component = Component(precompiled);
// console.log(`Compiled Component: ${component}`);
return component;
}
export class ResolverDelegate {