Skip to content

Commit

Permalink
Fix webpack configuration for mappings.wasm location
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrch committed Nov 11, 2019
1 parent 4e81966 commit 6003c0e
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 12 deletions.
124 changes: 113 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "duk-debug",
"displayName": "Duktape Debugger",
"version": "0.5.4",
"version": "0.5.5",
"description": "Debug Adapter for Duktape runtimes.",
"author": "Harold Brenes",
"publisher": "HaroldBrenes",
Expand Down Expand Up @@ -49,6 +49,7 @@
"@types/bluebird": "^3.5.27",
"@types/es6-promise": "^3.3.0",
"@types/node": "^10.14.20",
"copy-webpack-plugin": "^5.0.5",
"del": "^2.2.2",
"fs-extra": "^2.1.2",
"prettier": "^1.17.1",
Expand Down
11 changes: 11 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"use strict";

const path = require("path");
const CopyPlugin = require('copy-webpack-plugin');

const config = {
target: "node",
Expand Down Expand Up @@ -30,9 +31,19 @@ const config = {
]
}
]
},
plugins: [
new CopyPlugin([{
from: path.resolve('node_modules/source-map/lib/mappings.wasm')
}])
],
node: {
__dirname: false
}
};



module.exports = (env, argv) => {
if (argv.mode === "development") {
config.devtool = "source-map";
Expand Down

0 comments on commit 6003c0e

Please sign in to comment.