Package detail

@inrupt/base-rollup-config

inrupt6.1kMIT4.0.8

This package provides a shared rollup config for our packages

inrupt, rollup, bundler

readme

@inrupt/base-rollup-config

This package contains the base configuration for rollup across our packages

Installation

  1. npm install --save-dev @inrupt/base-rollup-config

Usage:

Can be used in rollup.config.mjs as follows:

import { createRequire } from "node:module";
import createConfig from "@inrupt/base-rollup-config";
const require = createRequire(import.meta.url);

export default createConfig(require("./package.json"));

Make sure to specify main (cjs), module (esm) and types entrypoints in the package.json as rollup uses these entries to determine where to write the output.