mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-11-01 07:45:43 +01:00
42 lines
859 B
JavaScript
42 lines
859 B
JavaScript
|
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",
|
||
|
"logplease"
|
||
|
|
||
|
],
|
||
|
plugins: [
|
||
|
resolve({
|
||
|
preferBuiltins: true,
|
||
|
}),
|
||
|
commonJS({
|
||
|
preserveSymlinks: true,
|
||
|
include: "node_modules/**",
|
||
|
exclude: "node_modules/big-integer/**"
|
||
|
}),
|
||
|
json()
|
||
|
]
|
||
|
};
|