TypeScript Compile Options: module vs target
<p>Trying to have some basic understanding about module and target.  </p>

<p>I would like to know the difference between module and target compile options in a typical tsconfig.json</p>

<pre>
{
    "compilerOptions": {
        "module": "es6",
        "sourceMap": true,
        "target": "es6"
    }
}
</pre>

<p>What happens if I provide the following options:</p>

<p>module: commonjs, target: es6</p>

<p>module: es6, target: commonjs</p>

<p>module: commonjs, target: commonjs</p>