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" }
  ]
};

@@ -39,76 +39,8 @@
 %22;%0A%0A
-const plugins = %5B%0A  babel(%7B%0A    exclude: %22node_modules/**%22%0A  %7D)%0A%5D;%0A%0A
 expo
@@ -155,16 +155,75 @@
  plugins
+: %5B%0A    babel(%7B%0A      exclude: %22node_modules/**%22%0A    %7D)%0A  %5D
 ,%0A  sour

Simplify rollup config