// Export setConfig so that the external url can set set automatically by the server export {setConfig} from './utils/utils'; import {getUserName} from './SomeModule'; getUserName().then((name) => { const node = document.createElement('span'); node.innerText = `This user name is fetched with Javascript: ${name}`; document.getElementsByTagName("body")[0].appendChild(node); });