mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-23 17:48:19 +00:00
* chore: setup rln as a new package * chore: migrate src * fix: wasm loading, tests, config * chore: fix Karma CI * fix: bundler * chore: copy dist resources * chore(rln): enable all tests * chore: increase karma timeouts
36 lines
741 B
JavaScript
36 lines
741 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 copy from "rollup-plugin-copy";
|
|
|
|
import * as packageJson from "./package.json" assert { type: "json" };
|
|
|
|
const input = extractExports(packageJson);
|
|
|
|
export default {
|
|
input,
|
|
output: {
|
|
dir: "bundle",
|
|
format: "esm",
|
|
preserveModules: true
|
|
},
|
|
plugins: [
|
|
copy({
|
|
targets: [
|
|
{
|
|
src: ["src/resources/*"],
|
|
dest: "bundle/resources"
|
|
}
|
|
],
|
|
copyOnce: true
|
|
}),
|
|
commonjs(),
|
|
json(),
|
|
nodeResolve({
|
|
browser: true,
|
|
preferBuiltins: false
|
|
})
|
|
]
|
|
};
|