@rolldown/pluginutils 1.0.0-beta.58 → 1.0.0-beta.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -13,11 +13,7 @@ pnpm add @rolldown/pluginutils
13
13
  ### Simple Filters
14
14
 
15
15
  ```ts
16
- import {
17
- exactRegex,
18
- makeIdFiltersToMatchWithQuery,
19
- prefixRegex,
20
- } from '@rolldown/pluginutils';
16
+ import { exactRegex, makeIdFiltersToMatchWithQuery, prefixRegex } from '@rolldown/pluginutils';
21
17
 
22
18
  // Match exactly 'foo.js'
23
19
  const filter = exactRegex('foo.js');
@@ -49,11 +45,7 @@ const myPlugin = {
49
45
  import { and, id, include, moduleType, query } from '@rolldown/pluginutils';
50
46
 
51
47
  // Build a filter expression
52
- const filterExpr = and(
53
- id(/\.ts$/),
54
- moduleType('ts'),
55
- query('foo', true),
56
- );
48
+ const filterExpr = and(id(/\.ts$/), moduleType('ts'), query('foo', true));
57
49
 
58
50
  // Usage in a plugin to define a hook filter
59
51
  const myPlugin = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rolldown/pluginutils",
3
- "version": "1.0.0-beta.58",
3
+ "version": "1.0.0-beta.59",
4
4
  "homepage": "https://rolldown.rs/",
5
5
  "license": "MIT",
6
6
  "repository": {