mirror of https://github.com/waku-org/js-waku.git
26 lines
665 B
JavaScript
26 lines
665 B
JavaScript
import commonjs from "@rollup/plugin-commonjs";
|
|
import json from "@rollup/plugin-json";
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
|
|
export default {
|
|
input: {
|
|
index: "dist/index.js",
|
|
"lib/predefined_bootstrap_nodes": "dist/lib/predefined_bootstrap_nodes.js",
|
|
"lib/message/version_0": "dist/lib/message/version_0.js",
|
|
"lib/message/topic_only_message": "dist/lib/message/topic_only_message.js",
|
|
"lib/base_protocol": "dist/lib/base_protocol.js",
|
|
},
|
|
output: {
|
|
dir: "bundle",
|
|
format: "esm",
|
|
},
|
|
plugins: [
|
|
commonjs(),
|
|
json(),
|
|
nodeResolve({
|
|
browser: true,
|
|
preferBuiltins: false,
|
|
}),
|
|
],
|
|
};
|