mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-11-01 07:45:43 +01:00
34 lines
665 B
JavaScript
34 lines
665 B
JavaScript
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
import commonJS from "@rollup/plugin-commonjs";
|
|
|
|
export default {
|
|
input: "main.js",
|
|
output: {
|
|
file: "build/main.cjs",
|
|
format: "cjs",
|
|
},
|
|
external: [
|
|
"fs",
|
|
"os",
|
|
"worker_threads",
|
|
"readline",
|
|
"crypto",
|
|
"path",
|
|
"big-integer",
|
|
"wasmsnark",
|
|
"circom_runtime",
|
|
"blake2b-wasm",
|
|
|
|
"ffjavascript",
|
|
"keccak",
|
|
"yargs",
|
|
"logplease"
|
|
],
|
|
plugins: [
|
|
nodeResolve({ preferBuiltins: true }),
|
|
commonJS({
|
|
preserveSymlinks: true
|
|
}),
|
|
]
|
|
};
|