better sourcemaps

This commit is contained in:
Eugene Pankov
2019-08-09 17:39:03 +02:00
parent bb845ee803
commit e6de63c689
7 changed files with 156 additions and 55 deletions

View File

@@ -1,11 +1,10 @@
const path = require('path')
const webpack = require('webpack')
module.exports = {
target: 'node',
entry: 'src/index.ts',
context: __dirname,
mode: 'development',
devtool: 'cheap-module-eval-source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
@@ -55,11 +54,4 @@ module.exports = {
/^@ng-bootstrap/,
/^terminus-/,
],
plugins: [
new webpack.optimize.ModuleConcatenationPlugin(),
new webpack.SourceMapDevToolPlugin({
exclude: [/node_modules/, /vendor/],
filename: '[file].map',
}),
],
}