text: import nodeResolve from "rollup-plugin-node-resolve";
  import typescript from "rollup-plugin-typescript";
  
  let pkg = require("./package.json");
  let external = Object.keys(pkg.dependencies);
  
  let sourceMap = process.argv.some(item => item.toLowerCase() === "--dev");
  
  export default {
      input: "src/index.ts",
      plugins: [
          typescript({ typescript: require("typescript"), target: "esnext" }),
          nodeResolve({ jsnext: true, main: true }),
      ],
      output: [
          {
              file: "dist/xmldsig.js",
              format: "umd",
              name: "XmlDSigJs",
              sourceMap
          }
      ]
  };