rolldown 1.0.0-beta.9-commit.8371a90 → 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 +11 -11
- package/dist/cli.mjs +3 -3
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +3 -4
- 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.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- 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.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/shared/{binding.d-B9SSHAER.d.mts → binding.d-Dz3qQrbl.d.mts} +26 -11
- package/dist/shared/{binding.d-CrH1UT-g.d.cts → binding.d-QXzDcVmm.d.cts} +26 -11
- package/dist/shared/{define-config.d-2mCqGCzl.d.cts → define-config.d-CUcDq_vm.d.cts} +6 -16
- package/dist/shared/{define-config.d-CUCXQ5Qr.d.mts → define-config.d-qV1PzX_C.d.mts} +6 -16
- package/dist/shared/{load-config-B2LkbAmK.cjs → load-config-CVg_Wj3v.cjs} +1 -1
- package/dist/shared/{load-config-DaTbe02e.mjs → load-config-DMJR1pU4.mjs} +1 -1
- package/dist/shared/{parse-ast-index-Bye5_Vy8.mjs → parse-ast-index-0m6JgGc9.mjs} +1 -0
- package/dist/shared/{parse-ast-index-qKChTJzE.cjs → parse-ast-index-Cn_efzjO.cjs} +1 -0
- package/dist/shared/{src-BwuVByD5.cjs → src-UU-XHmbh.cjs} +29 -48
- package/dist/shared/{src-CEJMSju3.mjs → src-XD6ewjt7.mjs} +330 -1506
- 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-
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-UU-XHmbh.cjs');
|
|
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-
|
|
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
4
|
import { arraify, init_misc } from "./shared/misc-DGAe2XOW.mjs";
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
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";
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_src = require('./shared/src-UU-XHmbh.cjs');
|
|
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,10 +1,9 @@
|
|
|
1
|
-
import { defineConfig,
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-XD6ewjt7.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-0m6JgGc9.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-DMJR1pU4.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
|
-
init_define_config();
|
|
8
7
|
init_load_config();
|
|
9
8
|
const VERSION = version;
|
|
10
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-UU-XHmbh.cjs');
|
|
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"));
|
|
6
6
|
|
|
@@ -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,6 +1,6 @@
|
|
|
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_normalize_string_or_regex, 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-
|
|
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
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
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/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/parse-ast-index-
|
|
1
|
+
const require_src = require('./shared/src-UU-XHmbh.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-Cn_efzjO.cjs');
|
|
3
3
|
require('./shared/misc-BKp5iIef.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
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,
|
|
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
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat,
|
|
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,
|
|
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
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat,
|
|
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,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
2
|
-
import "./shared/parse-ast-index-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-XD6ewjt7.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-0m6JgGc9.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
3
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
2
|
+
const require_src = require('./shared/src-UU-XHmbh.cjs');
|
|
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"));
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
@@ -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.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-Cn_efzjO.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst;
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-
|
|
1
|
+
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-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
|
|
@@ -395,14 +404,12 @@ interface BindingJsonSourcemap {
|
|
|
395
404
|
debugId?: string
|
|
396
405
|
x_google_ignoreList?: Array<number>
|
|
397
406
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
| { type: 'ReactJsx' }
|
|
405
|
-
| { type: 'Enable', field0: JsxOptions }
|
|
407
|
+
declare enum BindingJsx {
|
|
408
|
+
Disable = 0,
|
|
409
|
+
Preserve = 1,
|
|
410
|
+
React = 2,
|
|
411
|
+
ReactJsx = 3
|
|
412
|
+
}
|
|
406
413
|
interface BindingLog {
|
|
407
414
|
code: string
|
|
408
415
|
message: string
|
|
@@ -493,7 +500,6 @@ interface BindingOutputOptions {
|
|
|
493
500
|
legalComments?: 'none' | 'inline'
|
|
494
501
|
polyfillRequire?: boolean
|
|
495
502
|
preserveModules?: boolean
|
|
496
|
-
target?: string | Array<string>
|
|
497
503
|
virtualDirname?: string
|
|
498
504
|
preserveModulesRoot?: string
|
|
499
505
|
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false
|
|
@@ -503,7 +509,16 @@ interface BindingPluginContextResolvedId {
|
|
|
503
509
|
external: boolean | 'absolute' | 'relative'
|
|
504
510
|
}
|
|
505
511
|
interface BindingPluginContextResolveOptions {
|
|
506
|
-
|
|
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'
|
|
507
522
|
skipSelf?: boolean
|
|
508
523
|
custom?: number
|
|
509
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
|
|
@@ -395,14 +404,12 @@ interface BindingJsonSourcemap {
|
|
|
395
404
|
debugId?: string
|
|
396
405
|
x_google_ignoreList?: Array<number>
|
|
397
406
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
| { type: 'ReactJsx' }
|
|
405
|
-
| { type: 'Enable', field0: JsxOptions }
|
|
407
|
+
declare enum BindingJsx {
|
|
408
|
+
Disable = 0,
|
|
409
|
+
Preserve = 1,
|
|
410
|
+
React = 2,
|
|
411
|
+
ReactJsx = 3
|
|
412
|
+
}
|
|
406
413
|
interface BindingLog {
|
|
407
414
|
code: string
|
|
408
415
|
message: string
|
|
@@ -493,7 +500,6 @@ interface BindingOutputOptions {
|
|
|
493
500
|
legalComments?: 'none' | 'inline'
|
|
494
501
|
polyfillRequire?: boolean
|
|
495
502
|
preserveModules?: boolean
|
|
496
|
-
target?: string | Array<string>
|
|
497
503
|
virtualDirname?: string
|
|
498
504
|
preserveModulesRoot?: string
|
|
499
505
|
preserveEntrySignatures?: 'strict' | 'allow-extension' | 'exports-only' | false
|
|
@@ -503,7 +509,16 @@ interface BindingPluginContextResolvedId {
|
|
|
503
509
|
external: boolean | 'absolute' | 'relative'
|
|
504
510
|
}
|
|
505
511
|
interface BindingPluginContextResolveOptions {
|
|
506
|
-
|
|
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'
|
|
507
522
|
skipSelf?: boolean
|
|
508
523
|
custom?: number
|
|
509
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
|
|
|
@@ -282,7 +282,6 @@ interface OutputOptions {
|
|
|
282
282
|
legalComments?: "none" | "inline";
|
|
283
283
|
plugins?: RolldownOutputPluginOption;
|
|
284
284
|
polyfillRequire?: boolean;
|
|
285
|
-
target?: string | string[];
|
|
286
285
|
hoistTransitiveImports?: false;
|
|
287
286
|
preserveModules?: boolean;
|
|
288
287
|
virtualDirname?: string;
|
|
@@ -736,7 +735,7 @@ interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
|
|
736
735
|
interface ResolveIdExtraOptions {
|
|
737
736
|
custom?: CustomPluginOptions;
|
|
738
737
|
isEntry: boolean;
|
|
739
|
-
kind: "
|
|
738
|
+
kind: BindingHookResolveIdExtraArgs["kind"];
|
|
740
739
|
}
|
|
741
740
|
type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
742
741
|
type LoadResult = NullValue | string | SourceDescription;
|
|
@@ -893,18 +892,9 @@ interface ChecksOptions {
|
|
|
893
892
|
//#endregion
|
|
894
893
|
//#region src/options/input-options.d.ts
|
|
895
894
|
type InputOption = string | string[] | Record<string, string>;
|
|
896
|
-
type OxcTransformOption = Omit<TransformOptions, "sourceType" | "lang" | "cwd" | "sourcemap" | "
|
|
895
|
+
type OxcTransformOption = Omit<TransformOptions, "sourceType" | "lang" | "cwd" | "sourcemap" | "define" | "inject">;
|
|
897
896
|
type ExternalOption = StringOrRegExp | StringOrRegExp[] | ((id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>);
|
|
898
897
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset">;
|
|
899
|
-
interface JsxOptions {
|
|
900
|
-
mode?: "classic" | "automatic" | "preserve";
|
|
901
|
-
factory?: string;
|
|
902
|
-
fragment?: string;
|
|
903
|
-
importSource?: string;
|
|
904
|
-
jsxImportSource?: string;
|
|
905
|
-
refresh?: boolean;
|
|
906
|
-
development?: boolean;
|
|
907
|
-
}
|
|
908
898
|
interface WatcherOptions {
|
|
909
899
|
skipWrite?: boolean;
|
|
910
900
|
buildDelay?: number;
|
|
@@ -1050,9 +1040,9 @@ interface InputOptions {
|
|
|
1050
1040
|
* - `"react"` enables the `classic` JSX transformer.
|
|
1051
1041
|
* - `"react-jsx"` enables the `automatic` JSX transformer.
|
|
1052
1042
|
*
|
|
1053
|
-
* @default
|
|
1043
|
+
* @default runtime = "automatic"
|
|
1054
1044
|
*/
|
|
1055
|
-
jsx?: false | "react" | "react-jsx" | "preserve"
|
|
1045
|
+
jsx?: false | "react" | "react-jsx" | "preserve";
|
|
1056
1046
|
transform?: OxcTransformOption;
|
|
1057
1047
|
watch?: WatcherOptions | false;
|
|
1058
1048
|
dropLabels?: string[];
|
|
@@ -1087,4 +1077,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1087
1077
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1088
1078
|
|
|
1089
1079
|
//#endregion
|
|
1090
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat,
|
|
1080
|
+
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, 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, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
@@ -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
|
|
|
@@ -282,7 +282,6 @@ interface OutputOptions {
|
|
|
282
282
|
legalComments?: "none" | "inline";
|
|
283
283
|
plugins?: RolldownOutputPluginOption;
|
|
284
284
|
polyfillRequire?: boolean;
|
|
285
|
-
target?: string | string[];
|
|
286
285
|
hoistTransitiveImports?: false;
|
|
287
286
|
preserveModules?: boolean;
|
|
288
287
|
virtualDirname?: string;
|
|
@@ -736,7 +735,7 @@ interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
|
|
736
735
|
interface ResolveIdExtraOptions {
|
|
737
736
|
custom?: CustomPluginOptions;
|
|
738
737
|
isEntry: boolean;
|
|
739
|
-
kind: "
|
|
738
|
+
kind: BindingHookResolveIdExtraArgs["kind"];
|
|
740
739
|
}
|
|
741
740
|
type ResolveIdResult = string | NullValue | false | PartialResolvedId;
|
|
742
741
|
type LoadResult = NullValue | string | SourceDescription;
|
|
@@ -893,18 +892,9 @@ interface ChecksOptions {
|
|
|
893
892
|
//#endregion
|
|
894
893
|
//#region src/options/input-options.d.ts
|
|
895
894
|
type InputOption = string | string[] | Record<string, string>;
|
|
896
|
-
type OxcTransformOption = Omit<TransformOptions, "sourceType" | "lang" | "cwd" | "sourcemap" | "
|
|
895
|
+
type OxcTransformOption = Omit<TransformOptions, "sourceType" | "lang" | "cwd" | "sourcemap" | "define" | "inject">;
|
|
897
896
|
type ExternalOption = StringOrRegExp | StringOrRegExp[] | ((id: string, parentId: string | undefined, isResolved: boolean) => NullValue<boolean>);
|
|
898
897
|
type ModuleTypes = Record<string, "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css" | "asset">;
|
|
899
|
-
interface JsxOptions {
|
|
900
|
-
mode?: "classic" | "automatic" | "preserve";
|
|
901
|
-
factory?: string;
|
|
902
|
-
fragment?: string;
|
|
903
|
-
importSource?: string;
|
|
904
|
-
jsxImportSource?: string;
|
|
905
|
-
refresh?: boolean;
|
|
906
|
-
development?: boolean;
|
|
907
|
-
}
|
|
908
898
|
interface WatcherOptions {
|
|
909
899
|
skipWrite?: boolean;
|
|
910
900
|
buildDelay?: number;
|
|
@@ -1050,9 +1040,9 @@ interface InputOptions {
|
|
|
1050
1040
|
* - `"react"` enables the `classic` JSX transformer.
|
|
1051
1041
|
* - `"react-jsx"` enables the `automatic` JSX transformer.
|
|
1052
1042
|
*
|
|
1053
|
-
* @default
|
|
1043
|
+
* @default runtime = "automatic"
|
|
1054
1044
|
*/
|
|
1055
|
-
jsx?: false | "react" | "react-jsx" | "preserve"
|
|
1045
|
+
jsx?: false | "react" | "react-jsx" | "preserve";
|
|
1056
1046
|
transform?: OxcTransformOption;
|
|
1057
1047
|
watch?: WatcherOptions | false;
|
|
1058
1048
|
dropLabels?: string[];
|
|
@@ -1087,4 +1077,4 @@ declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
|
1087
1077
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1088
1078
|
|
|
1089
1079
|
//#endregion
|
|
1090
|
-
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,
|
|
1080
|
+
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, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, 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 as VERSION$1, WarningHandlerWithDefault, WatchOptions, WatcherOptions, assetPlugin as assetPlugin$1, 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, reporterPlugin as reporterPlugin$1, rolldown as rolldown$1, viteResolvePlugin as viteResolvePlugin$1, wasmFallbackPlugin as wasmFallbackPlugin$1, wasmHelperPlugin as wasmHelperPlugin$1, watch as watch$1, webWorkerPostPlugin as webWorkerPostPlugin$1, withFilter };
|
|
@@ -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";
|
|
@@ -351,6 +351,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
|
|
|
351
351
|
module.exports.ResolverFactory = nativeBinding.ResolverFactory;
|
|
352
352
|
module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
|
|
353
353
|
module.exports.BindingHookSideEffects = nativeBinding.BindingHookSideEffects;
|
|
354
|
+
module.exports.BindingJsx = nativeBinding.BindingJsx;
|
|
354
355
|
module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
|
|
355
356
|
module.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;
|
|
356
357
|
module.exports.EnforceExtension = nativeBinding.EnforceExtension;
|