rolldown 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 +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +4 -4
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +4 -3
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +2 -1
- package/dist/index.cjs +1 -1
- 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 +1 -1
- package/dist/parallel-plugin-worker.mjs +3 -3
- 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/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding.d-D3r4zbxz.d.mts → binding.d-Dz3qQrbl.d.mts} +20 -2
- package/dist/shared/{binding.d-p8euY1Wh.d.cts → binding.d-QXzDcVmm.d.cts} +20 -2
- package/dist/shared/{define-config.d-DsyTAkf3.d.cts → define-config.d-CUcDq_vm.d.cts} +2 -2
- package/dist/shared/{define-config.d-CPoyfJeO.d.mts → define-config.d-qV1PzX_C.d.mts} +2 -2
- package/dist/shared/{load-config-GL1xItfo.cjs → load-config-CVg_Wj3v.cjs} +1 -1
- package/dist/shared/{load-config-BK3hMJOe.mjs → load-config-DMJR1pU4.mjs} +1 -1
- package/dist/shared/{misc-F8g_dc1D.mjs → misc-DGAe2XOW.mjs} +4 -1
- package/dist/shared/{parse-ast-index-Bnh8Dob0.mjs → parse-ast-index-0m6JgGc9.mjs} +13 -3
- package/dist/shared/{src-ndIZkCCf.cjs → src-UU-XHmbh.cjs} +8 -8
- package/dist/shared/{src-CG2mUfiN.mjs → src-XD6ewjt7.mjs} +193 -976
- package/package.json +15 -15
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-UU-XHmbh.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-Cn_efzjO.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-BKp5iIef.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-CVg_Wj3v.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--iN_1bjD.mjs";
|
|
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 } from "./shared/misc-
|
|
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-XD6ewjt7.mjs";
|
|
3
|
+
import "./shared/parse-ast-index-0m6JgGc9.mjs";
|
|
4
|
+
import { arraify, init_misc } from "./shared/misc-DGAe2XOW.mjs";
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-DMJR1pU4.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-UU-XHmbh.cjs');
|
|
2
2
|
require('./shared/parse-ast-index-Cn_efzjO.cjs');
|
|
3
3
|
require('./shared/misc-BKp5iIef.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-CVg_Wj3v.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-QXzDcVmm.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-CUcDq_vm.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-Dz3qQrbl.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-qV1PzX_C.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
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/parse-ast-index-
|
|
3
|
-
import "./shared/misc-
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-XD6ewjt7.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-0m6JgGc9.mjs";
|
|
3
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-DMJR1pU4.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_load_config();
|
|
@@ -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-UU-XHmbh.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-Cn_efzjO.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
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 { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-QXzDcVmm.cjs";
|
|
2
|
+
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-CUcDq_vm.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-
|
|
2
|
-
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 { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-Dz3qQrbl.mjs";
|
|
2
|
+
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-qV1PzX_C.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
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-
|
|
3
|
-
import { require_binding } from "./shared/parse-ast-index-
|
|
4
|
-
import "./shared/misc-
|
|
2
|
+
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-XD6ewjt7.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-0m6JgGc9.mjs";
|
|
4
|
+
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
7
7
|
//#region src/api/experimental.ts
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-QXzDcVmm.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-CUcDq_vm.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { withFilter } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-Dz3qQrbl.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-qV1PzX_C.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { arraify, isPromiseLike } from "./shared/misc-
|
|
1
|
+
import { arraify, init_misc, isPromiseLike } from "./shared/misc-DGAe2XOW.mjs";
|
|
2
2
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/with-filter.ts
|
|
5
|
+
init_misc();
|
|
5
6
|
function withFilterImpl(pluginOption, filterObjectList) {
|
|
6
7
|
if (isPromiseLike(pluginOption)) return pluginOption.then((p) => withFilter(p, filterObjectList));
|
|
7
8
|
if (pluginOption == false || pluginOption == null) return pluginOption;
|
package/dist/index.cjs
CHANGED
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, 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, 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 { PreRenderedChunk } from "./shared/binding.d-QXzDcVmm.cjs";
|
|
2
|
+
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, 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-CUcDq_vm.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, 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,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, 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, 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 { PreRenderedChunk } from "./shared/binding.d-Dz3qQrbl.mjs";
|
|
2
|
+
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, 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-qV1PzX_C.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, 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/parse-ast-index-
|
|
3
|
-
import "./shared/misc-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-XD6ewjt7.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-0m6JgGc9.mjs";
|
|
3
|
+
import "./shared/misc-DGAe2XOW.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-UU-XHmbh.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-Cn_efzjO.cjs');
|
|
4
4
|
require('./shared/misc-BKp5iIef.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS, __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
3
|
-
import { require_binding } from "./shared/parse-ast-index-
|
|
4
|
-
import "./shared/misc-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-XD6ewjt7.mjs";
|
|
3
|
+
import { require_binding } from "./shared/parse-ast-index-0m6JgGc9.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-QXzDcVmm.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-CUcDq_vm.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/define-config.d-
|
|
1
|
+
import "./shared/binding.d-Dz3qQrbl.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-qV1PzX_C.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
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-0m6JgGc9.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
@@ -309,7 +309,16 @@ interface BindingHookRenderChunkOutput {
|
|
|
309
309
|
interface BindingHookResolveIdExtraArgs {
|
|
310
310
|
custom?: number
|
|
311
311
|
isEntry: boolean
|
|
312
|
-
|
|
312
|
+
/**
|
|
313
|
+
* - `import-statement`: `import { foo } from './lib.js';`
|
|
314
|
+
* - `dynamic-import`: `import('./lib.js')`
|
|
315
|
+
* - `require-call`: `require('./lib.js')`
|
|
316
|
+
* - `import-rule`: `@import 'bg-color.css'`
|
|
317
|
+
* - `url-token`: `url('./icon.png')`
|
|
318
|
+
* - `new-url`: `new URL('./worker.js', import.meta.url)`
|
|
319
|
+
* - `hot-accept`: `import.meta.hot.accept('./lib.js', () => {})`
|
|
320
|
+
*/
|
|
321
|
+
kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept'
|
|
313
322
|
}
|
|
314
323
|
interface BindingHookResolveIdOutput {
|
|
315
324
|
id: string
|
|
@@ -500,7 +509,16 @@ interface BindingPluginContextResolvedId {
|
|
|
500
509
|
external: boolean | 'absolute' | 'relative'
|
|
501
510
|
}
|
|
502
511
|
interface BindingPluginContextResolveOptions {
|
|
503
|
-
|
|
512
|
+
/**
|
|
513
|
+
* - `import-statement`: `import { foo } from './lib.js';`
|
|
514
|
+
* - `dynamic-import`: `import('./lib.js')`
|
|
515
|
+
* - `require-call`: `require('./lib.js')`
|
|
516
|
+
* - `import-rule`: `@import 'bg-color.css'`
|
|
517
|
+
* - `url-token`: `url('./icon.png')`
|
|
518
|
+
* - `new-url`: `new URL('./worker.js', import.meta.url)`
|
|
519
|
+
* - `hot-accept`: `import.meta.hot.accept('./lib.js', () => {})`
|
|
520
|
+
*/
|
|
521
|
+
importKind?: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept'
|
|
504
522
|
skipSelf?: boolean
|
|
505
523
|
custom?: number
|
|
506
524
|
}
|
|
@@ -309,7 +309,16 @@ interface BindingHookRenderChunkOutput {
|
|
|
309
309
|
interface BindingHookResolveIdExtraArgs {
|
|
310
310
|
custom?: number
|
|
311
311
|
isEntry: boolean
|
|
312
|
-
|
|
312
|
+
/**
|
|
313
|
+
* - `import-statement`: `import { foo } from './lib.js';`
|
|
314
|
+
* - `dynamic-import`: `import('./lib.js')`
|
|
315
|
+
* - `require-call`: `require('./lib.js')`
|
|
316
|
+
* - `import-rule`: `@import 'bg-color.css'`
|
|
317
|
+
* - `url-token`: `url('./icon.png')`
|
|
318
|
+
* - `new-url`: `new URL('./worker.js', import.meta.url)`
|
|
319
|
+
* - `hot-accept`: `import.meta.hot.accept('./lib.js', () => {})`
|
|
320
|
+
*/
|
|
321
|
+
kind: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept'
|
|
313
322
|
}
|
|
314
323
|
interface BindingHookResolveIdOutput {
|
|
315
324
|
id: string
|
|
@@ -500,7 +509,16 @@ interface BindingPluginContextResolvedId {
|
|
|
500
509
|
external: boolean | 'absolute' | 'relative'
|
|
501
510
|
}
|
|
502
511
|
interface BindingPluginContextResolveOptions {
|
|
503
|
-
|
|
512
|
+
/**
|
|
513
|
+
* - `import-statement`: `import { foo } from './lib.js';`
|
|
514
|
+
* - `dynamic-import`: `import('./lib.js')`
|
|
515
|
+
* - `require-call`: `require('./lib.js')`
|
|
516
|
+
* - `import-rule`: `@import 'bg-color.css'`
|
|
517
|
+
* - `url-token`: `url('./icon.png')`
|
|
518
|
+
* - `new-url`: `new URL('./worker.js', import.meta.url)`
|
|
519
|
+
* - `hot-accept`: `import.meta.hot.accept('./lib.js', () => {})`
|
|
520
|
+
*/
|
|
521
|
+
importKind?: 'import-statement' | 'dynamic-import' | 'require-call' | 'import-rule' | 'url-token' | 'new-url' | 'hot-accept'
|
|
504
522
|
skipSelf?: boolean
|
|
505
523
|
custom?: number
|
|
506
524
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-QXzDcVmm.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -735,7 +735,7 @@ interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
|
|
735
735
|
interface ResolveIdExtraOptions {
|
|
736
736
|
custom?: CustomPluginOptions;
|
|
737
737
|
isEntry: boolean;
|
|
738
|
-
kind: "
|
|
738
|
+
kind: BindingHookResolveIdExtraArgs["kind"];
|
|
739
739
|
}
|
|
740
740
|
type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
741
741
|
type LoadResult = NullValue | string | SourceDescription;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-Dz3qQrbl.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -735,7 +735,7 @@ interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
|
|
735
735
|
interface ResolveIdExtraOptions {
|
|
736
736
|
custom?: CustomPluginOptions;
|
|
737
737
|
isEntry: boolean;
|
|
738
|
-
kind: "
|
|
738
|
+
kind: BindingHookResolveIdExtraArgs["kind"];
|
|
739
739
|
}
|
|
740
740
|
type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
741
741
|
type LoadResult = NullValue | string | SourceDescription;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-UU-XHmbh.cjs');
|
|
3
3
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk--iN_1bjD.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-XD6ewjt7.mjs";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { __esm } from "./chunk--iN_1bjD.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/utils/misc.ts
|
|
2
4
|
function arraify(value) {
|
|
3
5
|
return Array.isArray(value) ? value : [value];
|
|
@@ -20,6 +22,7 @@ function unsupported(info) {
|
|
|
20
22
|
throw new Error(`UNSUPPORTED: ${info}`);
|
|
21
23
|
}
|
|
22
24
|
function noop(..._args) {}
|
|
25
|
+
var init_misc = __esm({ "src/utils/misc.ts"() {} });
|
|
23
26
|
|
|
24
27
|
//#endregion
|
|
25
|
-
export { arraify, isNullish, isPromiseLike, noop, unimplemented, unreachable, unsupported };
|
|
28
|
+
export { arraify, init_misc, isNullish, isPromiseLike, noop, unimplemented, unreachable, unsupported };
|