rolldown 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 +9 -9
- package/dist/cli.mjs +8 -8
- package/dist/experimental-index.cjs +7 -3
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +5 -3
- package/dist/filter-index.cjs +93 -11
- package/dist/filter-index.d.cts +4 -3
- package/dist/filter-index.d.mts +4 -3
- package/dist/filter-index.mjs +44 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +5 -4
- package/dist/parallel-plugin-worker.mjs +5 -4
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding.d-BRwjFIld.d.cts → binding.d-Ddl7hcN3.d.cts} +2 -0
- package/dist/shared/{binding.d-DVNuaImz.d.mts → binding.d-Y-OUMnnv.d.mts} +2 -0
- package/dist/shared/{chunk-DUYDk_2O.mjs → chunk--iN_1bjD.mjs} +1 -1
- package/dist/shared/{input-options.d-CcrldgHK.d.cts → input-options.d-DVmWlHE9.d.cts} +3 -56
- package/dist/shared/{input-options.d-DVGWBVp4.d.mts → input-options.d-Dnzz-V9o.d.mts} +3 -56
- package/dist/shared/misc-BWx4LNta.cjs +68 -0
- package/dist/shared/misc-DGAe2XOW.mjs +28 -0
- package/dist/shared/{parse-ast-index-CHCsJTcD.mjs → parse-ast-index-BXDjUzKF.mjs} +4 -4
- package/dist/shared/{parse-ast-index-n6Ys2h9o.cjs → parse-ast-index-C37DYnt2.cjs} +7 -7
- package/dist/shared/{prompt-UMUDMApt.mjs → prompt-AXtOIn-r.mjs} +1 -1
- package/dist/shared/{src-_pefwDkF.cjs → src-RTReWFUn.cjs} +127 -119
- package/dist/shared/{src-DdLhlxoJ.mjs → src-TcTOaWt7.mjs} +127 -111
- package/package.json +16 -16
- package/dist/shared/filter-index-DblXSw9s.cjs +0 -255
- package/dist/shared/filter-index-hnEzlqRW.mjs +0 -174
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
|
-
require('./shared/parse-ast-index-
|
|
4
|
-
const
|
|
2
|
+
const require_src = require('./shared/src-RTReWFUn.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
4
|
+
const require_misc = require('./shared/misc-BWx4LNta.cjs');
|
|
5
5
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
8
|
+
const node_url = require_chunk.__toESM(require("node:url"));
|
|
8
9
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
9
10
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
10
11
|
const node_tty = require_chunk.__toESM(require("node:tty"));
|
|
11
12
|
const node_perf_hooks = require_chunk.__toESM(require("node:perf_hooks"));
|
|
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_misc.arraify(config).map((option) => {
|
|
1668
1668
|
return {
|
|
1669
1669
|
...option,
|
|
1670
1670
|
...cliOptions.input,
|
|
1671
|
-
output:
|
|
1671
|
+
output: require_misc.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_misc.arraify(config);
|
|
1713
1713
|
for (const config$1 of configList) {
|
|
1714
|
-
const outputList =
|
|
1714
|
+
const outputList = require_misc.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
|
-
import { __commonJS, __esm, __toESM } from "./shared/chunk
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { arraify, init_misc } from "./shared/
|
|
1
|
+
import { __commonJS, __esm, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-TcTOaWt7.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
4
|
+
import { arraify, init_misc } from "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
|
+
import { pathToFileURL } from "node:url";
|
|
8
9
|
import process$1, { cwd } from "node:process";
|
|
9
10
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
10
11
|
import * as tty from "node:tty";
|
|
11
12
|
import { performance } from "node:perf_hooks";
|
|
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) {
|
|
@@ -761,7 +761,7 @@ function createConsola(options$1 = {}) {
|
|
|
761
761
|
defaults: { level },
|
|
762
762
|
stdout: process.stdout,
|
|
763
763
|
stderr: process.stderr,
|
|
764
|
-
prompt: (...args) => import("./shared/prompt-
|
|
764
|
+
prompt: (...args) => import("./shared/prompt-AXtOIn-r.mjs").then((m) => m.prompt(...args)),
|
|
765
765
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
766
766
|
...options$1
|
|
767
767
|
});
|
|
@@ -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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./shared/src-
|
|
4
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
5
|
-
require('./shared/
|
|
3
|
+
const require_src = require('./shared/src-RTReWFUn.cjs');
|
|
4
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
5
|
+
require('./shared/misc-BWx4LNta.cjs');
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
7
7
|
|
|
8
8
|
//#region src/api/experimental.ts
|
|
@@ -81,6 +81,10 @@ function transformPlugin(config) {
|
|
|
81
81
|
return new require_src.BuiltinPlugin("builtin:transform", config);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/experimental-index.ts
|
|
86
|
+
var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
87
|
+
|
|
84
88
|
//#endregion
|
|
85
89
|
exports.aliasPlugin = aliasPlugin
|
|
86
90
|
exports.buildImportAnalysisPlugin = require_src.buildImportAnalysisPlugin
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
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 { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-DVmWlHE9.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
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 { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
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-Dnzz-V9o.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
+
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-TcTOaWt7.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
4
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
5
|
import { pathToFileURL } from "node:url";
|
|
5
6
|
|
|
6
7
|
//#region src/api/experimental.ts
|
|
@@ -87,6 +88,7 @@ function transformPlugin(config) {
|
|
|
87
88
|
|
|
88
89
|
//#endregion
|
|
89
90
|
//#region src/experimental-index.ts
|
|
91
|
+
var import_binding = __toESM(require_binding());
|
|
90
92
|
init_compose_js_plugins();
|
|
91
93
|
init_constructors();
|
|
92
94
|
|
package/dist/filter-index.cjs
CHANGED
|
@@ -1,12 +1,94 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
+
const require_misc = require('./shared/misc-BWx4LNta.cjs');
|
|
4
|
+
const __rolldown_pluginutils = require_chunk.__toESM(require("@rolldown/pluginutils"));
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
//#region src/plugin/with-filter.ts
|
|
7
|
+
function withFilterImpl(pluginOption, filterObjectList) {
|
|
8
|
+
if (require_misc.isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
9
|
+
if (pluginOption == false || pluginOption == null) return pluginOption;
|
|
10
|
+
if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
|
|
11
|
+
let plugin = pluginOption;
|
|
12
|
+
let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
|
|
13
|
+
if (filterObjectIndex === -1) return plugin;
|
|
14
|
+
let filterObject = filterObjectList[filterObjectIndex];
|
|
15
|
+
Object.keys(plugin).forEach((key) => {
|
|
16
|
+
switch (key) {
|
|
17
|
+
case "transform":
|
|
18
|
+
case "resolveId":
|
|
19
|
+
case "load":
|
|
20
|
+
if (!plugin[key]) return;
|
|
21
|
+
if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
|
|
22
|
+
else plugin[key] = {
|
|
23
|
+
handler: plugin[key],
|
|
24
|
+
filter: filterObject[key]
|
|
25
|
+
};
|
|
26
|
+
break;
|
|
27
|
+
default: break;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
return plugin;
|
|
31
|
+
}
|
|
32
|
+
function withFilter(pluginOption, filterObject) {
|
|
33
|
+
return withFilterImpl(pluginOption, require_misc.arraify(filterObject));
|
|
34
|
+
}
|
|
35
|
+
function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
36
|
+
if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
|
|
37
|
+
for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
|
|
38
|
+
let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
|
|
39
|
+
if (typeof pattern === "string" && pattern === pluginName) return i;
|
|
40
|
+
else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
|
|
41
|
+
}
|
|
42
|
+
return -1;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//#endregion
|
|
46
|
+
Object.defineProperty(exports, 'and', {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () {
|
|
49
|
+
return __rolldown_pluginutils.and;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, 'code', {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return __rolldown_pluginutils.code;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, 'exclude', {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return __rolldown_pluginutils.exclude;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(exports, 'id', {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return __rolldown_pluginutils.id;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, 'include', {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return __rolldown_pluginutils.include;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, 'moduleType', {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return __rolldown_pluginutils.moduleType;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, 'not', {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () {
|
|
85
|
+
return __rolldown_pluginutils.not;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, 'or', {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function () {
|
|
91
|
+
return __rolldown_pluginutils.or;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
exports.withFilter = withFilter
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
import { withFilter } from "./shared/input-options.d-DVmWlHE9.cjs";
|
|
3
|
+
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
3
4
|
|
|
4
|
-
export {
|
|
5
|
+
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import {
|
|
1
|
+
import "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
import { withFilter } from "./shared/input-options.d-Dnzz-V9o.mjs";
|
|
3
|
+
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
3
4
|
|
|
4
|
-
export {
|
|
5
|
+
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,4 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { arraify, init_misc, isPromiseLike } from "./shared/misc-DGAe2XOW.mjs";
|
|
2
|
+
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
//#region src/plugin/with-filter.ts
|
|
5
|
+
init_misc();
|
|
6
|
+
function withFilterImpl(pluginOption, filterObjectList) {
|
|
7
|
+
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
8
|
+
if (pluginOption == false || pluginOption == null) return pluginOption;
|
|
9
|
+
if (Array.isArray(pluginOption)) return pluginOption.map((p) => withFilter(p, filterObjectList));
|
|
10
|
+
let plugin = pluginOption;
|
|
11
|
+
let filterObjectIndex = findMatchedFilterObject(plugin.name, filterObjectList);
|
|
12
|
+
if (filterObjectIndex === -1) return plugin;
|
|
13
|
+
let filterObject = filterObjectList[filterObjectIndex];
|
|
14
|
+
Object.keys(plugin).forEach((key) => {
|
|
15
|
+
switch (key) {
|
|
16
|
+
case "transform":
|
|
17
|
+
case "resolveId":
|
|
18
|
+
case "load":
|
|
19
|
+
if (!plugin[key]) return;
|
|
20
|
+
if (typeof plugin[key] === "object") plugin[key].filter = filterObject[key] ?? plugin[key].filter;
|
|
21
|
+
else plugin[key] = {
|
|
22
|
+
handler: plugin[key],
|
|
23
|
+
filter: filterObject[key]
|
|
24
|
+
};
|
|
25
|
+
break;
|
|
26
|
+
default: break;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return plugin;
|
|
30
|
+
}
|
|
31
|
+
function withFilter(pluginOption, filterObject) {
|
|
32
|
+
return withFilterImpl(pluginOption, arraify(filterObject));
|
|
33
|
+
}
|
|
34
|
+
function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
35
|
+
if (overrideFilterObjectList.length === 1 && overrideFilterObjectList[0].pluginNamePattern === void 0) return 0;
|
|
36
|
+
for (let i = 0; i < overrideFilterObjectList.length; i++) for (let j = 0; j < (overrideFilterObjectList[i].pluginNamePattern ?? []).length; j++) {
|
|
37
|
+
let pattern = overrideFilterObjectList[i].pluginNamePattern[j];
|
|
38
|
+
if (typeof pattern === "string" && pattern === pluginName) return i;
|
|
39
|
+
else if (pattern instanceof RegExp && pattern.test(pluginName)) return i;
|
|
40
|
+
}
|
|
41
|
+
return -1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
3
|
-
require('./shared/
|
|
1
|
+
const require_src = require('./shared/src-RTReWFUn.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
3
|
+
require('./shared/misc-BWx4LNta.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION
|
|
6
6
|
exports.build = require_src.build
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
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, 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 { PreRenderedChunk } from "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
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, 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-DVmWlHE9.cjs";
|
|
3
3
|
|
|
4
4
|
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,4 +1,4 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding.d-
|
|
2
|
-
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, 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 { PreRenderedChunk } from "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
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, 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-Dnzz-V9o.mjs";
|
|
3
3
|
|
|
4
4
|
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,6 +1,6 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-TcTOaWt7.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
3
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
4
|
-
require('./shared/
|
|
2
|
+
const require_src = require('./shared/src-RTReWFUn.cjs');
|
|
3
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
4
|
+
require('./shared/misc-BWx4LNta.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
8
|
+
var import_binding = require_chunk.__toESM(require_parse_ast_index.require_binding());
|
|
8
9
|
const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData;
|
|
9
10
|
(async () => {
|
|
10
11
|
try {
|
|
@@ -28,7 +29,7 @@ const { registryId, pluginInfos, threadNumber } = node_worker_threads.workerData
|
|
|
28
29
|
)
|
|
29
30
|
};
|
|
30
31
|
}));
|
|
31
|
-
(0,
|
|
32
|
+
(0, import_binding.registerPlugins)(registryId, plugins);
|
|
32
33
|
node_worker_threads.parentPort.postMessage({ type: "success" });
|
|
33
34
|
} catch (error) {
|
|
34
35
|
node_worker_threads.parentPort.postMessage({
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { __commonJS } from "./shared/chunk
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import {
|
|
4
|
-
import "./shared/
|
|
1
|
+
import { __commonJS, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-TcTOaWt7.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
4
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
8
8
|
var require_parallel_plugin_worker = __commonJS({ "src/parallel-plugin-worker.ts"() {
|
|
9
|
+
var import_binding = __toESM(require_binding());
|
|
9
10
|
init_bindingify_plugin();
|
|
10
11
|
init_plugin_context_data();
|
|
11
12
|
const { registryId, pluginInfos, threadNumber } = workerData;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/input-options.d-
|
|
1
|
+
import "./shared/binding.d-Ddl7hcN3.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d-DVmWlHE9.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/input-options.d-
|
|
1
|
+
import "./shared/binding.d-Y-OUMnnv.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d-Dnzz-V9o.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-C37DYnt2.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-
|
|
1
|
+
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-BXDjUzKF.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-Ddl7hcN3.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
|
+
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
4
|
|
|
4
5
|
//#region src/log/logging.d.ts
|
|
5
6
|
type LogLevel = "info" | "debug" | "warn";
|
|
@@ -422,60 +423,6 @@ interface NormalizedOutputOptions {
|
|
|
422
423
|
plugins: RolldownPlugin[];
|
|
423
424
|
}
|
|
424
425
|
|
|
425
|
-
//#endregion
|
|
426
|
-
//#region src/filter-index.d.ts
|
|
427
|
-
type FilterExpressionKind = FilterExpression["kind"];
|
|
428
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Include | Exclude$1;
|
|
429
|
-
type TopLevelFilterExpression = Include | Exclude$1;
|
|
430
|
-
declare class And {
|
|
431
|
-
kind: "and";
|
|
432
|
-
args: FilterExpression[];
|
|
433
|
-
constructor(...args: FilterExpression[]);
|
|
434
|
-
}
|
|
435
|
-
declare class Or {
|
|
436
|
-
kind: "or";
|
|
437
|
-
args: FilterExpression[];
|
|
438
|
-
constructor(...args: FilterExpression[]);
|
|
439
|
-
}
|
|
440
|
-
declare class Not {
|
|
441
|
-
kind: "not";
|
|
442
|
-
expr: FilterExpression;
|
|
443
|
-
constructor(expr: FilterExpression);
|
|
444
|
-
}
|
|
445
|
-
declare class Id {
|
|
446
|
-
kind: "id";
|
|
447
|
-
pattern: StringOrRegExp;
|
|
448
|
-
constructor(pattern: StringOrRegExp);
|
|
449
|
-
}
|
|
450
|
-
declare class ModuleType$1 {
|
|
451
|
-
kind: "moduleType";
|
|
452
|
-
pattern: ModuleType;
|
|
453
|
-
constructor(pattern: ModuleType);
|
|
454
|
-
}
|
|
455
|
-
declare class Code {
|
|
456
|
-
kind: "code";
|
|
457
|
-
pattern: StringOrRegExp;
|
|
458
|
-
constructor(expr: StringOrRegExp);
|
|
459
|
-
}
|
|
460
|
-
declare class Include {
|
|
461
|
-
kind: "include";
|
|
462
|
-
expr: FilterExpression;
|
|
463
|
-
constructor(expr: FilterExpression);
|
|
464
|
-
}
|
|
465
|
-
declare class Exclude$1 {
|
|
466
|
-
kind: "exclude";
|
|
467
|
-
expr: FilterExpression;
|
|
468
|
-
constructor(expr: FilterExpression);
|
|
469
|
-
}
|
|
470
|
-
declare function and(...args: FilterExpression[]): And;
|
|
471
|
-
declare function or(...args: FilterExpression[]): Or;
|
|
472
|
-
declare function not(expr: FilterExpression): Not;
|
|
473
|
-
declare function id(pattern: StringOrRegExp): Id;
|
|
474
|
-
declare function moduleType(pattern: ModuleType): ModuleType$1;
|
|
475
|
-
declare function code(pattern: StringOrRegExp): Code;
|
|
476
|
-
declare function include(expr: FilterExpression): Include;
|
|
477
|
-
declare function exclude(expr: FilterExpression): Exclude$1;
|
|
478
|
-
|
|
479
426
|
//#endregion
|
|
480
427
|
//#region src/plugin/hook-filter.d.ts
|
|
481
428
|
type GeneralHookFilter<Value = StringOrRegExp> = MaybeArray<Value> | {
|
|
@@ -1129,4 +1076,4 @@ interface InputOptions {
|
|
|
1129
1076
|
}
|
|
1130
1077
|
|
|
1131
1078
|
//#endregion
|
|
1132
|
-
export { AddonFunction,
|
|
1079
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, 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, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, withFilter };
|