mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
use webpack.sourcemapdevtoolplugin for reliable sourcemaps
This commit is contained in:
@@ -4,7 +4,6 @@ const webpack = require('webpack')
|
||||
module.exports = {
|
||||
target: 'node',
|
||||
entry: 'src/index.ts',
|
||||
devtool: 'source-map',
|
||||
context: __dirname,
|
||||
mode: 'development',
|
||||
output: {
|
||||
@@ -58,5 +57,9 @@ module.exports = {
|
||||
],
|
||||
plugins: [
|
||||
new webpack.optimize.ModuleConcatenationPlugin(),
|
||||
new webpack.SourceMapDevToolPlugin({
|
||||
exclude: [/node_modules/, /vendor/],
|
||||
filename: '[file].map',
|
||||
}),
|
||||
],
|
||||
}
|
||||
|
Reference in New Issue
Block a user