2018-07-23 14:16:39 +00:00
|
|
|
import filesize from "rollup-plugin-filesize";
|
|
|
|
import babel from "rollup-plugin-babel";
|
|
|
|
import resolve from "rollup-plugin-node-resolve";
|
|
|
|
import json from "rollup-plugin-json";
|
2018-07-23 11:12:06 +00:00
|
|
|
|
|
|
|
export default {
|
2018-07-23 14:16:39 +00:00
|
|
|
input: "src/index.js",
|
|
|
|
output: {
|
|
|
|
file: "dist/module.js",
|
|
|
|
format: "cjs"
|
|
|
|
},
|
|
|
|
plugins: [
|
2018-07-23 11:12:06 +00:00
|
|
|
resolve({
|
|
|
|
browser: false
|
2018-07-23 14:16:39 +00:00
|
|
|
}),
|
|
|
|
json(),
|
|
|
|
babel({
|
|
|
|
exclude: "node_modules/**"
|
|
|
|
}),
|
|
|
|
filesize()
|
2018-07-23 11:12:06 +00:00
|
|
|
]
|
|
|
|
};
|