Dynamic [JavaScript] navigation
Created by: yowayb
Given:
// register.js
import { Apple, Orange, Banana } from ""fruits"";
import { register } from ""custom-framework"";
register(""Apple"", Apple);
register(""Orange"", Orange);
register(""CustomBanana"", Banana);
// consumer.js
import { consume } from ""custom-framework"";
const [Apple, Banana] = consume(""Apple"", ""CustomBanana"");
// Detect where Apple, Orange, Banana, are being used.
where register and consumer are customer-specific or uncommon. As an engineer, I essentially want to be able to quickly/easily specify the two sides of any given (custom/unusual) relationship. I don't want this built into Sourcegraph's indexer, because it is specific to my organization.