title: Uncaught ReferenceError: exports is not defined in filed generated by Typescript
body: <p>I'm trying to get started with Typescript for Electron development. After wrestling with getting typing for node and jquery, I finally got my .ts file error free.</p>
  
  <p>The problem is now that when I run my app, I get this error:</p>
  
  <pre><code>index.js:2 Uncaught ReferenceError: exports is not defined
  </code></pre>
  
  <p>These are the first two lines in index.js:</p>
  
  <pre><code>"use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  </code></pre>
  
  <p>I don't know that that line does. Typescript added it when compiling. My app works fine if I remove it.</p>
  
  <p>How do I get rid of this error?</p>
  
  <p>Oh and here's my tsconfig, if that's relevant.</p>
  
  <pre><code>{
      "compilerOptions": {
          "target": "es6",
          "module": "commonjs",
          "moduleResolution": "node",
          "isolatedModules": false,
          "jsx": "react",
          "experimentalDecorators": true,
          "emitDecoratorMetadata": true,
          "declaration": false,
          "noImplicitAny": false,
          "noImplicitUseStrict": false,
          "removeComments": true,
          "noLib": false,
          "preserveConstEnums": true,
          "suppressImplicitAnyIndexErrors": true
      },
      "exclude": [
          "node_modules",
          "typings/browser",
          "typings/browser.d.ts"
      ],
      "compileOnSave": true,
      "buildOnSave": false,
      "atom": {
          "rewriteTsconfig": false
      }
  }
  </code></pre>