Skip to content

Commit

Permalink
Merge pull request #2159 from Tyriar/2158_wp_sourcemaps
Browse files Browse the repository at this point in the history
Build sourcemaps in lib
  • Loading branch information
Tyriar committed May 31, 2019
2 parents b098649 + f8c311b commit fc91b95
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ],
Expand Down

0 comments on commit fc91b95

Please sign in to comment.