first describe the problem: the current project uses TypeScript, to configure tsconfig.json. Then use webpack + ts-loader to package.
now I"d like to ask what tsconfig.json and ts-loader do, and whether you need to add the explanation that babel-loader, wants to be familiar with the build tool.
// tsconfig.json
{
"compilerOptions": {
"noImplicitAny": true,
"target": "es5",
"module": "commonjs",
"outDir": "tsdist/",
"sourceMap": true,
"jsx": "react",
"allowJs": true,
"typeRoots": [
"./node_modules/@types"
],
"lib": [
"es6",
"dom",
"scripthost"
]
},
"include": [
"tslib/**/*",
"tssrc/**/*"
]
}