title: How to export objects from within ES6 modules
body: <p>I am exporting a object as below:</p>
  
  <p>//apiEndpoints.ts</p>
  
  <pre><code>import {CONSTANTS} from './constants';
  
  let remote = CONSTANTS.API_ENDPOINT;
  
  export const ENDPOINT = {
    signup: remote + 'auth/signup',
    checkusername: remote + 'auth/checkUsername/${username}' 
  };
  </code></pre>
  
  <p>Upon importing this module, ENDPOINT is not imported.</p>
  
  <p>see attached error<a href="https://i.stack.imgur.com/DY4ZS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DY4ZS.png" alt="enter image description here"></a></p>