Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save tfiechowski/cf22720d076c6cffb7fccef5f03de47f to your computer and use it in GitHub Desktop.

Select an option

Save tfiechowski/cf22720d076c6cffb7fccef5f03de47f to your computer and use it in GitHub Desktop.
import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs";
import packageJSON from "./package.json";
const input = "./src/index.js";
export default [
// CommonJS
{
input,
output: {
file: packageJSON.main,
format: "cjs"
},
plugins: [
babel({
exclude: "node_modules/**"
}),
commonjs()
]
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment