import babel from "rollup-plugin-babel";

const plugins = [
  babel({
    exclude: "node_modules/**"
  })
];

export default {
  entry: "src/index.js",
  moduleName: "ElementWrapper",
  exports: "named",
  format: "umd",
  plugins,
  sourceMap: false,
  targets: [
    { dest: `dist/element-wrapper.js`, format: "umd" },
    { dest: `dist/element-wrapper-es.js`, format: "es" }
  ]
};

import babel from "rollup-plugin-babel";

export default {
  entry: "src/index.js",
  moduleName: "ElementWrapper",
  exports: "named",
  format: "umd",
  plugins: [
    babel({
      exclude: "node_modules/**"
    })
  ],
  sourceMap: false,
  targets: [
    { dest: `dist/element-wrapper.js`, format: "umd" },
    { dest: `dist/element-wrapper-es.js`, format: "es" }
  ]
};

Simplify rollup config