I'm working on a typescript project that uses import
/export
style syntax for modules. I want to compile all the typescript files into a single file. Here is how my tsconfig.json looks like,
{
"compilerOptions": {
"module": "UMD",
"noImplicitAny": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"removeComments": true,
"preserveConstEnums": true,
"strictNullChecks": true,
"target": "ES5",
"lib": [
"es2016",
"dom"
],
"outFile": "dist/beetl.js"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
When I run the tsc
command I'm getting the below error,
error TS6082: Only 'amd' and 'system' modules are supported alongside --outFile.
I don't want to go with AMD or System and I want UMD, How can I achieve that?