js-waku/packages/utils/rollup.config.js

25 lines
518 B
JavaScript
Raw Permalink Normal View History

2022-11-02 06:03:38 +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);
2022-11-02 06:03:38 +00:00
export default {
input,
2022-11-02 06:03:38 +00:00
output: {
dir: "bundle",
format: "esm"
2022-11-02 06:03:38 +00:00
},
plugins: [
commonjs(),
json(),
nodeResolve({
browser: true,
preferBuiltins: false
})
]
2022-11-02 06:03:38 +00:00
};