Webpack ts-loader : change tsconfig filename
In Webpack 4 you need to specify the options into a use object: use: [{ loader: ‘ts-loader’, options: { configFile: “tsconfig.webpack.json” } }] Complete Webpack config: var path = require(‘path’); module.exports = { entry: path.resolve(__dirname, ‘src’) + ‘/index.ts’, output: { path: path.resolve(__dirname, ‘dist’), filename: ‘your-library-name.js’, }, module: { rules: [ { test: /\.ts$/, use: [{ … Read more