mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-11-01 07:45:43 +01:00
25 lines
645 B
JavaScript
25 lines
645 B
JavaScript
import resolve from "rollup-plugin-node-resolve";
|
|
import commonJS from "rollup-plugin-commonjs";
|
|
import ignore from "rollup-plugin-ignore";
|
|
import replace from "rollup-plugin-replace";
|
|
import { terser } from "rollup-plugin-terser";
|
|
|
|
export default {
|
|
input: "main.js",
|
|
output: {
|
|
file: "build/snarkjs.min.js",
|
|
format: "iife",
|
|
globals: {
|
|
os: "null"
|
|
},
|
|
name: "snarkjs"
|
|
},
|
|
plugins: [
|
|
ignore(["fs", "os", "crypto", "readline", "worker_threads"]),
|
|
resolve(),
|
|
commonJS(),
|
|
replace({ "process.browser": !!process.env.BROWSER }),
|
|
terser()
|
|
]
|
|
};
|