title: Conditional Import and Export in Javascript
body: <p>I want to import two objects from different files based on some conditions, and export the imported object with different name:</p>
  
  <pre><code>if(condition1)
      import {obj3, obj4} from './file1';
  else
      import {obj5, obj6} from './file2';
  
  export {obj1, obj2}
  </code></pre>