lml-main
Version:
This is now a mono repository published into many standalone packages.
28 lines (25 loc) • 703 B
JavaScript
;
var ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');
module.exports = {
context: __dirname, // to automatically find tsconfig.json
devtool: 'inline-source-map',
entry: './src/index.ts',
output: { filename: 'dist/index.js' },
module: {
rules: [
{
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
transpileOnly: true // IMPORTANT! use transpileOnly mode to speed-up compilation
}
}
]
},
resolve: {
extensions: [ '.ts', '.tsx', 'js' ]
},
plugins: [
new ForkTsCheckerWebpackPlugin()
]
};