mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-15 06:54:14 +00:00
1e86c3d63e
* initialise the new package * move dns-discovery * move peer-exchange * move local-peer-cache-discovery * add polyfill for node - dynamic import * update size-limit * update release-please * chore: update pacakge desc * chore: cleanup * add peer-exchange and local peer cache to size-limit
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
|
|
})
|
|
]
|
|
};
|