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 json from "@rollup/plugin-json";
import builtins from "builtin-modules"; import builtins from "builtin-modules";
import pkg from "./package.json"; import pkg from "./package.json";
import sourcemaps from 'rollup-plugin-sourcemaps';
export default { export default {
input: "lib/index.js", input: "lib/index.js",
output: { output: {
file: pkg.main, file: pkg.main,
format: "cjs", format: "cjs",
sourcemap: true,
}, },
external: builtins, external: builtins,
plugins: [ plugins: [
@ -17,12 +19,14 @@ export default {
preferBuiltins: true, preferBuiltins: true,
}), }),
json(), sourcemaps(),
commonjs({ commonjs({
sourceMap: false, sourceMap: true,
transformMixedEsModules: true, transformMixedEsModules: true,
}), }),
json(),
], ],
} }