I\'m learning webpack from scratch. I\'ve learned how to link javascript files with require. I\'m bundling and minifying my js files and i\'m listening for changes with watc
use this one instead ./webpack.config.js
var path = require('path');
module.exports = {
entry: './main.ts',
resolve: {
extensions: ['.webpack.js', '.web.js', '.ts', '.js']
},
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/
}
]
},
output: {
filename: 'bundle.js',
path: path.resolve(__dirname, 'dist')
}
}
the documentation can be found here the problem is related to the version of ts-loader you installed