@rolldown/pluginutils
Advanced tools
+0
-9
| //#region src/composable-filters.d.ts | ||
| type StringOrRegExp = string | RegExp; | ||
| // Inline this type to avoid import it from `rolldown`. | ||
| // The only downside is we need to keep it in sync with `rolldown` manually, | ||
| // it is alright since it is pretty stable now. | ||
| type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {}); | ||
@@ -69,8 +66,2 @@ type FilterExpressionKind = FilterExpression["kind"]; | ||
| declare function code(pattern: StringOrRegExp): Code; | ||
| /* | ||
| * There are three kinds of conditions are supported: | ||
| * 1. `boolean`: if the value is `true`, the key must exist and be truthy. if the value is `false`, the key must not exist or be falsy. | ||
| * 2. `string`: the key must exist and be equal to the value. | ||
| * 3. `RegExp`: the key must exist and match the value. | ||
| */ | ||
| declare function query(key: string, pattern: StringOrRegExp | boolean): Query; | ||
@@ -77,0 +68,0 @@ declare function include(expr: FilterExpression): Include; |
+0
-9
| //#region src/composable-filters.d.ts | ||
| type StringOrRegExp = string | RegExp; | ||
| // Inline this type to avoid import it from `rolldown`. | ||
| // The only downside is we need to keep it in sync with `rolldown` manually, | ||
| // it is alright since it is pretty stable now. | ||
| type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {}); | ||
@@ -69,8 +66,2 @@ type FilterExpressionKind = FilterExpression["kind"]; | ||
| declare function code(pattern: StringOrRegExp): Code; | ||
| /* | ||
| * There are three kinds of conditions are supported: | ||
| * 1. `boolean`: if the value is `true`, the key must exist and be truthy. if the value is `false`, the key must not exist or be falsy. | ||
| * 2. `string`: the key must exist and be equal to the value. | ||
| * 3. `RegExp`: the key must exist and match the value. | ||
| */ | ||
| declare function query(key: string, pattern: StringOrRegExp | boolean): Query; | ||
@@ -77,0 +68,0 @@ declare function include(expr: FilterExpression): Include; |
+1
-1
| { | ||
| "name": "@rolldown/pluginutils", | ||
| "version": "1.0.0-beta.26", | ||
| "version": "1.0.0-beta.27", | ||
| "license": "MIT", | ||
@@ -5,0 +5,0 @@ "type": "module", |
26450
-3.58%673
-1.32%