This repository has been archived on 2023-04-04. You can view files and clone it, but cannot push or open issues or pull requests.
webcrypto/rollup.config.js

20 lines
478 B
JavaScript

import typescript from "rollup-plugin-typescript";
const pkg = require("./package.json");
const banner = [pkg.banner || "", ""];
export default {
input: "src/index.ts",
plugins: [
typescript({ typescript: require("typescript"), target: "esnext", removeComments: true }),
],
external: Object.keys(pkg.dependencies),
output: [
{
banner: banner.join("\n"),
file: pkg.main,
format: "cjs",
}
]
};