snarkjs/config/rollup.cjs.config.js

17 lines
336 B
JavaScript
Raw Normal View History

2021-02-10 05:42:05 +01:00
import fs from "fs";
import { builtinModules as builtin } from "module";
const pkg = JSON.parse(fs.readFileSync("./package.json"));
2020-07-11 10:31:52 +02:00
export default {
input: "main.js",
output: {
2020-07-13 07:21:03 +02:00
file: "build/main.cjs",
2020-07-11 10:31:52 +02:00
format: "cjs",
},
2020-07-13 07:21:03 +02:00
external: [
2021-02-10 05:42:05 +01:00
...Object.keys(pkg.dependencies),
...builtin,
2020-07-11 10:31:52 +02:00
]
};