aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-08-27 14:22:47 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-08-27 14:22:47 +0530
commitc35b83cae13bb86ae3d4ea37b118473b44350317 (patch)
treef0cfcd95fb4a4b2d0b0f999adafbda58f94cd823
parentd1532f74b5b23a3910b8cc174fc745052d3f4938 (diff)
enable sourcemaps for taler-wallet-cli
-rw-r--r--packages/taler-wallet-cli/rollup.config.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/taler-wallet-cli/rollup.config.js b/packages/taler-wallet-cli/rollup.config.js
index 07930e00f..e7d7a7007 100644
--- a/packages/taler-wallet-cli/rollup.config.js
+++ b/packages/taler-wallet-cli/rollup.config.js
@@ -4,12 +4,14 @@ import nodeResolve from "@rollup/plugin-node-resolve";
import json from "@rollup/plugin-json";
import builtins from "builtin-modules";
import pkg from "./package.json";
+import sourcemaps from 'rollup-plugin-sourcemaps';
export default {
input: "lib/index.js",
output: {
file: pkg.main,
format: "cjs",
+ sourcemap: true,
},
external: builtins,
plugins: [
@@ -17,12 +19,14 @@ export default {
preferBuiltins: true,
}),
- json(),
+ sourcemaps(),
commonjs({
- sourceMap: false,
+ sourceMap: true,
transformMixedEsModules: true,
}),
+
+ json(),
],
}