rolldown 1.0.0-beta.8-commit.66f4623 → 1.0.0-beta.8-commit.985af6d
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 +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +2 -2
- 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 +1 -1
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.cts +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/shared/{binding.d-BmHTb42P.d.mts → binding.d-BYAJD_ei.d.mts} +5 -3
- package/dist/shared/{binding.d-CIezRvPc.d.cts → binding.d-DpcBbfl6.d.cts} +5 -3
- package/dist/shared/{define-config.d-C0RGU_l6.d.cts → define-config.d-BPTJr1ul.d.cts} +9 -5
- package/dist/shared/{define-config.d-CtrNAGUN.d.mts → define-config.d-oMsXZG-V.d.mts} +9 -5
- package/dist/shared/{load-config-C4UEmXF3.mjs → load-config-BxVTvTkN.mjs} +1 -1
- package/dist/shared/{load-config-CL04u0ZE.cjs → load-config-tUGAlsNu.cjs} +1 -1
- package/dist/shared/{src-Cjcw5UQw.mjs → src-BF7G7fjV.mjs} +21 -9
- package/dist/shared/{src-BFTX4tP8.cjs → src-DG9oSVoZ.cjs} +21 -9
- package/package.json +16 -16
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-DG9oSVoZ.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
4
4
|
const require_misc = require('./shared/misc-BWx4LNta.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-tUGAlsNu.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"));
|
|
@@ -1065,7 +1065,7 @@ function getSchemaType(schema) {
|
|
|
1065
1065
|
}
|
|
1066
1066
|
if ("type" in schema) return schema.type;
|
|
1067
1067
|
if ("const" in schema) return typeof schema.const;
|
|
1068
|
-
return "
|
|
1068
|
+
return "never";
|
|
1069
1069
|
}
|
|
1070
1070
|
function flattenSchema(schema, base = {}, parent = "") {
|
|
1071
1071
|
if (schema === void 0) return base;
|
|
@@ -1145,7 +1145,7 @@ function normalizeCliOptions(cliOptions, positionals) {
|
|
|
1145
1145
|
//#region src/cli/arguments/index.ts
|
|
1146
1146
|
const objectSchema = require_src.getJsonSchema();
|
|
1147
1147
|
const flattenedSchema = flattenSchema(objectSchema.properties);
|
|
1148
|
-
const options = Object.fromEntries(Object.entries(flattenedSchema).map(([key, schema]) => {
|
|
1148
|
+
const options = Object.fromEntries(Object.entries(flattenedSchema).filter(([_key, schema]) => getSchemaType(schema) !== "never").map(([key, schema]) => {
|
|
1149
1149
|
const config = Object.getOwnPropertyDescriptor(alias, key)?.value;
|
|
1150
1150
|
const type = getSchemaType(schema);
|
|
1151
1151
|
const result = {
|
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-
|
|
2
|
+
import { description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-BF7G7fjV.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-CMF-2Ku4.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-BxVTvTkN.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import colors from "ansis";
|
|
8
8
|
import process$1 from "node:process";
|
|
@@ -1062,7 +1062,7 @@ function getSchemaType(schema) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
if ("type" in schema) return schema.type;
|
|
1064
1064
|
if ("const" in schema) return typeof schema.const;
|
|
1065
|
-
return "
|
|
1065
|
+
return "never";
|
|
1066
1066
|
}
|
|
1067
1067
|
function flattenSchema(schema, base = {}, parent = "") {
|
|
1068
1068
|
if (schema === void 0) return base;
|
|
@@ -1235,7 +1235,7 @@ var init_arguments = __esm({ "src/cli/arguments/index.ts"() {
|
|
|
1235
1235
|
init_utils();
|
|
1236
1236
|
objectSchema = getJsonSchema();
|
|
1237
1237
|
flattenedSchema = flattenSchema(objectSchema.properties);
|
|
1238
|
-
options = Object.fromEntries(Object.entries(flattenedSchema).map(([key, schema]) => {
|
|
1238
|
+
options = Object.fromEntries(Object.entries(flattenedSchema).filter(([_key, schema]) => getSchemaType(schema) !== "never").map(([key, schema]) => {
|
|
1239
1239
|
const config = Object.getOwnPropertyDescriptor(alias, key)?.value;
|
|
1240
1240
|
const type = getSchemaType(schema);
|
|
1241
1241
|
const result = {
|
package/dist/config.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-DG9oSVoZ.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
4
4
|
require('./shared/misc-BWx4LNta.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-tUGAlsNu.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/config.ts
|
|
8
8
|
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-DpcBbfl6.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-BPTJr1ul.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-BYAJD_ei.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-oMsXZG-V.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, init_define_config, version } from "./shared/src-
|
|
1
|
+
import { defineConfig, init_define_config, version } from "./shared/src-BF7G7fjV.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-CMF-2Ku4.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-BxVTvTkN.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_define_config();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./shared/src-
|
|
3
|
+
const require_src = require('./shared/src-DG9oSVoZ.cjs');
|
|
4
4
|
const require_parse_ast_index = require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
5
5
|
require('./shared/misc-BWx4LNta.cjs');
|
|
6
6
|
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, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } 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-DpcBbfl6.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-BPTJr1ul.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, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/define-config.d-
|
|
1
|
+
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult$1 as TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding.d-BYAJD_ei.mjs";
|
|
2
|
+
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin$1 as buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin$1 as dynamicImportVarsPlugin, importGlobPlugin$1 as importGlobPlugin, isolatedDeclarationPlugin$1 as isolatedDeclarationPlugin, jsonPlugin$1 as jsonPlugin, loadFallbackPlugin$1 as loadFallbackPlugin, manifestPlugin$1 as manifestPlugin, moduleFederationPlugin$1 as moduleFederationPlugin, modulePreloadPolyfillPlugin$1 as modulePreloadPolyfillPlugin, reportPlugin$1 as reportPlugin, viteResolvePlugin$1 as viteResolvePlugin, wasmFallbackPlugin$1 as wasmFallbackPlugin, wasmHelperPlugin$1 as wasmHelperPlugin } from "./shared/define-config.d-oMsXZG-V.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __toESM } from "./shared/chunk--iN_1bjD.mjs";
|
|
2
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-
|
|
2
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/src-BF7G7fjV.mjs";
|
|
3
3
|
import { require_binding } from "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
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-DpcBbfl6.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-BPTJr1ul.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, 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-BYAJD_ei.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config.d-oMsXZG-V.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
5
5
|
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
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, JsxOptions, 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-DpcBbfl6.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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-BPTJr1ul.cjs";
|
|
3
3
|
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, JsxOptions, 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-BYAJD_ei.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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-oMsXZG-V.mjs";
|
|
3
3
|
|
|
4
4
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-BF7G7fjV.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
3
3
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-qZFfknuJ.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-DG9oSVoZ.cjs');
|
|
3
3
|
const require_parse_ast_index = require('./shared/parse-ast-index-BFFqcofG.cjs');
|
|
4
4
|
require('./shared/misc-BWx4LNta.cjs');
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -1,5 +1,5 @@
|
|
|
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-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-BF7G7fjV.mjs";
|
|
3
3
|
import { require_binding } from "./shared/parse-ast-index-CMF-2Ku4.mjs";
|
|
4
4
|
import "./shared/misc-DGAe2XOW.mjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding.d-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config.d-
|
|
1
|
+
import "./shared/binding.d-DpcBbfl6.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-BPTJr1ul.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-BYAJD_ei.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config.d-oMsXZG-V.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -57,7 +57,7 @@ declare class BindingNormalizedOptions {
|
|
|
57
57
|
get sourcemapDebugIds(): boolean
|
|
58
58
|
get minify(): false | BindingMinifyOptions
|
|
59
59
|
get polyfillRequire(): boolean
|
|
60
|
-
get
|
|
60
|
+
get legalComments(): 'none' | 'inline'
|
|
61
61
|
}
|
|
62
62
|
declare class BindingOutputAsset {
|
|
63
63
|
get fileName(): string
|
|
@@ -139,7 +139,7 @@ declare class Bundler {
|
|
|
139
139
|
scan(): Promise<BindingOutputs>
|
|
140
140
|
close(): Promise<void>
|
|
141
141
|
get closed(): boolean
|
|
142
|
-
|
|
142
|
+
getWatchFiles(): Promise<Array<string>>
|
|
143
143
|
generateHmrPatch(changedFiles: Array<string>): Promise<BindingHmrOutput>
|
|
144
144
|
hmrInvalidate(file: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>
|
|
145
145
|
}
|
|
@@ -479,9 +479,11 @@ interface BindingOutputOptions {
|
|
|
479
479
|
sourcemapPathTransform?: (source: string, sourcemapPath: string) => string
|
|
480
480
|
minify?: boolean | 'dce-only' | BindingMinifyOptions
|
|
481
481
|
advancedChunks?: BindingAdvancedChunksOptions
|
|
482
|
-
|
|
482
|
+
legalComments?: 'none' | 'inline'
|
|
483
483
|
polyfillRequire?: boolean
|
|
484
|
+
preserveModules?: boolean
|
|
484
485
|
target?: string
|
|
486
|
+
virtualDirname?: string
|
|
485
487
|
}
|
|
486
488
|
interface BindingPluginContextResolvedId {
|
|
487
489
|
id: string
|
|
@@ -57,7 +57,7 @@ declare class BindingNormalizedOptions {
|
|
|
57
57
|
get sourcemapDebugIds(): boolean
|
|
58
58
|
get minify(): false | BindingMinifyOptions
|
|
59
59
|
get polyfillRequire(): boolean
|
|
60
|
-
get
|
|
60
|
+
get legalComments(): 'none' | 'inline'
|
|
61
61
|
}
|
|
62
62
|
declare class BindingOutputAsset {
|
|
63
63
|
get fileName(): string
|
|
@@ -139,7 +139,7 @@ declare class Bundler {
|
|
|
139
139
|
scan(): Promise<BindingOutputs>
|
|
140
140
|
close(): Promise<void>
|
|
141
141
|
get closed(): boolean
|
|
142
|
-
|
|
142
|
+
getWatchFiles(): Promise<Array<string>>
|
|
143
143
|
generateHmrPatch(changedFiles: Array<string>): Promise<BindingHmrOutput>
|
|
144
144
|
hmrInvalidate(file: string, firstInvalidatedBy?: string | undefined | null): Promise<BindingHmrOutput>
|
|
145
145
|
}
|
|
@@ -479,9 +479,11 @@ interface BindingOutputOptions {
|
|
|
479
479
|
sourcemapPathTransform?: (source: string, sourcemapPath: string) => string
|
|
480
480
|
minify?: boolean | 'dce-only' | BindingMinifyOptions
|
|
481
481
|
advancedChunks?: BindingAdvancedChunksOptions
|
|
482
|
-
|
|
482
|
+
legalComments?: 'none' | 'inline'
|
|
483
483
|
polyfillRequire?: boolean
|
|
484
|
+
preserveModules?: boolean
|
|
484
485
|
target?: string
|
|
486
|
+
virtualDirname?: string
|
|
485
487
|
}
|
|
486
488
|
interface BindingPluginContextResolvedId {
|
|
487
489
|
id: string
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-DpcBbfl6.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -277,13 +277,15 @@ interface OutputOptions {
|
|
|
277
277
|
* Control comments in the output.
|
|
278
278
|
*
|
|
279
279
|
* - `none`: no comments
|
|
280
|
-
* - `
|
|
280
|
+
* - `inline`: preserve comments that contain `@license`, `@preserve` or starts with `//!` `/*!`
|
|
281
281
|
*/
|
|
282
|
-
|
|
282
|
+
legalComments?: "none" | "inline";
|
|
283
283
|
plugins?: RolldownOutputPluginOption;
|
|
284
284
|
polyfillRequire?: boolean;
|
|
285
285
|
target?: ESTarget;
|
|
286
286
|
hoistTransitiveImports?: false;
|
|
287
|
+
preserveModules?: boolean;
|
|
288
|
+
virtualDirname?: string;
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
//#endregion
|
|
@@ -318,7 +320,7 @@ declare class RolldownBuild {
|
|
|
318
320
|
[Symbol.asyncDispose](): Promise<void>;
|
|
319
321
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
320
322
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
321
|
-
get watchFiles(): string[]
|
|
323
|
+
get watchFiles(): Promise<string[]>;
|
|
322
324
|
}
|
|
323
325
|
|
|
324
326
|
//#endregion
|
|
@@ -418,9 +420,11 @@ interface NormalizedOutputOptions {
|
|
|
418
420
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
419
421
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
420
422
|
minify: false | BindingMinifyOptions;
|
|
421
|
-
|
|
423
|
+
legalComments: "none" | "inline";
|
|
422
424
|
polyfillRequire: boolean;
|
|
423
425
|
plugins: RolldownPlugin[];
|
|
426
|
+
preserveModules: boolean;
|
|
427
|
+
virtualDirname: string;
|
|
424
428
|
}
|
|
425
429
|
|
|
426
430
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding.d-BYAJD_ei.mjs";
|
|
2
2
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
3
3
|
import { Program } from "@oxc-project/types";
|
|
4
4
|
|
|
@@ -277,13 +277,15 @@ interface OutputOptions {
|
|
|
277
277
|
* Control comments in the output.
|
|
278
278
|
*
|
|
279
279
|
* - `none`: no comments
|
|
280
|
-
* - `
|
|
280
|
+
* - `inline`: preserve comments that contain `@license`, `@preserve` or starts with `//!` `/*!`
|
|
281
281
|
*/
|
|
282
|
-
|
|
282
|
+
legalComments?: "none" | "inline";
|
|
283
283
|
plugins?: RolldownOutputPluginOption;
|
|
284
284
|
polyfillRequire?: boolean;
|
|
285
285
|
target?: ESTarget;
|
|
286
286
|
hoistTransitiveImports?: false;
|
|
287
|
+
preserveModules?: boolean;
|
|
288
|
+
virtualDirname?: string;
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
//#endregion
|
|
@@ -318,7 +320,7 @@ declare class RolldownBuild {
|
|
|
318
320
|
[Symbol.asyncDispose](): Promise<void>;
|
|
319
321
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
320
322
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
321
|
-
get watchFiles(): string[]
|
|
323
|
+
get watchFiles(): Promise<string[]>;
|
|
322
324
|
}
|
|
323
325
|
|
|
324
326
|
//#endregion
|
|
@@ -418,9 +420,11 @@ interface NormalizedOutputOptions {
|
|
|
418
420
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
419
421
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
420
422
|
minify: false | BindingMinifyOptions;
|
|
421
|
-
|
|
423
|
+
legalComments: "none" | "inline";
|
|
422
424
|
polyfillRequire: boolean;
|
|
423
425
|
plugins: RolldownPlugin[];
|
|
426
|
+
preserveModules: boolean;
|
|
427
|
+
virtualDirname: string;
|
|
424
428
|
}
|
|
425
429
|
|
|
426
430
|
//#endregion
|
|
@@ -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-BF7G7fjV.mjs";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const require_chunk = require('./chunk-qZFfknuJ.cjs');
|
|
3
|
-
const require_src = require('./src-
|
|
3
|
+
const require_src = require('./src-DG9oSVoZ.cjs');
|
|
4
4
|
const node_fs = require_chunk.__toESM(require("node:fs"));
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -8,7 +8,7 @@ import { availableParallelism } from "node:os";
|
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.8-commit.
|
|
11
|
+
var version = "1.0.0-beta.8-commit.985af6d";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -1781,7 +1781,7 @@ function getOutputCliKeys() {
|
|
|
1781
1781
|
return keyof(OutputCliOptionsSchema).options;
|
|
1782
1782
|
}
|
|
1783
1783
|
function getJsonSchema() {
|
|
1784
|
-
return toJsonSchema(CliOptionsSchema);
|
|
1784
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
1785
1785
|
}
|
|
1786
1786
|
var StringOrRegExpSchema, LogLevelSchema, LogLevelOptionSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, InputOptionSchema, ExternalSchema, ModuleTypesSchema, JsxOptionsSchema, HelperModeSchema, DecoratorOptionSchema, HelpersSchema, RewriteImportExtensionsSchema, TypescriptSchema, AssumptionsSchema, TransformOptionsSchema, WatchOptionsSchema, ChecksOptionsSchema, MinifyOptionsSchema, ResolveOptionsSchema, TreeshakingOptionsSchema, OnLogSchema, OnwarnSchema, HmrSchema, InputOptionsSchema, InputCliOverrideSchema, InputCliOptionsSchema, ESTargetSchema, ModuleFormatSchema, AddonFunctionSchema, ChunkFileNamesSchema, AssetFileNamesSchema, SanitizeFileNameSchema, GlobalsFunctionSchema, AdvancedChunksSchema, OutputOptionsSchema, getAddonDescription, OutputCliOverrideSchema, OutputCliOptionsSchema, CliOptionsSchema, inputHelperMsgRecord, outputHelperMsgRecord;
|
|
1787
1787
|
var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
@@ -2081,15 +2081,18 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2081
2081
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2082
2082
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2083
2083
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2084
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
2084
2085
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
2085
|
-
|
|
2086
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2086
2087
|
plugins: optional(custom(() => true)),
|
|
2087
2088
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2088
2089
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
2089
2090
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2090
2091
|
if (input) return false;
|
|
2091
2092
|
return true;
|
|
2092
|
-
}, () => `The 'true' value is not supported`))
|
|
2093
|
+
}, () => `The 'true' value is not supported`)),
|
|
2094
|
+
preserveModules: optional(boolean()),
|
|
2095
|
+
virtualDirname: optional(string())
|
|
2093
2096
|
});
|
|
2094
2097
|
getAddonDescription = (placement, wrapper) => {
|
|
2095
2098
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -4052,7 +4055,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
4052
4055
|
//#endregion
|
|
4053
4056
|
//#region src/utils/bindingify-output-options.ts
|
|
4054
4057
|
function bindingifyOutputOptions(outputOptions) {
|
|
4055
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName } = outputOptions;
|
|
4058
|
+
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments } = outputOptions;
|
|
4056
4059
|
return {
|
|
4057
4060
|
dir,
|
|
4058
4061
|
file: file == null ? void 0 : file,
|
|
@@ -4083,7 +4086,10 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4083
4086
|
advancedChunks: outputOptions.advancedChunks,
|
|
4084
4087
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
4085
4088
|
target: outputOptions.target,
|
|
4086
|
-
sanitizeFileName
|
|
4089
|
+
sanitizeFileName,
|
|
4090
|
+
preserveModules,
|
|
4091
|
+
virtualDirname,
|
|
4092
|
+
legalComments
|
|
4087
4093
|
};
|
|
4088
4094
|
}
|
|
4089
4095
|
function bindingifyAddon(configAddon) {
|
|
@@ -4229,8 +4235,8 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4229
4235
|
get minify() {
|
|
4230
4236
|
return this.inner.minify;
|
|
4231
4237
|
}
|
|
4232
|
-
get
|
|
4233
|
-
return this.inner.
|
|
4238
|
+
get legalComments() {
|
|
4239
|
+
return this.inner.legalComments;
|
|
4234
4240
|
}
|
|
4235
4241
|
get polyfillRequire() {
|
|
4236
4242
|
return this.inner.polyfillRequire;
|
|
@@ -4238,6 +4244,12 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4238
4244
|
get plugins() {
|
|
4239
4245
|
return this.normalizedOutputPlugins;
|
|
4240
4246
|
}
|
|
4247
|
+
get preserveModules() {
|
|
4248
|
+
return this.preserveModules;
|
|
4249
|
+
}
|
|
4250
|
+
get virtualDirname() {
|
|
4251
|
+
return this.virtualDirname;
|
|
4252
|
+
}
|
|
4241
4253
|
};
|
|
4242
4254
|
} });
|
|
4243
4255
|
|
|
@@ -5582,7 +5594,7 @@ var init_rolldown_build = __esm({ "src/api/rolldown/rolldown-build.ts"() {
|
|
|
5582
5594
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
5583
5595
|
}
|
|
5584
5596
|
get watchFiles() {
|
|
5585
|
-
return this.#bundler?.bundler.
|
|
5597
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
5586
5598
|
}
|
|
5587
5599
|
};
|
|
5588
5600
|
} });
|
|
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
9
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.8-commit.
|
|
12
|
+
var version = "1.0.0-beta.8-commit.985af6d";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -1992,15 +1992,18 @@ const OutputOptionsSchema = strictObject({
|
|
|
1992
1992
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
1993
1993
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
1994
1994
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
1995
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
1995
1996
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
1996
|
-
|
|
1997
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1997
1998
|
plugins: optional(custom(() => true)),
|
|
1998
1999
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1999
2000
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
2000
2001
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2001
2002
|
if (input) return false;
|
|
2002
2003
|
return true;
|
|
2003
|
-
}, () => `The 'true' value is not supported`))
|
|
2004
|
+
}, () => `The 'true' value is not supported`)),
|
|
2005
|
+
preserveModules: optional(boolean()),
|
|
2006
|
+
virtualDirname: optional(string())
|
|
2004
2007
|
});
|
|
2005
2008
|
const getAddonDescription = (placement, wrapper) => {
|
|
2006
2009
|
return `Code to insert the ${ansis.default.bold(placement)} of the bundled file (${ansis.default.bold(wrapper)} the wrapper function)`;
|
|
@@ -2079,7 +2082,7 @@ function getOutputCliKeys() {
|
|
|
2079
2082
|
return keyof(OutputCliOptionsSchema).options;
|
|
2080
2083
|
}
|
|
2081
2084
|
function getJsonSchema() {
|
|
2082
|
-
return toJsonSchema(CliOptionsSchema);
|
|
2085
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
2083
2086
|
}
|
|
2084
2087
|
|
|
2085
2088
|
//#endregion
|
|
@@ -2775,7 +2778,7 @@ function transformChunkModules(modules) {
|
|
|
2775
2778
|
//#endregion
|
|
2776
2779
|
//#region src/utils/bindingify-output-options.ts
|
|
2777
2780
|
function bindingifyOutputOptions(outputOptions) {
|
|
2778
|
-
const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName } = outputOptions;
|
|
2781
|
+
const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments } = outputOptions;
|
|
2779
2782
|
return {
|
|
2780
2783
|
dir,
|
|
2781
2784
|
file: file == null ? void 0 : file,
|
|
@@ -2806,7 +2809,10 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2806
2809
|
advancedChunks: outputOptions.advancedChunks,
|
|
2807
2810
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2808
2811
|
target: outputOptions.target,
|
|
2809
|
-
sanitizeFileName
|
|
2812
|
+
sanitizeFileName,
|
|
2813
|
+
preserveModules,
|
|
2814
|
+
virtualDirname,
|
|
2815
|
+
legalComments
|
|
2810
2816
|
};
|
|
2811
2817
|
}
|
|
2812
2818
|
function bindingifyAddon(configAddon) {
|
|
@@ -2940,8 +2946,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2940
2946
|
get minify() {
|
|
2941
2947
|
return this.inner.minify;
|
|
2942
2948
|
}
|
|
2943
|
-
get
|
|
2944
|
-
return this.inner.
|
|
2949
|
+
get legalComments() {
|
|
2950
|
+
return this.inner.legalComments;
|
|
2945
2951
|
}
|
|
2946
2952
|
get polyfillRequire() {
|
|
2947
2953
|
return this.inner.polyfillRequire;
|
|
@@ -2949,6 +2955,12 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2949
2955
|
get plugins() {
|
|
2950
2956
|
return this.normalizedOutputPlugins;
|
|
2951
2957
|
}
|
|
2958
|
+
get preserveModules() {
|
|
2959
|
+
return this.preserveModules;
|
|
2960
|
+
}
|
|
2961
|
+
get virtualDirname() {
|
|
2962
|
+
return this.virtualDirname;
|
|
2963
|
+
}
|
|
2952
2964
|
};
|
|
2953
2965
|
function normalizeAddon(value) {
|
|
2954
2966
|
if (typeof value === "function") return value;
|
|
@@ -4213,7 +4225,7 @@ var RolldownBuild = class {
|
|
|
4213
4225
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4214
4226
|
}
|
|
4215
4227
|
get watchFiles() {
|
|
4216
|
-
return this.#bundler?.bundler.
|
|
4228
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4217
4229
|
}
|
|
4218
4230
|
};
|
|
4219
4231
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rolldown",
|
|
3
|
-
"version": "1.0.0-beta.8-commit.
|
|
3
|
+
"version": "1.0.0-beta.8-commit.985af6d",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://rolldown.rs/",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@oxc-project/types": "0.69.0",
|
|
94
94
|
"ansis": "^4.0.0",
|
|
95
|
-
"@rolldown/pluginutils": "1.0.0-beta.8-commit.
|
|
95
|
+
"@rolldown/pluginutils": "1.0.0-beta.8-commit.985af6d"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"@oxc-project/runtime": "0.69.0"
|
|
@@ -127,22 +127,22 @@
|
|
|
127
127
|
"typescript": "^5.7.3",
|
|
128
128
|
"unbuild": "^3.0.0",
|
|
129
129
|
"valibot": "1.0.0",
|
|
130
|
-
"rolldown": "
|
|
131
|
-
"
|
|
130
|
+
"@rolldown/testing": "0.0.1",
|
|
131
|
+
"rolldown": "1.0.0-beta.8-commit.985af6d"
|
|
132
132
|
},
|
|
133
133
|
"optionalDependencies": {
|
|
134
|
-
"@rolldown/binding-darwin-
|
|
135
|
-
"@rolldown/binding-darwin-
|
|
136
|
-
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.
|
|
137
|
-
"@rolldown/binding-linux-
|
|
138
|
-
"@rolldown/binding-linux-arm64-
|
|
139
|
-
"@rolldown/binding-linux-
|
|
140
|
-
"@rolldown/binding-linux-
|
|
141
|
-
"@rolldown/binding-
|
|
142
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.
|
|
143
|
-
"@rolldown/binding-
|
|
144
|
-
"@rolldown/binding-win32-
|
|
145
|
-
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.
|
|
134
|
+
"@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.985af6d",
|
|
135
|
+
"@rolldown/binding-darwin-arm64": "1.0.0-beta.8-commit.985af6d",
|
|
136
|
+
"@rolldown/binding-freebsd-x64": "1.0.0-beta.8-commit.985af6d",
|
|
137
|
+
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.985af6d",
|
|
138
|
+
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.985af6d",
|
|
139
|
+
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.985af6d",
|
|
140
|
+
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.985af6d",
|
|
141
|
+
"@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.8-commit.985af6d",
|
|
142
|
+
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.985af6d",
|
|
143
|
+
"@rolldown/binding-linux-x64-musl": "1.0.0-beta.8-commit.985af6d",
|
|
144
|
+
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.985af6d",
|
|
145
|
+
"@rolldown/binding-win32-x64-msvc": "1.0.0-beta.8-commit.985af6d"
|
|
146
146
|
},
|
|
147
147
|
"scripts": {
|
|
148
148
|
"# Scrips for binding #": "_",
|