import nodeResolve from "rollup-plugin-node-resolve";
import typescript from "rollup-plugin-typescript";

let pkg = require("./package.json");

let sourceMap = process.argv.some(item => item.toLowerCase() === "--dev");

export default {
    entry: "src/index.ts",
    plugins: [
        typescript({ typescript: require("typescript"), target: "es5" }),
        nodeResolve({ jsnext: true, main: true }),
    ],
    targets: [
        {
            dest: "dist/xades.js",
            format: "umd",
            moduleName: "XAdES",
            sourceMap
        }
    ]
};
@@ -147,17 +147,17 @@
 t source
-M
+m
 ap = pro
@@ -238,13 +238,13 @@
     
-entry
+input
 : %22s
@@ -265,307 +265,293 @@
     
-plugins: %5B%0A        typescript(%7B typescript: require(%22typescript%22), target: %22es5%22 %7D),%0A        nodeResolve(%7B jsnext: true, main: true %7D),%0A    %5D,%0A    targets: %5B%0A        %7B%0A            dest: %22dist/xades.js%22,%0A            format: %22umd%22,%0A            moduleName: %22XAdES%22,%0A            sourceMap%0A        %7D%0A    %5D
+output: %5B%0A        %7B%0A            file: %22dist/xades.js%22,%0A            format: %22umd%22,%0A            sourcemap%0A        %7D%0A    %5D,%0A    name: %22XAdES%22,%0A    plugins: %5B%0A        typescript(%7B typescript: require(%22typescript%22), target: %22es5%22 %7D),%0A        nodeResolve(%7B jsnext: true, main: true %7D),%0A    %5D,
 %0A%7D;

Fix rollup config