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

@meteorjs/rspack

v1.1.0-beta.31

Published

Configuration logic for using Rspack in Meteor projects

Readme

@meteorjs/rspack

The default Rspack configuration for Meteor applications. This package provides everything you need to bundle your Meteor app with Rspack out of the box: client and server builds, SWC transpilation, React/Blaze/Angular support, hot module replacement, asset management, and all the Meteor-specific wiring so you don't have to.

When Meteor runs with the Rspack bundler enabled, this package is what generates the underlying Rspack configuration. It detects your project setup (TypeScript, React, Blaze, Angular), sets up the right loaders and plugins, defines Meteor.isClient/Meteor.isServer and friends, configures caching, and exposes a set of helpers you can use in your own rspack.config.js to customize the build without breaking Meteor integration.

What it provides

  • Dual client/server builds with the correct targets, externals, and output paths
  • SWC-based transpilation for JS/TS/JSX/TSX with automatic framework detection
  • React Fast Refresh in development when React is enabled
  • Blaze template handling via ignore-loader when Blaze is enabled
  • Persistent filesystem caching for fast rebuilds
  • Asset externals and HTML generation through custom Rspack plugins
  • A defineConfig helper that accepts a factory function receiving Meteor environment flags and build utilities
  • Customizable config via rspack.config.js in your project root, with safe merging that warns if you try to override reserved settings

Installation

Rspack integration is automatically managed by the rspack Atmosphere package.

meteor add rspack

By doing this, your Meteor app will automatically serve @meteorjs/rspack and the required @rspack/cli, @rspack/core, among others.

Usage

In your project's rspack.config.js, use the defineConfig helper to customize the build. The factory function receives a env object with Meteor environment flags and helper utilities:

const { defineConfig } = require('@meteorjs/rspack');

module.exports = defineConfig((env, argv) => {
  // env.isClient, env.isServer, env.isDevelopment, env.isProduction
  // env.isReactEnabled, env.isBlazeEnabled, etc.

  return {
    // Your custom Rspack configuration here.
    // It gets safely merged with the Meteor defaults.
  };
});

More information is available in the official docs: Rspack Bundler Integration.

Development

Install dependencies

npm install

Version bumping

Use npm run bump to update the version in package.json before publishing.

npm run bump -- <major|minor|patch> [--beta]

Standard bumps increment the version and remove any prerelease suffix:

npm run bump -- patch   # 1.0.1 -> 1.0.2
npm run bump -- minor   # 1.0.1 -> 1.1.0
npm run bump -- major   # 1.0.1 -> 2.0.0

Beta bumps append or increment a -beta.N prerelease suffix:

npm run bump -- patch --beta   # 1.0.1 -> 1.0.2-beta.0
npm run bump -- patch --beta   # 1.0.2-beta.0 -> 1.0.2-beta.1
npm run bump -- patch --beta   # 1.0.2-beta.1 -> 1.0.2-beta.2

If you change the bump level while on a beta, the base version updates and the beta counter resets:

npm run bump -- minor --beta   # 1.0.2-beta.2 -> 1.1.0-beta.0
npm run bump -- major --beta   # 1.1.0-beta.0 -> 2.0.0-beta.0

Publishing a beta release

After bumping to a beta version, publish to the beta dist-tag:

npm run bump -- patch --beta
npm run publish:beta

Users can then install the beta with:

npm install @meteorjs/rspack@beta

You can pass extra flags to npm publish through the script:

npm run publish:beta -- --dry-run

Publishing an official release

After bumping to a stable version, publish with the default latest tag:

npm run bump -- patch
npm publish

Typical workflows

Beta iteration: ship multiple beta builds for the same upcoming patch:

npm run bump -- patch --beta    # 1.0.1 -> 1.0.2-beta.0
npm run publish:beta
# ... fix issues ...
npm run bump -- patch --beta    # 1.0.2-beta.0 -> 1.0.2-beta.1
npm run publish:beta

Promote beta to stable: once the beta is ready, bump to the stable version and publish:

npm run bump -- patch           # 1.0.2-beta.1 -> 1.0.3
npm publish

Direct stable release: skip the beta phase entirely:

npm run bump -- minor           # 1.0.1 -> 1.1.0
npm publish