1
0
Fork 0

🔧 Added custom rollup config for tests

This commit is contained in:
Joost De Cock 2019-05-31 12:48:27 +02:00
parent 5948ae7386
commit d48080bbb5
2 changed files with 28 additions and 3 deletions

View file

@ -0,0 +1,24 @@
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import json from "rollup-plugin-json";
export default {
input: "src/index.js",
output: [
{
file: "tests/dist/index.js",
format: "cjs",
sourcemap: true
}
],
plugins: [
resolve(),
json(),
commonjs(),
babel({
exclude: "node_modules/**",
plugins: ["@babel/plugin-proposal-object-rest-spread"]
})
]
};