title: Karma Typescript helloworld example fails
body: <p>I started working on a typescript project where I use Jasmine and Karma. Unfortunately Karma cannot execute the compiled unit tests, with this error in Chrome:</p>
  
  <pre><code>Uncaught ReferenceError: define is not defined
  </code></pre>
  
  <p>Example project - I believe this is the most simple configuration to demonstrate the issue:</p>
  
  <p>package.json:</p>
  
  <pre><code>{
    "name": "HelloWorld",
    "scripts": {
      "build": "tsc -p ts",
      "test": "./node_modules/karma/bin/karma start karma.conf.js"
    },
    "devDependencies": {
      "typescript": "~2.4.1"
      ,"jasmine-core": "2.6.4"
      ,"jasmine": "2.6.0"
      ,"@types/jasmine": "2.5.53"
      ,"karma": "1.7.0"
      ,"karma-chrome-launcher": "^2.2.0"
      ,"karma-jasmine": "^1.1.0"
    }
  }
  </code></pre>
  
  <p>karma.conf.js:</p>
  
  <pre><code>module.exports = function(config) {
    config.set({
      frameworks: ['jasmine'],
      files: ['js/*.spec.js'],
      reporters: ['progress'],
      port: 9876,
      colors: true,
      logLevel: config.LOG_INFO,
      autoWatch: true,
      browsers: ['Chrome'],
      singleRun: false,
      concurrency: Infinity
    })
  }
  </code></pre>
  
  <p>ts/tsconfig:</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "es5"
      ,"module": "amd"
      ,"lib": [ "es2015", "dom" ]
      ,"outDir": "../js"
    }
  }
  </code></pre>
  
  <p>ts/helloworld.ts</p>
  
  <pre><code>function returnHello() : string {
    return "Hello";
  }
  
  export default returnHello;
  </code></pre>
  
  <p>ts/helloworld.spec.ts</p>
  
  <pre><code>import returnHello from "helloworld";
  
  describe("Some Test", function() {
    it("passes", () =&gt; expect(returnHello()).toEqual("Hello"));
  });
  </code></pre>