title: Typescript can't find a module that has been mapped with SystemJS
body: <p><a href="https://www.typescriptlang.org/" rel="nofollow noreferrer">Typescript</a> doesn't find the module in this import <code>import ga from 'googleAnalytics';</code></p>
  
  <p><a href="https://github.com/systemjs/systemjs" rel="nofollow noreferrer">SystemJS</a> knows where to find the module, because it has been mapped up front like so:</p>
  
  <pre><code>map: {
      '@angular': 'node_modules/@angular',
      'rxjs': 'node_modules/rxjs',
      'underscore': 'node_modules/underscore/underscore-min.js',
      'googleAnalytics': '//www.google-analytics.com/analytics.js'
  },
  </code></pre>
  
  <p>How can I provide similar mapping to the <code>tsc</code>?</p>
  
  <p>This other question seems to point in a good direction: <a href="https://stackoverflow.com/questions/34925992/how-to-avoid-imports-with-very-long-relative-paths-in-angular-2">How to avoid imports with very long relative paths in Angular 2?</a></p>
  
  <p><a href="https://www.typescriptlang.org/" rel="nofollow noreferrer">Typescript</a> 2.0 seems to support the <code>paths</code> config for the <a href="https://www.typescriptlang.org/docs/handbook/tsconfig.json.html" rel="nofollow noreferrer"><code>tsconfig.json</code></a>. Is there a way to download <a href="https://www.typescriptlang.org/" rel="nofollow noreferrer">Typescript</a> 2.0? Can I give the <code>path</code> config an http url (//www.google-analytics.com/analytics.js) like I'm doing with <a href="https://github.com/systemjs/systemjs" rel="nofollow noreferrer">SystemJS</a>? If there is no way to download <a href="https://www.typescriptlang.org/" rel="nofollow noreferrer">Typescript</a> 2.0, how can I achieve what I want with the current version?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>The specific error I get is: "Cannot find module 'ga'".</p>
  
  <p>Here is my <code>tsconfig.json</code>:</p>
  
  <pre><code>{
      "compilerOptions": {
          "rootDir": "./",
          "target": "es5",
          "module": "system",
          "moduleResolution": "node",
          "emitDecoratorMetadata": true,
          "experimentalDecorators": true,
          "noImplicitAny": true
      },
      "exclude": [
          "node_modules",
          "front-end/node_modules",
          "typings/main",
          "typings/main.d.ts"
      ]
  }
  </code></pre>