@rolldown/browser 1.0.0-beta.8-commit.c76291c → 1.0.0-beta.8-commit.56abf23
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.
- package/dist/cli.cjs +8 -8
- package/dist/cli.mjs +5 -5
- package/dist/experimental-index.browser.mjs +76 -0
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.cjs +51 -11
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +47 -3
- package/dist/index.browser.mjs +3 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{filter-index-ChddWdsi.cjs → composable-filters-Dbe8wGLg.cjs} +7 -53
- package/dist/shared/{filter-index-DmisSKZF.mjs → esm-CW9DP8HJ.mjs} +14 -53
- package/dist/shared/{input-options.d-_u3jt0Ca.d.mts → input-options.d-BzRVeVzs.d.mts} +36 -35
- package/dist/shared/{input-options.d-CZDp2VXD.d.cts → input-options.d-b875W0uo.d.cts} +36 -35
- package/dist/shared/{src-DSgk2sIq.cjs → src-CTpSZALv.cjs} +25 -25
- package/dist/shared/{src-RC_sW9pl.mjs → src-QAqIvxUw.mjs} +3 -3
- package/dist/{browser.mjs → src-xSRj8hhl.js} +106 -40
- package/package.json +4 -3
package/dist/cli.cjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const
|
|
2
|
+
const require_src = require('./shared/src-CTpSZALv.cjs');
|
|
3
|
+
const require_composable_filters = require('./shared/composable-filters-Dbe8wGLg.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
7
|
+
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
8
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
8
9
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
9
10
|
const node_tty = require_chunk.__toESM(require("node:tty"));
|
|
10
11
|
const node_perf_hooks = require_chunk.__toESM(require("node:perf_hooks"));
|
|
11
12
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
12
13
|
const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
13
|
-
const node_url = require_chunk.__toESM(require("node:url"));
|
|
14
14
|
|
|
15
15
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
16
16
|
const LogLevels = {
|
|
@@ -1618,10 +1618,10 @@ var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc
|
|
|
1618
1618
|
}
|
|
1619
1619
|
module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1620
1620
|
} });
|
|
1621
|
-
var import_usingCtx = require_chunk.__toESM(require_usingCtx());
|
|
1622
1621
|
|
|
1623
1622
|
//#endregion
|
|
1624
1623
|
//#region src/cli/commands/bundle.ts
|
|
1624
|
+
var import_usingCtx = require_chunk.__toESM(require_usingCtx());
|
|
1625
1625
|
async function bundleWithConfig(configPath, cliOptions) {
|
|
1626
1626
|
if (cliOptions.watch) {
|
|
1627
1627
|
process.env.ROLLUP_WATCH = "true";
|
|
@@ -1664,11 +1664,11 @@ async function bundleWithCliOptions(cliOptions) {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
}
|
|
1666
1666
|
async function watchInner(config, cliOptions) {
|
|
1667
|
-
let normalizedConfig =
|
|
1667
|
+
let normalizedConfig = require_composable_filters.arraify(config).map((option) => {
|
|
1668
1668
|
return {
|
|
1669
1669
|
...option,
|
|
1670
1670
|
...cliOptions.input,
|
|
1671
|
-
output:
|
|
1671
|
+
output: require_composable_filters.arraify(option.output || {}).map((output) => {
|
|
1672
1672
|
return {
|
|
1673
1673
|
...output,
|
|
1674
1674
|
...cliOptions.output
|
|
@@ -1709,9 +1709,9 @@ async function watchInner(config, cliOptions) {
|
|
|
1709
1709
|
async function bundleInner(config, cliOptions) {
|
|
1710
1710
|
const startTime = node_perf_hooks.performance.now();
|
|
1711
1711
|
const result = [];
|
|
1712
|
-
const configList =
|
|
1712
|
+
const configList = require_composable_filters.arraify(config);
|
|
1713
1713
|
for (const config$1 of configList) {
|
|
1714
|
-
const outputList =
|
|
1714
|
+
const outputList = require_composable_filters.arraify(config$1.output || {});
|
|
1715
1715
|
const build = await require_src.rolldown({
|
|
1716
1716
|
...config$1,
|
|
1717
1717
|
...cliOptions.input
|
package/dist/cli.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
3
|
-
import { arraify, init_misc } from "./shared/
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-QAqIvxUw.mjs";
|
|
3
|
+
import { arraify, init_misc } from "./shared/esm-CW9DP8HJ.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
5
5
|
import path, { sep } from "node:path";
|
|
6
6
|
import colors from "ansis";
|
|
7
|
+
import { pathToFileURL } from "node:url";
|
|
7
8
|
import process$1, { cwd } from "node:process";
|
|
8
9
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
9
10
|
import * as tty from "node:tty";
|
|
10
11
|
import { performance } from "node:perf_hooks";
|
|
11
12
|
import fs from "node:fs";
|
|
12
13
|
import { readdir } from "node:fs/promises";
|
|
13
|
-
import { pathToFileURL } from "node:url";
|
|
14
14
|
|
|
15
15
|
//#region ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/core.mjs
|
|
16
16
|
function isPlainObject$1(value) {
|
|
@@ -1623,7 +1623,6 @@ var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runti
|
|
|
1623
1623
|
}
|
|
1624
1624
|
module.exports = _usingCtx, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
1625
1625
|
} });
|
|
1626
|
-
var import_usingCtx = __toESM(require_usingCtx());
|
|
1627
1626
|
|
|
1628
1627
|
//#endregion
|
|
1629
1628
|
//#region src/cli/commands/bundle.ts
|
|
@@ -1789,7 +1788,7 @@ function relativeId(id) {
|
|
|
1789
1788
|
if (!path.isAbsolute(id)) return id;
|
|
1790
1789
|
return path.relative(path.resolve(), id);
|
|
1791
1790
|
}
|
|
1792
|
-
var numberFormatter, CHUNK_GROUPS;
|
|
1791
|
+
var import_usingCtx, numberFormatter, CHUNK_GROUPS;
|
|
1793
1792
|
var init_bundle = __esm({ "src/cli/commands/bundle.ts"() {
|
|
1794
1793
|
init_mjs();
|
|
1795
1794
|
init_rolldown();
|
|
@@ -1797,6 +1796,7 @@ var init_bundle = __esm({ "src/cli/commands/bundle.ts"() {
|
|
|
1797
1796
|
init_misc();
|
|
1798
1797
|
init_load_config();
|
|
1799
1798
|
init_logger();
|
|
1799
|
+
import_usingCtx = __toESM(require_usingCtx());
|
|
1800
1800
|
numberFormatter = new Intl.NumberFormat("en", {
|
|
1801
1801
|
maximumFractionDigits: 2,
|
|
1802
1802
|
minimumFractionDigits: 2
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./src-xSRj8hhl.js";
|
|
2
|
+
import { isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
|
+
|
|
4
|
+
//#region src/api/experimental.ts
|
|
5
|
+
/**
|
|
6
|
+
* This is an experimental API. It's behavior may change in the future.
|
|
7
|
+
*
|
|
8
|
+
* Calling this API will only execute the scan stage of rolldown.
|
|
9
|
+
*/
|
|
10
|
+
const experimental_scan = async (input) => {
|
|
11
|
+
const { bundler, stopWorkers } = await createBundler(input, {});
|
|
12
|
+
const output = await bundler.scan();
|
|
13
|
+
handleOutputErrors(output);
|
|
14
|
+
await stopWorkers?.();
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region src/plugin/parallel-plugin.ts
|
|
19
|
+
function defineParallelPlugin(pluginPath) {
|
|
20
|
+
throw new Error("`defineParallelPlugin` is not supported in browser build");
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
//#region src/builtin-plugin/alias-plugin.ts
|
|
25
|
+
function aliasPlugin(config) {
|
|
26
|
+
return new BuiltinPlugin("builtin:alias", config);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/builtin-plugin/replace-plugin.ts
|
|
31
|
+
/**
|
|
32
|
+
* Replaces targeted strings in files while bundling.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* // Basic usage
|
|
36
|
+
* ```js
|
|
37
|
+
* replacePlugin({
|
|
38
|
+
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
39
|
+
* __buildDate__: () => JSON.stringify(new Date()),
|
|
40
|
+
* __buildVersion: 15
|
|
41
|
+
* })
|
|
42
|
+
* ```
|
|
43
|
+
* @example
|
|
44
|
+
* // With options
|
|
45
|
+
* ```js
|
|
46
|
+
* replacePlugin({
|
|
47
|
+
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
48
|
+
* __buildDate__: () => JSON.stringify(new Date()),
|
|
49
|
+
* __buildVersion: 15
|
|
50
|
+
* }, {
|
|
51
|
+
* preventAssignment: false,
|
|
52
|
+
* })
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
function replacePlugin(values = {}, options = {}) {
|
|
56
|
+
return new BuiltinPlugin("builtin:replace", {
|
|
57
|
+
...options,
|
|
58
|
+
values
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/builtin-plugin/transform-plugin.ts
|
|
64
|
+
function transformPlugin(config) {
|
|
65
|
+
if (config) config = {
|
|
66
|
+
...config,
|
|
67
|
+
include: normalizedStringOrRegex(config.include),
|
|
68
|
+
exclude: normalizedStringOrRegex(config.exclude),
|
|
69
|
+
jsxRefreshInclude: normalizedStringOrRegex(config.jsxRefreshInclude),
|
|
70
|
+
jsxRefreshExclude: normalizedStringOrRegex(config.jsxRefreshExclude)
|
|
71
|
+
};
|
|
72
|
+
return new BuiltinPlugin("builtin:transform", config);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins as composePlugins, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reportPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./shared/src-
|
|
4
|
-
require('./shared/
|
|
3
|
+
const require_src = require('./shared/src-CTpSZALv.cjs');
|
|
4
|
+
require('./shared/composable-filters-Dbe8wGLg.cjs');
|
|
5
5
|
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
6
6
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
7
7
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-
|
|
1
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-b875W0uo.cjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-
|
|
1
|
+
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/input-options.d-BzRVeVzs.mjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-
|
|
2
|
-
import "./shared/
|
|
1
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-QAqIvxUw.mjs";
|
|
2
|
+
import "./shared/esm-CW9DP8HJ.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
4
4
|
import { isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
package/dist/filter-index.cjs
CHANGED
|
@@ -1,12 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_composable_filters = require('./shared/composable-filters-Dbe8wGLg.cjs');
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
//#region src/plugin/with-filter.ts
|
|
5
|
+
function withFilterImpl(pluginOption, filterObjectList) {
|
|
6
|
+
if (require_composable_filters.isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
7
|
+
if (pluginOption == false || pluginOption == null) return pluginOption;
|
|
8
|
+
if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
|
|
9
|
+
let plugin = pluginOption;
|
|
10
|
+
let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
|
|
11
|
+
if (filterObjectIndex === -1) return plugin;
|
|
12
|
+
let filterObject = filterObjectList[filterObjectIndex];
|
|
13
|
+
Object.keys(plugin).forEach((key) => {
|
|
14
|
+
switch (key) {
|
|
15
|
+
case "transform":
|
|
16
|
+
case "resolveId":
|
|
17
|
+
case "load":
|
|
18
|
+
if (!plugin[key]) return;
|
|
19
|
+
if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
|
|
20
|
+
else plugin[key] = {
|
|
21
|
+
handler: plugin[key],
|
|
22
|
+
filter: filterObject[key]
|
|
23
|
+
};
|
|
24
|
+
break;
|
|
25
|
+
default: break;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return plugin;
|
|
29
|
+
}
|
|
30
|
+
function withFilter(pluginOption, filterObject) {
|
|
31
|
+
return withFilterImpl(pluginOption, require_composable_filters.arraify(filterObject));
|
|
32
|
+
}
|
|
33
|
+
function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
34
|
+
if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
|
|
35
|
+
for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
|
|
36
|
+
let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
|
|
37
|
+
if (typeof pattern === "string" && pattern === pluginName) return i;
|
|
38
|
+
else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
|
|
39
|
+
}
|
|
40
|
+
return -1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
exports.and = require_composable_filters.and
|
|
45
|
+
exports.code = require_composable_filters.code
|
|
46
|
+
exports.exclude = require_composable_filters.exclude
|
|
47
|
+
exports.id = require_composable_filters.id
|
|
48
|
+
exports.include = require_composable_filters.include
|
|
49
|
+
exports.moduleType = require_composable_filters.moduleType
|
|
50
|
+
exports.not = require_composable_filters.not
|
|
51
|
+
exports.or = require_composable_filters.or
|
|
52
|
+
exports.withFilter = withFilter
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/input-options.d-b875W0uo.cjs";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/input-options.d-BzRVeVzs.mjs";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,4 +1,48 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_esm, init_misc, isPromiseLike, moduleType$1 as moduleType, not$1 as not, or$1 as or } from "./shared/esm-CW9DP8HJ.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
//#region src/plugin/with-filter.ts
|
|
4
|
+
init_misc();
|
|
5
|
+
function withFilterImpl(pluginOption, filterObjectList) {
|
|
6
|
+
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
7
|
+
if (pluginOption == false || pluginOption == null) return pluginOption;
|
|
8
|
+
if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
|
|
9
|
+
let plugin = pluginOption;
|
|
10
|
+
let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
|
|
11
|
+
if (filterObjectIndex === -1) return plugin;
|
|
12
|
+
let filterObject = filterObjectList[filterObjectIndex];
|
|
13
|
+
Object.keys(plugin).forEach((key) => {
|
|
14
|
+
switch (key) {
|
|
15
|
+
case "transform":
|
|
16
|
+
case "resolveId":
|
|
17
|
+
case "load":
|
|
18
|
+
if (!plugin[key]) return;
|
|
19
|
+
if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
|
|
20
|
+
else plugin[key] = {
|
|
21
|
+
handler: plugin[key],
|
|
22
|
+
filter: filterObject[key]
|
|
23
|
+
};
|
|
24
|
+
break;
|
|
25
|
+
default: break;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return plugin;
|
|
29
|
+
}
|
|
30
|
+
function withFilter(pluginOption, filterObject) {
|
|
31
|
+
return withFilterImpl(pluginOption, arraify(filterObject));
|
|
32
|
+
}
|
|
33
|
+
function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
34
|
+
if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
|
|
35
|
+
for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
|
|
36
|
+
let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
|
|
37
|
+
if (typeof pattern === "string" && pattern === pluginName) return i;
|
|
38
|
+
else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
|
|
39
|
+
}
|
|
40
|
+
return -1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/filter-index.ts
|
|
45
|
+
init_esm();
|
|
46
|
+
|
|
47
|
+
//#endregion
|
|
48
|
+
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/
|
|
1
|
+
const require_src = require('./shared/src-CTpSZALv.cjs');
|
|
2
|
+
require('./shared/composable-filters-Dbe8wGLg.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/input-options.d-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/input-options.d-b875W0uo.cjs";
|
|
2
2
|
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/input-options.d-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/input-options.d-BzRVeVzs.mjs";
|
|
2
2
|
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
2
|
-
import "./shared/
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-QAqIvxUw.mjs";
|
|
2
|
+
import "./shared/esm-CW9DP8HJ.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
require('./shared/
|
|
2
|
+
const require_src = require('./shared/src-CTpSZALv.cjs');
|
|
3
|
+
require('./shared/composable-filters-Dbe8wGLg.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-C4XbfZ6x.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import "./shared/
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-QAqIvxUw.mjs";
|
|
3
|
+
import "./shared/esm-CW9DP8HJ.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-D_ZB9M77.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
Binary file
|
|
@@ -24,47 +24,7 @@ function unsupported(info) {
|
|
|
24
24
|
function noop(..._args) {}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
//#region
|
|
28
|
-
function withFilterImpl(pluginOption, filterObjectList) {
|
|
29
|
-
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
30
|
-
if (pluginOption == false || pluginOption == null) return pluginOption;
|
|
31
|
-
if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
|
|
32
|
-
let plugin = pluginOption;
|
|
33
|
-
let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
|
|
34
|
-
if (filterObjectIndex === -1) return plugin;
|
|
35
|
-
let filterObject = filterObjectList[filterObjectIndex];
|
|
36
|
-
Object.keys(plugin).forEach((key) => {
|
|
37
|
-
switch (key) {
|
|
38
|
-
case "transform":
|
|
39
|
-
case "resolveId":
|
|
40
|
-
case "load":
|
|
41
|
-
if (!plugin[key]) return;
|
|
42
|
-
if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
|
|
43
|
-
else plugin[key] = {
|
|
44
|
-
handler: plugin[key],
|
|
45
|
-
filter: filterObject[key]
|
|
46
|
-
};
|
|
47
|
-
break;
|
|
48
|
-
default: break;
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
return plugin;
|
|
52
|
-
}
|
|
53
|
-
function withFilter(pluginOption, filterObject) {
|
|
54
|
-
return withFilterImpl(pluginOption, arraify(filterObject));
|
|
55
|
-
}
|
|
56
|
-
function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
57
|
-
if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
|
|
58
|
-
for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
|
|
59
|
-
let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
|
|
60
|
-
if (typeof pattern === "string" && pattern === pluginName) return i;
|
|
61
|
-
else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
|
|
62
|
-
}
|
|
63
|
-
return -1;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/filter-index.ts
|
|
27
|
+
//#region ../pluginutils/dist/esm/composable-filters.js
|
|
68
28
|
var And = class {
|
|
69
29
|
kind;
|
|
70
30
|
args;
|
|
@@ -157,12 +117,6 @@ function exclude(expr) {
|
|
|
157
117
|
}
|
|
158
118
|
|
|
159
119
|
//#endregion
|
|
160
|
-
Object.defineProperty(exports, 'And', {
|
|
161
|
-
enumerable: true,
|
|
162
|
-
get: function () {
|
|
163
|
-
return And;
|
|
164
|
-
}
|
|
165
|
-
});
|
|
166
120
|
Object.defineProperty(exports, 'and', {
|
|
167
121
|
enumerable: true,
|
|
168
122
|
get: function () {
|
|
@@ -205,6 +159,12 @@ Object.defineProperty(exports, 'isNullish', {
|
|
|
205
159
|
return isNullish;
|
|
206
160
|
}
|
|
207
161
|
});
|
|
162
|
+
Object.defineProperty(exports, 'isPromiseLike', {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () {
|
|
165
|
+
return isPromiseLike;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
208
168
|
Object.defineProperty(exports, 'moduleType', {
|
|
209
169
|
enumerable: true,
|
|
210
170
|
get: function () {
|
|
@@ -246,10 +206,4 @@ Object.defineProperty(exports, 'unsupported', {
|
|
|
246
206
|
get: function () {
|
|
247
207
|
return unsupported;
|
|
248
208
|
}
|
|
249
|
-
});
|
|
250
|
-
Object.defineProperty(exports, 'withFilter', {
|
|
251
|
-
enumerable: true,
|
|
252
|
-
get: function () {
|
|
253
|
-
return withFilter;
|
|
254
|
-
}
|
|
255
209
|
});
|
|
@@ -25,56 +25,7 @@ function noop(..._args) {}
|
|
|
25
25
|
var init_misc = __esm({ "src/utils/misc.ts"() {} });
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region
|
|
29
|
-
function withFilterImpl(pluginOption, filterObjectList) {
|
|
30
|
-
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
31
|
-
if (pluginOption == false || pluginOption == null) return pluginOption;
|
|
32
|
-
if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
|
|
33
|
-
let plugin = pluginOption;
|
|
34
|
-
let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
|
|
35
|
-
if (filterObjectIndex === -1) return plugin;
|
|
36
|
-
let filterObject = filterObjectList[filterObjectIndex];
|
|
37
|
-
Object.keys(plugin).forEach((key) => {
|
|
38
|
-
switch (key) {
|
|
39
|
-
case "transform":
|
|
40
|
-
case "resolveId":
|
|
41
|
-
case "load":
|
|
42
|
-
if (!plugin[key]) return;
|
|
43
|
-
if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
|
|
44
|
-
else plugin[key] = {
|
|
45
|
-
handler: plugin[key],
|
|
46
|
-
filter: filterObject[key]
|
|
47
|
-
};
|
|
48
|
-
break;
|
|
49
|
-
default: break;
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
return plugin;
|
|
53
|
-
}
|
|
54
|
-
function withFilter(pluginOption, filterObject) {
|
|
55
|
-
return withFilterImpl(pluginOption, arraify(filterObject));
|
|
56
|
-
}
|
|
57
|
-
function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
58
|
-
if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
|
|
59
|
-
for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
|
|
60
|
-
let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
|
|
61
|
-
if (typeof pattern === "string" && pattern === pluginName) return i;
|
|
62
|
-
else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
|
|
63
|
-
}
|
|
64
|
-
return -1;
|
|
65
|
-
}
|
|
66
|
-
var init_with_filter = __esm({ "src/plugin/with-filter.ts"() {
|
|
67
|
-
init_misc();
|
|
68
|
-
} });
|
|
69
|
-
|
|
70
|
-
//#endregion
|
|
71
|
-
//#region src/plugin/index.ts
|
|
72
|
-
var init_plugin = __esm({ "src/plugin/index.ts"() {
|
|
73
|
-
init_with_filter();
|
|
74
|
-
} });
|
|
75
|
-
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/filter-index.ts
|
|
28
|
+
//#region ../pluginutils/dist/esm/composable-filters.js
|
|
78
29
|
function and(...args) {
|
|
79
30
|
return new And(...args);
|
|
80
31
|
}
|
|
@@ -100,8 +51,7 @@ function exclude(expr) {
|
|
|
100
51
|
return new Exclude(expr);
|
|
101
52
|
}
|
|
102
53
|
var And, Or, Not, Id, ModuleType, Code, Include, Exclude;
|
|
103
|
-
var
|
|
104
|
-
init_plugin();
|
|
54
|
+
var init_composable_filters = __esm({ "../pluginutils/dist/esm/composable-filters.js"() {
|
|
105
55
|
And = class {
|
|
106
56
|
kind;
|
|
107
57
|
args;
|
|
@@ -171,4 +121,15 @@ var init_filter_index = __esm({ "src/filter-index.ts"() {
|
|
|
171
121
|
} });
|
|
172
122
|
|
|
173
123
|
//#endregion
|
|
174
|
-
|
|
124
|
+
//#region ../pluginutils/dist/esm/simple-filters.js
|
|
125
|
+
var init_simple_filters = __esm({ "../pluginutils/dist/esm/simple-filters.js"() {} });
|
|
126
|
+
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region ../pluginutils/dist/esm/index.js
|
|
129
|
+
var init_esm = __esm({ "../pluginutils/dist/esm/index.js"() {
|
|
130
|
+
init_composable_filters();
|
|
131
|
+
init_simple_filters();
|
|
132
|
+
} });
|
|
133
|
+
|
|
134
|
+
//#endregion
|
|
135
|
+
export { and as and$1, arraify, code as code$1, exclude as exclude$1, id as id$1, include as include$1, init_esm, init_misc, isNullish, isPromiseLike, moduleType as moduleType$1, noop, not as not$1, or as or$1, unimplemented, unreachable, unsupported };
|