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

@winner-fed/bundler-rsbuild2

v0.19.2

Published

@winner-fed/bundler-rsbuild2, based on Rsbuild 2.x (Rspack 2.x). External bundler for winjs, not a dependency of preset-win.

Readme

@winner-fed/bundler-rsbuild2

基于 Rsbuild 2.x(Rspack 2.x)的 WinJS 构建/开发 bundler。

@winner-fed/bundler-rsbuild(Rsbuild 1.x)相互独立、互不影响: 本包不内置@winner-fed/preset-win 的依赖中,属于外置(热插拔)bundler, 需要在业务项目中显式安装。

环境要求

  • Node.js >=20.19(Rsbuild 2.x 的硬性要求,@rsbuild/core 2.x 为纯 ESM 包, 本包通过 Node 的 require(esm) 能力在 CJS 产物中加载它)

使用

pnpm add -D @winner-fed/bundler-rsbuild2
// .winrc.ts
export default defineConfig({
  rsbuild2: {
    removeConsole: true,
  },
});

未安装本包且未配置 rsbuild2 的项目完全不受影响;卸载本包并移除 rsbuild2 配置即可回退到其他 bundler。

与 bundler-rsbuild(Rsbuild 1.x)的行为差异

| 项目 | bundler-rsbuild | bundler-rsbuild2 | | ---- | --------------- | ---------------- | | analyze 配置 / ANALYZE 环境变量 | performance.bundleAnalyze | Rsbuild 2.x 已移除该配置,输出警告并建议使用 Rsdoctor | | moment locale 忽略 | performance.removeMomentLocale | 改由 tools.rspack 中的 IgnorePlugin 实现(默认行为一致) | | server.host 默认值 | 0.0.0.0 | 显式透传 host,不受 Rsbuild 2.x 默认值(localhost)影响 | | proxy changeOrigin 默认值 | false(http-proxy-middleware v2) | 显式补 false,不受 http-proxy-middleware v4 默认值(true)影响 | | resolve.alias | resolve.alias | resolve.alias(v2 中 source.alias 已移除) |

用户侧升级注意事项(Rsbuild 1.x → 2.x)

  • modifyBundlerChain 中往 CHAIN_ID.RULE.JS / RULE.CSS 挂 loader 的代码, 需改用 CHAIN_ID.ONE_OF.JS_MAIN / CSS_MAIN(v2 的 JS/CSS 规则改用 oneOf 分支)。
  • 浏览器默认目标升级(如 Chrome 87 → 107),如需旧行为请显式配置 targets
  • core-js 从默认依赖改为可选 peer 依赖,使用 output.polyfill 时需自行安装。