ffjavascript/rollup.cjs.config.js

17 lines
336 B
JavaScript
Raw Permalink Normal View History

import fs from "fs";
import { builtinModules as builtin } from "module";
const pkg = JSON.parse(fs.readFileSync("./package.json"));
2020-07-07 19:21:41 +02:00
export default {
input: "main.js",
output: {
2020-07-13 07:59:54 +02:00
file: "build/main.cjs",
2020-07-07 19:21:41 +02:00
format: "cjs",
},
external: [
...Object.keys(pkg.dependencies),
...builtin,
2020-07-07 19:21:41 +02:00
]
};