27 lines
727 B
JavaScript
27 lines
727 B
JavaScript
import { terser } from "rollup-plugin-terser";
|
|
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";
|
|
import yaml from "rollup-plugin-yaml";
|
|
import { name, version, description, author, license } from "./package.json";
|
|
|
|
export default {
|
|
input: "src/index.js",
|
|
plugins: [
|
|
resolve({
|
|
browser: true
|
|
}),
|
|
json(),
|
|
yaml(),
|
|
commonjs(),
|
|
babel({
|
|
exclude: "node_modules/**"
|
|
}),
|
|
terser({
|
|
output: {
|
|
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
|
|
}
|
|
})
|
|
]
|
|
};
|