snarkjs/config/rollup.cjs.config.js

17 lines
336 B
JavaScript
Raw Normal View History

2021-02-10 07:42:05 +03:00
import fs from "fs";
import { builtinModules as builtin } from "module";
const pkg = JSON.parse(fs.readFileSync("./package.json"));
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: [
2021-02-10 07:42:05 +03:00
...Object.keys(pkg.dependencies),
...builtin,
2020-07-11 11:31:52 +03:00
]
};