@rolldown/browser 1.0.0-beta.9-commit.273d50e → 1.0.0-beta.9-commit.b174110
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 +10 -10
- package/dist/cli.mjs +55 -44
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +4 -4
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +4 -3
- package/dist/filter-index.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/filter-index.mjs +2 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +3 -3
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config.d-gqmzo185.d.cts → define-config.d-D4lKXE9V.d.cts} +19 -19
- package/dist/shared/{define-config.d-GTTTro2-.d.mts → define-config.d-Dm9iNdt9.d.mts} +19 -19
- package/dist/shared/dist-CAn6dxW6.mjs +153 -0
- package/dist/shared/{load-config-gIb0d07e.mjs → load-config-CV_7wWhH.mjs} +1 -1
- package/dist/shared/{load-config-xy-ScCWb.cjs → load-config-DegJq4hI.cjs} +1 -1
- package/dist/shared/{parse-ast-index-Bx70S80g.mjs → parse-ast-index-vu376yZ1.mjs} +13 -3
- package/dist/shared/{src-j8qvGwKp.cjs → src-BDUsoOnL.cjs} +8 -8
- package/dist/shared/{src-CA0na5_d.mjs → src-CJu4NZI4.mjs} +198 -980
- package/dist/{src-D3kPdsBX.js → src-CBsKC-xF.js} +8 -8
- package/package.json +1 -1
- package/dist/shared/dist-DRt7s0oH.mjs +0 -147
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BDUsoOnL.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-DegJq4hI.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
8
8
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -532,7 +532,7 @@ function getColor$1(color, fallback = "reset") {
|
|
|
532
532
|
return colors$2[color] || colors$2[fallback];
|
|
533
533
|
}
|
|
534
534
|
const ansiRegex$1 = [String.raw`[\u001B\u009B][[\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\d\/#&.:=?%@~_]+)*|[a-zA-Z\d]+(?:;[-a-zA-Z\d\/#&.:=?%@~_]*)*)?\u0007)`, String.raw`(?:(?:\d{1,4}(?:;\d{0,4})*)?[\dA-PR-TZcf-nq-uy=><~]))`].join("|");
|
|
535
|
-
function stripAnsi
|
|
535
|
+
function stripAnsi(text) {
|
|
536
536
|
return text.replace(new RegExp(ansiRegex$1, "g"), "");
|
|
537
537
|
}
|
|
538
538
|
const boxStylePresets = {
|
|
@@ -625,14 +625,14 @@ function box(text, _opts = {}) {
|
|
|
625
625
|
if (_color) for (const key in borderStyle) borderStyle[key] = _color(borderStyle[key]);
|
|
626
626
|
const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;
|
|
627
627
|
const height = textLines.length + paddingOffset;
|
|
628
|
-
const width = Math.max(...textLines.map((line) => stripAnsi
|
|
628
|
+
const width = Math.max(...textLines.map((line) => stripAnsi(line).length), opts.title ? stripAnsi(opts.title).length : 0) + paddingOffset;
|
|
629
629
|
const widthOffset = width + paddingOffset;
|
|
630
630
|
const leftSpace = opts.style.marginLeft > 0 ? " ".repeat(opts.style.marginLeft) : "";
|
|
631
631
|
if (opts.style.marginTop > 0) boxLines.push("".repeat(opts.style.marginTop));
|
|
632
632
|
if (opts.title) {
|
|
633
633
|
const title = _color ? _color(opts.title) : opts.title;
|
|
634
|
-
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi
|
|
635
|
-
const right = borderStyle.h.repeat(width - stripAnsi
|
|
634
|
+
const left = borderStyle.h.repeat(Math.floor((width - stripAnsi(opts.title).length) / 2));
|
|
635
|
+
const right = borderStyle.h.repeat(width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset);
|
|
636
636
|
boxLines.push(`${leftSpace}${borderStyle.tl}${left}${title}${right}${borderStyle.tr}`);
|
|
637
637
|
} else boxLines.push(`${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`);
|
|
638
638
|
const valignOffset = opts.style.valign === "center" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === "top" ? height - textLines.length - paddingOffset : height - textLines.length;
|
|
@@ -640,7 +640,7 @@ function box(text, _opts = {}) {
|
|
|
640
640
|
else {
|
|
641
641
|
const line = textLines[i$1 - valignOffset];
|
|
642
642
|
const left = " ".repeat(paddingOffset);
|
|
643
|
-
const right = " ".repeat(width - stripAnsi
|
|
643
|
+
const right = " ".repeat(width - stripAnsi(line).length);
|
|
644
644
|
boxLines.push(`${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`);
|
|
645
645
|
}
|
|
646
646
|
boxLines.push(`${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`);
|
|
@@ -816,7 +816,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
|
|
|
816
816
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
817
817
|
}
|
|
818
818
|
const regex = ansiRegex();
|
|
819
|
-
function stripAnsi(string) {
|
|
819
|
+
function stripAnsi$1(string) {
|
|
820
820
|
if (typeof string !== "string") throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
|
|
821
821
|
return string.replace(regex, "");
|
|
822
822
|
}
|
|
@@ -845,7 +845,7 @@ const defaultIgnorableCodePointRegex = /^\p{Default_Ignorable_Code_Point}$/u;
|
|
|
845
845
|
function stringWidth$1(string, options$1 = {}) {
|
|
846
846
|
if (typeof string !== "string" || string.length === 0) return 0;
|
|
847
847
|
const { ambiguousIsNarrow = true, countAnsiEscapeCodes = false } = options$1;
|
|
848
|
-
if (!countAnsiEscapeCodes) string = stripAnsi(string);
|
|
848
|
+
if (!countAnsiEscapeCodes) string = stripAnsi$1(string);
|
|
849
849
|
if (string.length === 0) return 0;
|
|
850
850
|
let width = 0;
|
|
851
851
|
const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
|
|
@@ -899,7 +899,7 @@ const TYPE_ICONS = {
|
|
|
899
899
|
};
|
|
900
900
|
function stringWidth(str) {
|
|
901
901
|
const hasICU = typeof Intl === "object";
|
|
902
|
-
if (!hasICU || !Intl.Segmenter) return stripAnsi
|
|
902
|
+
if (!hasICU || !Intl.Segmenter) return stripAnsi(str).length;
|
|
903
903
|
return stringWidth$1(str);
|
|
904
904
|
}
|
|
905
905
|
var FancyReporter = class extends BasicReporter {
|
package/dist/cli.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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 } from "./shared/dist-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-CJu4NZI4.mjs";
|
|
3
|
+
import { arraify, init_misc } from "./shared/dist-CAn6dxW6.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-vu376yZ1.mjs";
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-CV_7wWhH.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
8
|
import process$1 from "node:process";
|
|
@@ -1015,49 +1015,45 @@ var init_logger = __esm({ "src/cli/logger.ts"() {
|
|
|
1015
1015
|
|
|
1016
1016
|
//#endregion
|
|
1017
1017
|
//#region src/cli/arguments/alias.ts
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
abbreviation: "
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
}
|
|
1018
|
+
var alias;
|
|
1019
|
+
var init_alias = __esm({ "src/cli/arguments/alias.ts"() {
|
|
1020
|
+
alias = {
|
|
1021
|
+
config: {
|
|
1022
|
+
abbreviation: "c",
|
|
1023
|
+
hint: "filename"
|
|
1024
|
+
},
|
|
1025
|
+
help: { abbreviation: "h" },
|
|
1026
|
+
version: { abbreviation: "v" },
|
|
1027
|
+
watch: { abbreviation: "w" },
|
|
1028
|
+
dir: { abbreviation: "d" },
|
|
1029
|
+
file: { abbreviation: "o" },
|
|
1030
|
+
external: { abbreviation: "e" },
|
|
1031
|
+
format: { abbreviation: "f" },
|
|
1032
|
+
name: { abbreviation: "n" },
|
|
1033
|
+
globals: { abbreviation: "g" },
|
|
1034
|
+
sourcemap: {
|
|
1035
|
+
abbreviation: "s",
|
|
1036
|
+
default: true
|
|
1037
|
+
},
|
|
1038
|
+
minify: { abbreviation: "m" },
|
|
1039
|
+
platform: { abbreviation: "p" },
|
|
1040
|
+
assetFileNames: { hint: "name" },
|
|
1041
|
+
chunkFileNames: { hint: "name" },
|
|
1042
|
+
entryFileNames: { hint: "name" },
|
|
1043
|
+
externalLiveBindings: {
|
|
1044
|
+
default: true,
|
|
1045
|
+
reverse: true
|
|
1046
|
+
},
|
|
1047
|
+
treeshake: {
|
|
1048
|
+
default: true,
|
|
1049
|
+
reverse: true
|
|
1050
|
+
},
|
|
1051
|
+
moduleTypes: { hint: "types" }
|
|
1052
|
+
};
|
|
1053
|
+
} });
|
|
1051
1054
|
|
|
1052
1055
|
//#endregion
|
|
1053
1056
|
//#region src/cli/arguments/utils.ts
|
|
1054
|
-
const priority = [
|
|
1055
|
-
"object",
|
|
1056
|
-
"array",
|
|
1057
|
-
"string",
|
|
1058
|
-
"number",
|
|
1059
|
-
"boolean"
|
|
1060
|
-
];
|
|
1061
1057
|
function getSchemaType(schema) {
|
|
1062
1058
|
if ("anyOf" in schema) {
|
|
1063
1059
|
const types = schema.anyOf.map(getSchemaType);
|
|
@@ -1099,6 +1095,16 @@ function camelCaseToKebabCase(str) {
|
|
|
1099
1095
|
function kebabCaseToCamelCase(str) {
|
|
1100
1096
|
return str.replace(/-./g, (match) => match[1].toUpperCase());
|
|
1101
1097
|
}
|
|
1098
|
+
var priority;
|
|
1099
|
+
var init_utils = __esm({ "src/cli/arguments/utils.ts"() {
|
|
1100
|
+
priority = [
|
|
1101
|
+
"object",
|
|
1102
|
+
"array",
|
|
1103
|
+
"string",
|
|
1104
|
+
"number",
|
|
1105
|
+
"boolean"
|
|
1106
|
+
];
|
|
1107
|
+
} });
|
|
1102
1108
|
|
|
1103
1109
|
//#endregion
|
|
1104
1110
|
//#region src/cli/arguments/normalize.ts
|
|
@@ -1144,6 +1150,7 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
1144
1150
|
var init_normalize = __esm({ "src/cli/arguments/normalize.ts"() {
|
|
1145
1151
|
init_validator();
|
|
1146
1152
|
init_logger();
|
|
1153
|
+
init_utils();
|
|
1147
1154
|
} });
|
|
1148
1155
|
|
|
1149
1156
|
//#endregion
|
|
@@ -1223,7 +1230,9 @@ var objectSchema, flattenedSchema, options;
|
|
|
1223
1230
|
var init_arguments = __esm({ "src/cli/arguments/index.ts"() {
|
|
1224
1231
|
init_validator();
|
|
1225
1232
|
init_logger();
|
|
1233
|
+
init_alias();
|
|
1226
1234
|
init_normalize();
|
|
1235
|
+
init_utils();
|
|
1227
1236
|
objectSchema = getJsonSchema();
|
|
1228
1237
|
flattenedSchema = flattenSchema(objectSchema.properties);
|
|
1229
1238
|
options = Object.fromEntries(Object.entries(flattenedSchema).filter(([_key, schema]) => getSchemaType(schema) !== "never").map(([key, schema]) => {
|
|
@@ -1654,6 +1663,7 @@ var init_bundle = __esm({ "src/cli/commands/bundle.ts"() {
|
|
|
1654
1663
|
init_rolldown();
|
|
1655
1664
|
init_watch();
|
|
1656
1665
|
init_load_config();
|
|
1666
|
+
init_misc();
|
|
1657
1667
|
init_logger();
|
|
1658
1668
|
import_usingCtx = __toESM(require_usingCtx());
|
|
1659
1669
|
numberFormatter = new Intl.NumberFormat("en", {
|
|
@@ -1706,6 +1716,7 @@ function showHelp() {
|
|
|
1706
1716
|
var introduction, examples, notes;
|
|
1707
1717
|
var init_help = __esm({ "src/cli/commands/help.ts"() {
|
|
1708
1718
|
init_arguments();
|
|
1719
|
+
init_utils();
|
|
1709
1720
|
init_logger();
|
|
1710
1721
|
introduction = `${colors.gray(`${description} (rolldown v${version})`)}
|
|
1711
1722
|
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-BDUsoOnL.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-DegJq4hI.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-D4lKXE9V.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-Dm9iNdt9.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig, version } from "./shared/src-
|
|
2
|
-
import "./shared/dist-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-CJu4NZI4.mjs";
|
|
2
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-vu376yZ1.mjs";
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-CV_7wWhH.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_load_config();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-CBsKC-xF.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BDUsoOnL.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config.d-
|
|
1
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config.d-D4lKXE9V.cjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, 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, assetPlugin$1 as assetPlugin, 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, reporterPlugin$1 as reporterPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin, webWorkerPostPlugin$1 as webWorkerPostPlugin } from "./shared/define-config.d-
|
|
1
|
+
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin$1 as assetPlugin, 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, reporterPlugin$1 as reporterPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin, webWorkerPostPlugin$1 as webWorkerPostPlugin } from "./shared/define-config.d-Dm9iNdt9.mjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuiltinPlugin, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
2
|
-
import "./shared/dist-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { BuiltinPlugin, assetPlugin, 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, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-CJu4NZI4.mjs";
|
|
2
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-vu376yZ1.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
@@ -74,6 +74,7 @@ function replacePlugin(values = {}, options = {}) {
|
|
|
74
74
|
//#endregion
|
|
75
75
|
//#region src/builtin-plugin/transform-plugin.ts
|
|
76
76
|
init_constructors();
|
|
77
|
+
init_normalize_string_or_regex();
|
|
77
78
|
function transformPlugin(config) {
|
|
78
79
|
if (config) config = {
|
|
79
80
|
...config,
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-D4lKXE9V.cjs";
|
|
2
2
|
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter } from "./shared/define-config.d-Dm9iNdt9.mjs";
|
|
2
2
|
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, isPromiseLike, moduleType$1 as moduleType, not$1 as not, or$1 as or, queries$1 as queries, query$1 as query } from "./shared/dist-
|
|
1
|
+
import { and$1 as and, arraify, code$1 as code, exclude$1 as exclude, id$1 as id, include$1 as include, init_misc, isPromiseLike, moduleType$1 as moduleType, not$1 as not, or$1 as or, queries$1 as queries, query$1 as query } from "./shared/dist-CAn6dxW6.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/with-filter.ts
|
|
4
|
+
init_misc();
|
|
4
5
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
5
6
|
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
6
7
|
if (pluginOption == false || pluginOption == null) return pluginOption;
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
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, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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/define-config.d-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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/define-config.d-D4lKXE9V.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, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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/define-config.d-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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/define-config.d-Dm9iNdt9.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, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, 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/dist-
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-CJu4NZI4.mjs";
|
|
2
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-vu376yZ1.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-BDUsoOnL.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-BHaE0ECV.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,7 +1,7 @@
|
|
|
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/dist-
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-CJu4NZI4.mjs";
|
|
3
|
+
import "./shared/dist-CAn6dxW6.mjs";
|
|
4
|
+
import "./shared/parse-ast-index-vu376yZ1.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
|
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-vu376yZ1.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
Binary file
|
|
@@ -121,7 +121,7 @@ type NullValue<T = void> = T | undefined | null | void;
|
|
|
121
121
|
type PartialNull<T> = { [P in keyof T] : T[P] | null };
|
|
122
122
|
type MakeAsync<Function_> = Function_ extends (this: infer This, ...parameters: infer Arguments) => infer Return ? (this: This, ...parameters: Arguments) => Return | Promise<Return> : never;
|
|
123
123
|
type MaybeArray<T> = T | T[];
|
|
124
|
-
type StringOrRegExp
|
|
124
|
+
type StringOrRegExp = string | RegExp;
|
|
125
125
|
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region src/options/output-options.d.ts
|
|
@@ -226,7 +226,7 @@ interface OutputOptions {
|
|
|
226
226
|
* If `test` is a regular expression, the module whose id matches the regular expression will be captured.
|
|
227
227
|
* if `test` is empty, any module will be considered as matched.
|
|
228
228
|
*/
|
|
229
|
-
test?: StringOrRegExp
|
|
229
|
+
test?: StringOrRegExp
|
|
230
230
|
/**
|
|
231
231
|
* - Type: `number`
|
|
232
232
|
*
|
|
@@ -429,7 +429,7 @@ interface NormalizedOutputOptions {
|
|
|
429
429
|
|
|
430
430
|
//#endregion
|
|
431
431
|
//#region ../pluginutils/dist/index.d.ts
|
|
432
|
-
type StringOrRegExp = string | RegExp;
|
|
432
|
+
type StringOrRegExp$1 = string | RegExp;
|
|
433
433
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
434
434
|
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
435
435
|
type TopLevelFilterExpression = Include | Exclude$1;
|
|
@@ -449,16 +449,16 @@ declare class Not {
|
|
|
449
449
|
constructor(expr: FilterExpression);
|
|
450
450
|
}
|
|
451
451
|
interface QueryFilterObject {
|
|
452
|
-
[key: string]: StringOrRegExp | boolean;
|
|
452
|
+
[key: string]: StringOrRegExp$1 | boolean;
|
|
453
453
|
}
|
|
454
454
|
interface IdParams {
|
|
455
455
|
cleanUrl?: boolean;
|
|
456
456
|
}
|
|
457
457
|
declare class Id {
|
|
458
458
|
kind: "id";
|
|
459
|
-
pattern: StringOrRegExp;
|
|
459
|
+
pattern: StringOrRegExp$1;
|
|
460
460
|
params: IdParams;
|
|
461
|
-
constructor(pattern: StringOrRegExp, params?: IdParams);
|
|
461
|
+
constructor(pattern: StringOrRegExp$1, params?: IdParams);
|
|
462
462
|
}
|
|
463
463
|
declare class ModuleType$1 {
|
|
464
464
|
kind: "moduleType";
|
|
@@ -467,14 +467,14 @@ declare class ModuleType$1 {
|
|
|
467
467
|
}
|
|
468
468
|
declare class Code {
|
|
469
469
|
kind: "code";
|
|
470
|
-
pattern: StringOrRegExp;
|
|
471
|
-
constructor(expr: StringOrRegExp);
|
|
470
|
+
pattern: StringOrRegExp$1;
|
|
471
|
+
constructor(expr: StringOrRegExp$1);
|
|
472
472
|
}
|
|
473
473
|
declare class Query {
|
|
474
474
|
kind: "query";
|
|
475
475
|
key: string;
|
|
476
|
-
pattern: StringOrRegExp | boolean;
|
|
477
|
-
constructor(key: string, pattern: StringOrRegExp | boolean);
|
|
476
|
+
pattern: StringOrRegExp$1 | boolean;
|
|
477
|
+
constructor(key: string, pattern: StringOrRegExp$1 | boolean);
|
|
478
478
|
}
|
|
479
479
|
declare class Include {
|
|
480
480
|
kind: "include";
|
|
@@ -489,10 +489,10 @@ declare class Exclude$1 {
|
|
|
489
489
|
declare function and(...args: FilterExpression[]): And;
|
|
490
490
|
declare function or(...args: FilterExpression[]): Or;
|
|
491
491
|
declare function not(expr: FilterExpression): Not;
|
|
492
|
-
declare function id(pattern: StringOrRegExp, params?: IdParams): Id;
|
|
492
|
+
declare function id(pattern: StringOrRegExp$1, params?: IdParams): Id;
|
|
493
493
|
declare function moduleType(pattern: PluginModuleType): ModuleType$1;
|
|
494
|
-
declare function code(pattern: StringOrRegExp): Code;
|
|
495
|
-
declare function query(key: string, pattern: StringOrRegExp | boolean): Query;
|
|
494
|
+
declare function code(pattern: StringOrRegExp$1): Code;
|
|
495
|
+
declare function query(key: string, pattern: StringOrRegExp$1 | boolean): Query;
|
|
496
496
|
declare function include(expr: FilterExpression): Include;
|
|
497
497
|
declare function exclude(expr: FilterExpression): Exclude$1;
|
|
498
498
|
/**
|
|
@@ -515,7 +515,7 @@ declare function queries(queryFilter: QueryFilterObject): And;
|
|
|
515
515
|
|
|
516
516
|
//#endregion
|
|
517
517
|
//#region src/plugin/hook-filter.d.ts
|
|
518
|
-
type GeneralHookFilter<Value = StringOrRegExp
|
|
518
|
+
type GeneralHookFilter<Value = StringOrRegExp> = MaybeArray<Value> | {
|
|
519
519
|
include?: MaybeArray<Value>
|
|
520
520
|
exclude?: MaybeArray<Value>
|
|
521
521
|
};
|
|
@@ -784,7 +784,7 @@ type OverrideFilterObject = {
|
|
|
784
784
|
transform?: HookFilterExtension<"transform">["filter"]
|
|
785
785
|
resolveId?: HookFilterExtension<"resolveId">["filter"]
|
|
786
786
|
load?: HookFilterExtension<"load">["filter"]
|
|
787
|
-
pluginNamePattern?: StringOrRegExp
|
|
787
|
+
pluginNamePattern?: StringOrRegExp[]
|
|
788
788
|
};
|
|
789
789
|
declare function withFilter<
|
|
790
790
|
A,
|
|
@@ -820,7 +820,7 @@ interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
|
|
820
820
|
interface ResolveIdExtraOptions {
|
|
821
821
|
custom?: CustomPluginOptions;
|
|
822
822
|
isEntry: boolean;
|
|
823
|
-
kind: "
|
|
823
|
+
kind: BindingHookResolveIdExtraArgs["kind"];
|
|
824
824
|
}
|
|
825
825
|
type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
826
826
|
type LoadResult = NullValue | string | SourceDescription;
|
|
@@ -978,7 +978,7 @@ interface ChecksOptions {
|
|
|
978
978
|
//#region src/options/input-options.d.ts
|
|
979
979
|
type InputOption = string | string[] | Record<string, string>;
|
|
980
980
|
type OxcTransformOption = Omit<TransformOptions, "sourceType" | "lang" | "cwd" | "sourcemap" | "define" | "inject">;
|
|
981
|
-
type ExternalOption = StringOrRegExp
|
|
981
|
+
type ExternalOption = StringOrRegExp | StringOrRegExp[] | ((id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>);
|
|
982
982
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset">;
|
|
983
983
|
interface WatcherOptions {
|
|
984
984
|
skipWrite?: boolean;
|
|
@@ -987,8 +987,8 @@ interface WatcherOptions {
|
|
|
987
987
|
pollInterval?: number
|
|
988
988
|
compareContents?: boolean
|
|
989
989
|
};
|
|
990
|
-
include?: StringOrRegExp
|
|
991
|
-
exclude?: StringOrRegExp
|
|
990
|
+
include?: StringOrRegExp | StringOrRegExp[];
|
|
991
|
+
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
992
992
|
}
|
|
993
993
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
994
994
|
type HmrOptions = boolean | {
|