I have a number of typescript classes that are in multiple files in a single directory. These files are modules, that is to say they are being used in a node project with import and export keywords. Is there a way I can compile these typescript files into a single javascript file so that I can include the compiled typescript classes in a single script tag, e.g.
<script src="typescriptOut.js></script>
My current tsconfig.json is:
{
"compilerOptions": {
"module": "system",
"target": "ES6",
"noImplicitAny": true,
"removeComments": true,
"preserveConstEnums": true,
"outFile": "../client/physics/physics.js",
"sourceMap": true
},
"include": [
"**/*"
],
}
However, this throws an error when using the physics.js file which says that "System is not defined".