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
493 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: ["crypto", ...Object.keys(pkg.dependencies)],
output: [
{
banner: banner.join("\n"),
file: pkg.main,
format: "cjs",
}
]
};