As the above suggests: This is my tsconfig.json config
"compilerOptions": {
"module": "system",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"outFile": "build/tsc.js",
"sourceMap": true,
"lib": [
"decorators",
"dom",
"es5",
"scripthost",
"es2015.collection"
]
},
"include": ["src/**/*"]
}```
This config combined with tsc produces these first few lines and more,
```System.register("Types", [], function (exports_1, context_1) {
"use strict";
var Colour;
var __moduleName = context_1 && context_1.id;
return {
setters: [],
execute: function () {
Colour = (function () {
function Colour(red, blue, green) {
if (red > 255 || red < 0)
throw new Error("Invalid colour size red");
if (blue > 255 || blue < 0)
throw new Error("Invalid colour size blue");
if (green > 255 || green < 0)
throw new Error("Invalid colour size green");
this.red = red;
this.blue = blue;
this.green = green;
}
Colour.CompareExact = function (ColourA, ColourB) {
if (ColourA.red == ColourB.red) {
if (ColourA.blue == ColourB.blue) {
if (ColourA.green == ColourB.green) {
return true;
}
}
}...```
Notes:
The file produced uses strict mode, even though the config does not specify strict mode.
Context:
I'm trying to write my own 2d game engine, for this I'm using ts and then calling the entry point for the engine inside of the compiled file from index.html's script tag,
however I can't load the js as ``System is not defined``, referencing tsc.js: 1:2.