snarkjs/config/rollup.cli.config.js

43 lines
884 B
JavaScript
Raw Normal View History

2020-07-11 10:31:52 +02:00
import resolve from "rollup-plugin-node-resolve";
import commonJS from "rollup-plugin-commonjs";
import json from "rollup-plugin-json";
export default {
input: "cli.js",
output: {
file: "build/cli.cjs",
format: "cjs",
banner: "#! /usr/bin/env node\n",
},
external: [
"fs",
"os",
"worker_threads",
"readline",
"crypto",
"path",
"big-integer",
"wasmsnark",
"circom_runtime",
"blake2b-wasm",
"ffjavascript",
"keccak",
"yargs",
2020-07-13 08:37:21 +02:00
"logplease",
2020-07-11 10:31:52 +02:00
2020-07-13 08:37:21 +02:00
"app-root-path"
2020-07-11 10:31:52 +02:00
],
plugins: [
resolve({
preferBuiltins: true,
}),
commonJS({
preserveSymlinks: true,
include: "node_modules/**",
exclude: "node_modules/big-integer/**"
}),
json()
]
};