@mutsuntsai/rsbuild-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Rsbuild Utils

Helper functions for setting up custom chunks in Rsbuild. Supports only PNPM for now.

Installation

pnpm add -D @mutsuntsai/rsbuild-utils

Usage

/**
 * Create a test function such that it returns true if and only if
 * the module matches any of the given {@link RegExp}s.
 */
export declare function makeTest(...tests: RegExp[]): (m: unknown) => boolean;

/**
 * Based on the dependencies recorded in `pnpm-lock.yaml` file,
 * create a {@link RegExp} that covers all descendant packages of the given packages.
 *
 * Note that this function has a side-effect: it will not include
 * packages that were collected during previous calls of this function.
 */
export declare function createDescendantRegExp(...names: string[]): RegExp;

Readme

Keywords

none

Package Sidebar

Install

npm i @mutsuntsai/rsbuild-utils

Weekly Downloads

4

Version

1.0.1

License

MIT

Unpacked Size

6.58 kB

Total Files

6

Last publish

Collaborators

  • mutsuntsai