enable sourcemaps for taler-wallet-cli
This commit is contained in:
parent
d1532f74b5
commit
c35b83cae1
@ -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(),
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user