npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

heft-rollup-plugin

v0.1.0-beta.20250913100541

Published

Heft plugin for Rollup

Readme

heft-rollup-plugin

A Heft plugin for Rollup, similar to the official heft-webpack5-plugin.

Installation

npm install heft-rollup-plugin rollup --save-dev

Usage

1. Configure your heft.json

Add the plugin to your config/heft.json:

{
  "$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json",
  
  "heftPlugins": [
    {
      "plugin": "heft-rollup-plugin"
    }
  ]
}

2. Create a Rollup configuration

Create a rollup.config.js file in your project root:

export default {
  input: 'src/index.ts',
  output: {
    file: 'dist/bundle.js',
    format: 'esm'
  }
};

3. Plugin Options

You can configure the plugin by adding options in your heft.json:

{
  "heftPlugins": [
    {
      "plugin": "heft-rollup-plugin",
      "options": {
        "configurationPath": "./custom-rollup.config.js",
        "devConfigurationPath": "./rollup.dev.config.js"
      }
    }
  ]
}

4. Available Parameters

  • --rollup:serve: Start in serve mode (watch mode only)

5. Configuration Files

The plugin will look for configuration files in this order:

Normal mode:

  1. Path specified in configurationPath option
  2. rollup.config.js
  3. rollup.config.mjs
  4. rollup.config.ts

Serve mode:

  1. Path specified in devConfigurationPath option
  2. rollup.dev.config.js
  3. rollup.dev.config.mjs
  4. rollup.dev.config.ts
  5. Falls back to normal mode files

API

The plugin provides hooks for customization:

import type { IRollupPluginAccessor } from 'heft-rollup-plugin';

// Access the plugin via Heft
const rollupPlugin: IRollupPluginAccessor = heftSession.requestPlugin('rollup-plugin');

// Use hooks to customize behavior
rollupPlugin.hooks.onLoadConfiguration.tapPromise('MyPlugin', async () => {
  // Return custom configuration
});

rollupPlugin.hooks.onConfigure.tapPromise('MyPlugin', async (configuration) => {
  // Modify the configuration
});

Development

Setup

# Install dependencies
npm install

# Build the plugin
npm run build

# Test the plugin
npm test

# Lint the code
npm run lint

Contributing

This project uses Conventional Commits for commit messages and automatic versioning.

Commit Message Format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Common types:

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code
  • refactor: A code change that neither fixes a bug nor adds a feature
  • perf: A code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files

Making Commits

You can use commitizen for interactive commit messages:

npm run commit

Or write conventional commit messages manually:

git commit -m "feat: add new rollup plugin feature"

Release Process

This project uses automated releases:

  • Beta releases: Automatically published to npm with @next tag when changes are merged to main branch
  • Stable releases: Published when a version tag is created using semantic-release
  • Version bumping: Automatic based on conventional commit history
  • Release notes: Auto-generated from conventional commits

Manual Release

To trigger a release manually:

# This will analyze commits and create a release if needed
npm run release

License

MIT