title: VS Code "Go To Definition" Not Working When Importing Without Path
body: <p>I'm trying to set up VS Code to allow me to <code>cmd+click</code> or <code>right click + Go To Definitions</code> when importing JS components that are not using relative nor absolute paths. Rather these are set up by Webpack to look for any file within a folder regardless of depth.</p>
  
  <p>Example of my folder structure:</p>
  
  <pre><code>code/
  ├── backend/
  ├── frontend/
  │   └── resources/
  │       ├── css/
  │       └── js/
  │           ├── notifications/
  │           │   ├── alerts.js
  │           │   └── mail.js
  │           │
  │           ├── sidebar/
  │           │   └── panes/
  │           │       └── account.js
  │           │
  │           └── footer/
  │               └── main.js
  │
  └── jsconfig.json
  </code></pre>
  
  <p>Example of how I try to import a component (I'm using React) from <code>/code/frontend/resources/js/footer/main.js</code>:</p>
  
  <pre><code>import Mail from 'mail';
  import Account from 'account';
  </code></pre>
  
  <p>Example of my current VS Code <code>/jsconfig.json</code>:</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "ES6",
      "baseUrl": ".",
      "paths": {
        "*" : [
          "*",
          "code/frontend/resources/js/**/*"
        ]
      },
    }
  }
  </code></pre>
  
  <p>I basically want to tell VS Code to make the <code>js</code> directory the root directory where I can import any JS file from without using a path so that it can allow me to use the <code>"Go To Definition"</code> option. I'm sure it can be done I just dont know how. Any ideas?</p>
  
  <p><strong>NOTE:</strong> Just to re-iterate, I can not use paths when using <code>import</code>. </p>
  
  <p>Any help is appreciated. Thanks in advance.</p>
  
  <p><strong>UPDATE:</strong> Just FYI, my code runs on the browser correctly, since webpack handles the paths at run time, thats not the problem. I just cant get VS Code to learn what the path is in order to use their <code>"Go To Definition"</code> feature.</p>