Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save tfiechowski/17b0b19d225b5f2268833e83b08f0e55 to your computer and use it in GitHub Desktop.
Save tfiechowski/17b0b19d225b5f2268833e83b08f0e55 to your computer and use it in GitHub Desktop.
import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs";
import resolve from "rollup-plugin-node-resolve";
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/**"
}),
resolve(),
commonjs()
]
}
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment