1
0
Fork 0
freesewing/packages/aaron/rollup.config.js

28 lines
811 B
JavaScript
Raw Normal View History

2018-08-11 16:42:35 +02:00
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import json from "rollup-plugin-json";
import minify from "rollup-plugin-babel-minify";
import peerDepsExternal from "rollup-plugin-peer-deps-external";
2018-08-11 16:42:35 +02:00
import { name, version, description, author, license } from "./package.json";
export default {
input: "src/index.js",
output: {
sourcemap: true
},
2018-08-11 16:42:35 +02:00
plugins: [
peerDepsExternal(),
resolve({ browser: true }),
2018-08-11 16:42:35 +02:00
json(),
babel({
exclude: "node_modules/**",
plugins: ["@babel/plugin-proposal-object-rest-spread"]
}),
minify({
comments: false,
sourceMap: true,
banner: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
})
]
2018-08-11 16:42:35 +02:00
};