Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import babel from "rollup-plugin-babel";
import uglify from "rollup-plugin-uglify";
export default {
input: "src/index.js",
output: [
{
file: "dist/calendardates.cjs.js",
format: "cjs",
name: "calendar-dates"
},
{
file: "dist/calendardates.esm.js",
format: "es",
name: "calendar-dates"
}
],
plugins: [
resolve(),
commonjs(),
uglify(),
babel({
exclude: "node_modules/**"
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment