mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-10 04:26:33 +00:00
87717981eb
* chore: update noise * update: package.lock * update: @chainsafe/libp2p-gossipsub * rm unwanted libp2p interface deps & bump up libp2p * refactor code for new deps * update: new package.lock * setup prettier, refactor eslint and rm trailing commas * update package.lock * fix build * import type for interface * fix imports for merge * update typedoc exports * add: CustomEvent import * use new libp2p interface * add aegir as dev dep for tests
25 lines
518 B
JavaScript
25 lines
518 B
JavaScript
import commonjs from "@rollup/plugin-commonjs";
|
|
import json from "@rollup/plugin-json";
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
import { extractExports } from "@waku/build-utils";
|
|
|
|
import * as packageJson from "./package.json" assert { type: "json" };
|
|
|
|
const input = extractExports(packageJson);
|
|
|
|
export default {
|
|
input,
|
|
output: {
|
|
dir: "bundle",
|
|
format: "esm"
|
|
},
|
|
plugins: [
|
|
commonjs(),
|
|
json(),
|
|
nodeResolve({
|
|
browser: true,
|
|
preferBuiltins: false
|
|
})
|
|
]
|
|
};
|