UNPKG

lml-main

Version:

This is now a mono repository published into many standalone packages.

37 lines (34 loc) 921 B
'use strict'; var HappyPack = require('happypack'); 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?$/, exclude: /node_modules/, loader: 'happypack/loader?id=ts' } ] }, resolve: { extensions: ['.ts', '.tsx', 'js'] }, plugins: [ new HappyPack({ id: 'ts', threads: 2, loaders: [ { path: 'ts-loader', query: { happyPackMode: true } } ] }), new ForkTsCheckerWebpackPlugin({ checkSyntacticErrors: true }) ] };