js-waku/rollup.config.js

26 lines
669 B
JavaScript
Raw Normal View History

2022-05-27 23:01:52 +10:00
import { nodeResolve } from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
export default {
2022-08-06 00:36:46 +10:00
input: {
index: "dist/index.js",
"lib/create_waku": "dist/lib/create_waku.js",
"lib/peer_discovery_dns": "dist/lib/peer_discovery_dns/index.js",
2022-08-24 15:56:12 +10:00
"lib/peer_discovery_static_list": "dist/lib/peer_discovery_static_list.js",
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
2022-08-06 00:36:46 +10:00
},
2022-05-27 23:01:52 +10:00
output: {
2022-08-06 00:36:46 +10:00
dir: "bundle",
2022-07-26 15:00:24 +10:00
format: "esm",
2022-05-27 23:01:52 +10:00
},
plugins: [
commonjs(),
json(),
nodeResolve({
browser: true,
preferBuiltins: false,
}),
],
};