async function resolveInputId (context, id) {
    let resolved = await context.plugins.hooks.resolveId(id, undefined, { isEntry: true });
    if ((typeof resolved === 'object' && resolved.external)) {
        throw new Error('Input cannot be external');
    } 

    return typeof resolved === 'object' && resolved.id;
}
@param {NollupContext} context 
@param {string} id 
@return {Promise<string>}