mirror of
https://github.com/tornadocash/snarkjs.git
synced 2024-11-01 07:45:43 +01:00
17 lines
336 B
JavaScript
17 lines
336 B
JavaScript
import fs from "fs";
|
|
import { builtinModules as builtin } from "module";
|
|
|
|
const pkg = JSON.parse(fs.readFileSync("./package.json"));
|
|
|
|
export default {
|
|
input: "main.js",
|
|
output: {
|
|
file: "build/main.cjs",
|
|
format: "cjs",
|
|
},
|
|
external: [
|
|
...Object.keys(pkg.dependencies),
|
|
...builtin,
|
|
]
|
|
};
|