From f8c311b59f5313d207bb1b90ced97e5a0082ca71 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Fri, 31 May 2019 11:06:41 -0700 Subject: [PATCH] Build sourcemaps in lib Fixes #2158 --- webpack.config.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index d62cba20e6..5e0a275471 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,6 +13,17 @@ const path = require('path'); */ module.exports = { entry: './out/public/Terminal.js', + devtool: 'source-map', + module: { + rules: [ + { + test: /\.js$/, + use: ["source-map-loader"], + enforce: "pre", + exclude: /node_modules/ + } + ] + }, resolve: { modules: ['./node_modules'], extensions: [ '.js' ],