enable sourcemaps for taler-wallet-cli

This commit is contained in:
Florian Dold 2020-08-27 14:22:47 +05:30
parent d1532f74b5
commit c35b83cae1
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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(),
],
}