I am using typescript to bundle my application into a single .js file. As far as I understand this is possible since TS 1.8 (I am using 2.1). Here is my .tsconfig
{
"compileOnSave": true,
"compilerOptions": {
"experimentalDecorators": true,
"alwaysStrict": true,
"jsx": "react",
"noEmitOnError": true,
"outFile": "dist/bundle.js",
"moduleResolution": "node",
"preserveConstEnums": true,
"removeComments": true,
"sourceMap": true,
"target": "es5",
"module": "system"
},
"exclude": [
"node_modules",
"wwwroot"
]
}
This really creates the bundle.js file but the referenced modules from node_modules are not in this bundle. Is it possible to add the module in the bundle somehow?
I know that this can be done using Webpack or similar tools, but my question is whether it is possible to do it only using typescript