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

swc-builder

v0.2.2

Published

—————————

Downloads

7

Readme

swcBuilder

—————————

用于构建基于 React、typescript、less 开发的公共库

  • 工具库
  • 组件库

Get Started

  1. 安装依赖 npm i swc-builder
  2. 新增 swcBuild.config.js 配置文件
  3. 执行打包命令 swcBuilder

配置文件 swcBuild.config.js 例子:

module.exports = {
  // 打包入口,默认 ./src
  baseUrl: "./src",
  // 是否输出 ES Module,值为字符串,则覆盖默认文件夹名(es),默认 true
  es: true,
  // 是否输出 commonjs,值为字符串,则覆盖默认文件夹名(lib),默认 false
  lib: true,
  // 是否对 less 文件进行处理,并输入出到 es/lib 文件夹下,默认 false
  style: false,
  // 是否输出 .d.ts,值为字符串,则覆盖默认文件夹名(types),默认 false
  ts: true,
  // ts 打包配置
  tsConfig: {
    // 额外指定用于 TypeScript 编译器在查找全局类型定义文件(也就是 .d.ts 文件)时应该搜索的目录,
    // 默认已指定了当前项目及往上两层的 node_modules/@types
    typeRoots: ['./typings'],
    // 辅助 ts 找到对应文件,默认为 {}
    paths: {
      "react": ["node_modules/react"]
    }
  }
  // 是否开启core-js,完善打包参数兼容性,开启时需指定core-js版本,并在项目中自行添加core-js依赖,默认false
  coreJs: '3.31.0'
};