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.
2019-01-25 10:43:13 +00:00
|
|
|
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 }),
|
|
|
|
],
|
2019-01-25 12:47:26 +00:00
|
|
|
external: ["crypto", ...Object.keys(pkg.dependencies)],
|
2019-01-25 10:43:13 +00:00
|
|
|
output: [
|
|
|
|
{
|
|
|
|
banner: banner.join("\n"),
|
|
|
|
file: pkg.main,
|
|
|
|
format: "cjs",
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|