I am trying to build a frontend, there is no experience at all, so don’t scold if that) I use TypeScript, JSX. connected React. I collect using Webpack.
build.js
var path = require("path"); var webpack = require("webpack"); var config = { context: path.join(__dirname, '/app/Account'), entry: './login.js', output: { path: path.join(__dirname, 'out') }, module: { loaders: [{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' }] } } var compiler = webpack(config); compiler.run(function (err, stats) { console.log(stats); if (err) console.log(err); }); .babelrc
{ "presets": [ "es2015" ] } tsconfig.json
{ "compileOnSave": true, "compilerOptions": { "module": "umd", "target": "es5", "jsx": "react" } } At the same time in the browser we see the following:
That is, the transformation into a clear browser code did not occur. What am I doing wrong?
Just in case, the structure of the project, you never know, something stumbled:

