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

@tracewayapp/bundler-plugin

v1.2.0

Published

Vite, Rollup and webpack plugins that inject ECMA-426 debug IDs into bundles and source maps for Traceway symbolication

Readme

Traceway Bundler Plugin

Vite, Rollup, and webpack plugins that inject ECMA-426 debug IDs into your bundles and source maps. A debug ID ties a deployed bundle to the exact source map produced by the same build, so Traceway symbolicates production stack traces against the right map regardless of filenames, CDNs, or concurrent deploys.

Traceway is a completely open-source error tracking platform. You can self-host it or use Traceway Cloud.

What It Does

For every emitted JS chunk, the plugin:

  • Derives a deterministic debug ID from the chunk's content (SHA-256, formatted as a UUID)
  • Injects a tiny runtime snippet that registers the ID in a _tracewayDebugIds global, so the Traceway SDK can report which bundles were involved in an exception
  • Appends the spec's //# debugId=<uuid> comment to the chunk
  • Writes the debugId field into the source map JSON (plus debug_id for Sentry-tooling compatibility)

The format follows the ECMA-426 Debug ID proposal (the same convention used by Sentry, Rollup's output.sourcemapDebugIds, and Bun), so artifacts stay interoperable across tooling.

Installation

npm install -D @tracewayapp/bundler-plugin

Vite

// vite.config.ts
import { defineConfig } from "vite";
import { tracewayDebugIds } from "@tracewayapp/bundler-plugin/vite";

export default defineConfig({
  build: {
    sourcemap: true,
  },
  plugins: [tracewayDebugIds()],
});

Rollup

// rollup.config.js
import { tracewayDebugIds } from "@tracewayapp/bundler-plugin/rollup";

export default {
  output: {
    sourcemap: true,
  },
  plugins: [tracewayDebugIds()],
};

webpack (5+)

// webpack.config.js
const {
  TracewayDebugIdsWebpackPlugin,
} = require("@tracewayapp/bundler-plugin/webpack");

module.exports = {
  devtool: "source-map",
  plugins: [new TracewayDebugIdsWebpackPlugin()],
};

Uploading

Upload your build output with @tracewayapp/sourcemap-upload as usual; the Traceway backend detects debug IDs in the uploaded files automatically and indexes the artifacts by ID. Frames without a debug ID (or uploads from builds without this plugin) keep resolving by filename.

npx @tracewayapp/sourcemap-upload \
  --url https://traceway.example.com \
  --token YOUR_SOURCE_MAP_TOKEN \
  --directory dist/assets

Node Bundles

The injected snippet detects window, globalThis, global, and self, so it works in bundled Node services the same way it does in browsers.

Links