2023-03-10 04:50:24 +00:00
|
|
|
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",
|
2023-08-16 14:48:13 +00:00
|
|
|
format: "esm"
|
2023-03-10 04:50:24 +00:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
commonjs(),
|
|
|
|
json(),
|
|
|
|
nodeResolve({
|
|
|
|
browser: true,
|
2023-08-16 14:48:13 +00:00
|
|
|
preferBuiltins: false
|
|
|
|
})
|
|
|
|
]
|
2023-03-10 04:50:24 +00:00
|
|
|
};
|