2022-05-27 13:01:52 +00:00
|
|
|
import commonjs from "@rollup/plugin-commonjs";
|
|
|
|
import json from "@rollup/plugin-json";
|
2022-12-02 05:38:30 +00:00
|
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
2022-05-27 13:01:52 +00:00
|
|
|
|
|
|
|
export default {
|
2022-08-05 14:36:46 +00:00
|
|
|
input: {
|
|
|
|
index: "dist/index.js",
|
2022-08-24 06:14:43 +00:00
|
|
|
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
|
2022-09-19 03:50:29 +00:00
|
|
|
"lib/waku_message/version_0": "dist/lib/waku_message/version_0.js",
|
2022-09-19 06:20:33 +00:00
|
|
|
"lib/waku_message/topic_only_message":
|
|
|
|
"dist/lib/waku_message/topic_only_message.js",
|
2022-08-05 14:36:46 +00:00
|
|
|
},
|
2022-05-27 13:01:52 +00:00
|
|
|
output: {
|
2022-08-05 14:36:46 +00:00
|
|
|
dir: "bundle",
|
2022-07-26 05:00:24 +00:00
|
|
|
format: "esm",
|
2022-05-27 13:01:52 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
|
|
|
json(),
|
|
|
|
nodeResolve({
|
|
|
|
browser: true,
|
|
|
|
preferBuiltins: false,
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
};
|