rolldown 1.0.0-beta.8-commit.c76291c → 1.0.0-beta.8-commit.e270f24
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 +6 -6
- package/dist/cli.mjs +2 -2
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- 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 +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- 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 +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/shared/{binding.d-BRwjFIld.d.cts → binding.d-DiufgqJs.d.mts} +1 -0
- package/dist/shared/{binding.d-DVNuaImz.d.mts → binding.d-TdksiV0L.d.cts} +1 -0
- package/dist/shared/{input-options.d-CcrldgHK.d.cts → input-options.d--njwKbQU.d.mts} +3 -56
- package/dist/shared/{input-options.d-DVGWBVp4.d.mts → input-options.d-xkHPeCns.d.cts} +3 -56
- package/dist/shared/misc-BWx4LNta.cjs +68 -0
- package/dist/shared/misc-CcQKSZ8O.mjs +28 -0
- package/dist/shared/{src-DdLhlxoJ.mjs → src-DbQfn8bU.mjs} +89 -89
- package/dist/shared/{src-_pefwDkF.cjs → src-WSLYLQjV.cjs} +103 -102
- package/package.json +16 -15
- package/dist/shared/filter-index-DblXSw9s.cjs +0 -255
- package/dist/shared/filter-index-hnEzlqRW.mjs +0 -174
package/dist/cli.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-WSLYLQjV.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-n6Ys2h9o.cjs');
|
|
4
|
-
const
|
|
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"));
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DUYDk_2O.mjs";
|
|
2
|
-
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-DbQfn8bU.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-CHCsJTcD.mjs";
|
|
4
|
-
import { arraify, init_misc } from "./shared/
|
|
4
|
+
import { arraify, init_misc } from "./shared/misc-CcQKSZ8O.mjs";
|
|
5
5
|
import fs from "node:fs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
@@ -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-
|
|
3
|
+
const require_src = require('./shared/src-WSLYLQjV.cjs');
|
|
4
4
|
const require_parse_ast_index = require('./shared/parse-ast-index-n6Ys2h9o.cjs');
|
|
5
|
-
require('./shared/
|
|
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
|
|
@@ -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-TdksiV0L.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-xkHPeCns.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-DiufgqJs.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--njwKbQU.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-DbQfn8bU.mjs";
|
|
2
2
|
import { import_binding } from "./shared/parse-ast-index-CHCsJTcD.mjs";
|
|
3
|
-
import "./shared/
|
|
3
|
+
import "./shared/misc-CcQKSZ8O.mjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
|
|
6
6
|
//#region src/api/experimental.ts
|
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-TdksiV0L.cjs";
|
|
2
|
+
import { withFilter } from "./shared/input-options.d-xkHPeCns.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-DiufgqJs.mjs";
|
|
2
|
+
import { withFilter } from "./shared/input-options.d--njwKbQU.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-CcQKSZ8O.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-
|
|
1
|
+
const require_src = require('./shared/src-WSLYLQjV.cjs');
|
|
2
2
|
require('./shared/parse-ast-index-n6Ys2h9o.cjs');
|
|
3
|
-
require('./shared/
|
|
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-TdksiV0L.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-xkHPeCns.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-DiufgqJs.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--njwKbQU.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-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-DbQfn8bU.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-CHCsJTcD.mjs";
|
|
3
|
-
import "./shared/
|
|
3
|
+
import "./shared/misc-CcQKSZ8O.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-WSLYLQjV.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-n6Ys2h9o.cjs');
|
|
4
|
-
require('./shared/
|
|
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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DUYDk_2O.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-DbQfn8bU.mjs";
|
|
3
3
|
import { import_binding } from "./shared/parse-ast-index-CHCsJTcD.mjs";
|
|
4
|
-
import "./shared/
|
|
4
|
+
import "./shared/misc-CcQKSZ8O.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
7
7
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/input-options.d-
|
|
1
|
+
import "./shared/binding.d-TdksiV0L.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d-xkHPeCns.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-DiufgqJs.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/input-options.d--njwKbQU.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,4 +1,5 @@
|
|
|
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-DiufgqJs.mjs";
|
|
2
|
+
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
2
3
|
import { Program } from "@oxc-project/types";
|
|
3
4
|
|
|
4
5
|
//#region src/log/logging.d.ts
|
|
@@ -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 as BuiltinPlugin$1, 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 as VERSION$1, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build as build$1, buildImportAnalysisPlugin as buildImportAnalysisPlugin$1, defineConfig as defineConfig$1, defineParallelPlugin, dynamicImportVarsPlugin as dynamicImportVarsPlugin$1, importGlobPlugin as importGlobPlugin$1, isolatedDeclarationPlugin as isolatedDeclarationPlugin$1, jsonPlugin as jsonPlugin$1, loadFallbackPlugin as loadFallbackPlugin$1, manifestPlugin as manifestPlugin$1, moduleFederationPlugin as moduleFederationPlugin$1, modulePreloadPolyfillPlugin as modulePreloadPolyfillPlugin$1, reportPlugin as reportPlugin$1, rolldown as rolldown$1, viteResolvePlugin as viteResolvePlugin$1, wasmFallbackPlugin as wasmFallbackPlugin$1, wasmHelperPlugin as wasmHelperPlugin$1, watch as watch$1, withFilter };
|
|
@@ -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-TdksiV0L.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 };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
//#region src/utils/misc.ts
|
|
4
|
+
function arraify(value) {
|
|
5
|
+
return Array.isArray(value) ? value : [value];
|
|
6
|
+
}
|
|
7
|
+
function isNullish(value) {
|
|
8
|
+
return value === null || value === void 0;
|
|
9
|
+
}
|
|
10
|
+
function isPromiseLike(value) {
|
|
11
|
+
return value && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
|
|
12
|
+
}
|
|
13
|
+
function unimplemented(info) {
|
|
14
|
+
if (info) throw new Error(`unimplemented: ${info}`);
|
|
15
|
+
throw new Error("unimplemented");
|
|
16
|
+
}
|
|
17
|
+
function unreachable(info) {
|
|
18
|
+
if (info) throw new Error(`unreachable: ${info}`);
|
|
19
|
+
throw new Error("unreachable");
|
|
20
|
+
}
|
|
21
|
+
function unsupported(info) {
|
|
22
|
+
throw new Error(`UNSUPPORTED: ${info}`);
|
|
23
|
+
}
|
|
24
|
+
function noop(..._args) {}
|
|
25
|
+
|
|
26
|
+
//#endregion
|
|
27
|
+
Object.defineProperty(exports, 'arraify', {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () {
|
|
30
|
+
return arraify;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, 'isNullish', {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () {
|
|
36
|
+
return isNullish;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, 'isPromiseLike', {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () {
|
|
42
|
+
return isPromiseLike;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
Object.defineProperty(exports, 'noop', {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
get: function () {
|
|
48
|
+
return noop;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
Object.defineProperty(exports, 'unimplemented', {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return unimplemented;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, 'unreachable', {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () {
|
|
60
|
+
return unreachable;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
Object.defineProperty(exports, 'unsupported', {
|
|
64
|
+
enumerable: true,
|
|
65
|
+
get: function () {
|
|
66
|
+
return unsupported;
|
|
67
|
+
}
|
|
68
|
+
});
|