2021-01-21 11:28:28 -07:00
|
|
|
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",
|
|
|
|
},
|
2021-01-21 11:28:28 -07:00
|
|
|
external: [
|
|
|
|
...Object.keys(pkg.dependencies),
|
|
|
|
...builtin,
|
2020-07-07 19:21:41 +02:00
|
|
|
]
|
|
|
|
};
|