2021-01-17 00:49:52 +03:00
|
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
|
|
import commonJS from "@rollup/plugin-commonjs";
|
2020-07-11 11:31:52 +03:00
|
|
|
|
|
|
|
export default {
|
|
|
|
input: "main.js",
|
|
|
|
output: {
|
2020-07-13 08:21:03 +03:00
|
|
|
file: "build/main.cjs",
|
2020-07-11 11:31:52 +03:00
|
|
|
format: "cjs",
|
|
|
|
},
|
2020-07-13 08:21:03 +03:00
|
|
|
external: [
|
|
|
|
"fs",
|
|
|
|
"os",
|
|
|
|
"worker_threads",
|
|
|
|
"readline",
|
|
|
|
"crypto",
|
|
|
|
"path",
|
|
|
|
"big-integer",
|
|
|
|
"wasmsnark",
|
|
|
|
"circom_runtime",
|
|
|
|
"blake2b-wasm",
|
|
|
|
|
|
|
|
"ffjavascript",
|
|
|
|
"keccak",
|
|
|
|
"yargs",
|
|
|
|
"logplease"
|
|
|
|
],
|
2020-07-11 11:31:52 +03:00
|
|
|
plugins: [
|
2021-01-17 00:49:52 +03:00
|
|
|
nodeResolve({ preferBuiltins: true }),
|
2020-07-11 11:31:52 +03:00
|
|
|
commonJS({
|
|
|
|
preserveSymlinks: true
|
|
|
|
}),
|
|
|
|
]
|
|
|
|
};
|