rolldown 1.0.0-beta.8-commit.d95f99e → 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-Da3YoPSu.d.mts → binding.d-BYAJD_ei.d.mts} +4 -3
- package/dist/shared/{binding.d-Dzicu1RN.d.cts → binding.d-DpcBbfl6.d.cts} +4 -3
- package/dist/shared/{define-config.d-BmvkkUSo.d.cts → define-config.d-BPTJr1ul.d.cts} +7 -5
- package/dist/shared/{define-config.d-DtRVBBH4.d.mts → define-config.d-oMsXZG-V.d.mts} +7 -5
- package/dist/shared/{load-config-CudfTGGr.mjs → load-config-BxVTvTkN.mjs} +1 -1
- package/dist/shared/{load-config-Dh5sBh9i.cjs → load-config-tUGAlsNu.cjs} +1 -1
- package/dist/shared/{src-DeSv5_2X.mjs → src-BF7G7fjV.mjs} +16 -9
- package/dist/shared/{src-DYkvXVDC.cjs → src-DG9oSVoZ.cjs} +16 -9
- package/package.json +15 -15
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,10 +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
484
|
preserveModules?: boolean
|
|
485
485
|
target?: string
|
|
486
|
+
virtualDirname?: string
|
|
486
487
|
}
|
|
487
488
|
interface BindingPluginContextResolvedId {
|
|
488
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,10 +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
484
|
preserveModules?: boolean
|
|
485
485
|
target?: string
|
|
486
|
+
virtualDirname?: string
|
|
486
487
|
}
|
|
487
488
|
interface BindingPluginContextResolvedId {
|
|
488
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,14 +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
287
|
preserveModules?: boolean;
|
|
288
|
+
virtualDirname?: string;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
291
|
//#endregion
|
|
@@ -319,7 +320,7 @@ declare class RolldownBuild {
|
|
|
319
320
|
[Symbol.asyncDispose](): Promise<void>;
|
|
320
321
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
321
322
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
322
|
-
get watchFiles(): string[]
|
|
323
|
+
get watchFiles(): Promise<string[]>;
|
|
323
324
|
}
|
|
324
325
|
|
|
325
326
|
//#endregion
|
|
@@ -419,10 +420,11 @@ interface NormalizedOutputOptions {
|
|
|
419
420
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
420
421
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
421
422
|
minify: false | BindingMinifyOptions;
|
|
422
|
-
|
|
423
|
+
legalComments: "none" | "inline";
|
|
423
424
|
polyfillRequire: boolean;
|
|
424
425
|
plugins: RolldownPlugin[];
|
|
425
426
|
preserveModules: boolean;
|
|
427
|
+
virtualDirname: string;
|
|
426
428
|
}
|
|
427
429
|
|
|
428
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,14 +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
287
|
preserveModules?: boolean;
|
|
288
|
+
virtualDirname?: string;
|
|
288
289
|
}
|
|
289
290
|
|
|
290
291
|
//#endregion
|
|
@@ -319,7 +320,7 @@ declare class RolldownBuild {
|
|
|
319
320
|
[Symbol.asyncDispose](): Promise<void>;
|
|
320
321
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
321
322
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
322
|
-
get watchFiles(): string[]
|
|
323
|
+
get watchFiles(): Promise<string[]>;
|
|
323
324
|
}
|
|
324
325
|
|
|
325
326
|
//#endregion
|
|
@@ -419,10 +420,11 @@ interface NormalizedOutputOptions {
|
|
|
419
420
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
420
421
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
421
422
|
minify: false | BindingMinifyOptions;
|
|
422
|
-
|
|
423
|
+
legalComments: "none" | "inline";
|
|
423
424
|
polyfillRequire: boolean;
|
|
424
425
|
plugins: RolldownPlugin[];
|
|
425
426
|
preserveModules: boolean;
|
|
427
|
+
virtualDirname: string;
|
|
426
428
|
}
|
|
427
429
|
|
|
428
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,8 +2081,9 @@ 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")),
|
|
@@ -2090,7 +2091,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2090
2091
|
if (input) return false;
|
|
2091
2092
|
return true;
|
|
2092
2093
|
}, () => `The 'true' value is not supported`)),
|
|
2093
|
-
preserveModules: optional(boolean())
|
|
2094
|
+
preserveModules: optional(boolean()),
|
|
2095
|
+
virtualDirname: optional(string())
|
|
2094
2096
|
});
|
|
2095
2097
|
getAddonDescription = (placement, wrapper) => {
|
|
2096
2098
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -4053,7 +4055,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
4053
4055
|
//#endregion
|
|
4054
4056
|
//#region src/utils/bindingify-output-options.ts
|
|
4055
4057
|
function bindingifyOutputOptions(outputOptions) {
|
|
4056
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules } = 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;
|
|
4057
4059
|
return {
|
|
4058
4060
|
dir,
|
|
4059
4061
|
file: file == null ? void 0 : file,
|
|
@@ -4085,7 +4087,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4085
4087
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
4086
4088
|
target: outputOptions.target,
|
|
4087
4089
|
sanitizeFileName,
|
|
4088
|
-
preserveModules
|
|
4090
|
+
preserveModules,
|
|
4091
|
+
virtualDirname,
|
|
4092
|
+
legalComments
|
|
4089
4093
|
};
|
|
4090
4094
|
}
|
|
4091
4095
|
function bindingifyAddon(configAddon) {
|
|
@@ -4231,8 +4235,8 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4231
4235
|
get minify() {
|
|
4232
4236
|
return this.inner.minify;
|
|
4233
4237
|
}
|
|
4234
|
-
get
|
|
4235
|
-
return this.inner.
|
|
4238
|
+
get legalComments() {
|
|
4239
|
+
return this.inner.legalComments;
|
|
4236
4240
|
}
|
|
4237
4241
|
get polyfillRequire() {
|
|
4238
4242
|
return this.inner.polyfillRequire;
|
|
@@ -4243,6 +4247,9 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4243
4247
|
get preserveModules() {
|
|
4244
4248
|
return this.preserveModules;
|
|
4245
4249
|
}
|
|
4250
|
+
get virtualDirname() {
|
|
4251
|
+
return this.virtualDirname;
|
|
4252
|
+
}
|
|
4246
4253
|
};
|
|
4247
4254
|
} });
|
|
4248
4255
|
|
|
@@ -5587,7 +5594,7 @@ var init_rolldown_build = __esm({ "src/api/rolldown/rolldown-build.ts"() {
|
|
|
5587
5594
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
5588
5595
|
}
|
|
5589
5596
|
get watchFiles() {
|
|
5590
|
-
return this.#bundler?.bundler.
|
|
5597
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
5591
5598
|
}
|
|
5592
5599
|
};
|
|
5593
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,8 +1992,9 @@ 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")),
|
|
@@ -2001,7 +2002,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
2001
2002
|
if (input) return false;
|
|
2002
2003
|
return true;
|
|
2003
2004
|
}, () => `The 'true' value is not supported`)),
|
|
2004
|
-
preserveModules: optional(boolean())
|
|
2005
|
+
preserveModules: optional(boolean()),
|
|
2006
|
+
virtualDirname: optional(string())
|
|
2005
2007
|
});
|
|
2006
2008
|
const getAddonDescription = (placement, wrapper) => {
|
|
2007
2009
|
return `Code to insert the ${ansis.default.bold(placement)} of the bundled file (${ansis.default.bold(wrapper)} the wrapper function)`;
|
|
@@ -2080,7 +2082,7 @@ function getOutputCliKeys() {
|
|
|
2080
2082
|
return keyof(OutputCliOptionsSchema).options;
|
|
2081
2083
|
}
|
|
2082
2084
|
function getJsonSchema() {
|
|
2083
|
-
return toJsonSchema(CliOptionsSchema);
|
|
2085
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
2084
2086
|
}
|
|
2085
2087
|
|
|
2086
2088
|
//#endregion
|
|
@@ -2776,7 +2778,7 @@ function transformChunkModules(modules) {
|
|
|
2776
2778
|
//#endregion
|
|
2777
2779
|
//#region src/utils/bindingify-output-options.ts
|
|
2778
2780
|
function bindingifyOutputOptions(outputOptions) {
|
|
2779
|
-
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 } = 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;
|
|
2780
2782
|
return {
|
|
2781
2783
|
dir,
|
|
2782
2784
|
file: file == null ? void 0 : file,
|
|
@@ -2808,7 +2810,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2808
2810
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2809
2811
|
target: outputOptions.target,
|
|
2810
2812
|
sanitizeFileName,
|
|
2811
|
-
preserveModules
|
|
2813
|
+
preserveModules,
|
|
2814
|
+
virtualDirname,
|
|
2815
|
+
legalComments
|
|
2812
2816
|
};
|
|
2813
2817
|
}
|
|
2814
2818
|
function bindingifyAddon(configAddon) {
|
|
@@ -2942,8 +2946,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2942
2946
|
get minify() {
|
|
2943
2947
|
return this.inner.minify;
|
|
2944
2948
|
}
|
|
2945
|
-
get
|
|
2946
|
-
return this.inner.
|
|
2949
|
+
get legalComments() {
|
|
2950
|
+
return this.inner.legalComments;
|
|
2947
2951
|
}
|
|
2948
2952
|
get polyfillRequire() {
|
|
2949
2953
|
return this.inner.polyfillRequire;
|
|
@@ -2954,6 +2958,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2954
2958
|
get preserveModules() {
|
|
2955
2959
|
return this.preserveModules;
|
|
2956
2960
|
}
|
|
2961
|
+
get virtualDirname() {
|
|
2962
|
+
return this.virtualDirname;
|
|
2963
|
+
}
|
|
2957
2964
|
};
|
|
2958
2965
|
function normalizeAddon(value) {
|
|
2959
2966
|
if (typeof value === "function") return value;
|
|
@@ -4218,7 +4225,7 @@ var RolldownBuild = class {
|
|
|
4218
4225
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4219
4226
|
}
|
|
4220
4227
|
get watchFiles() {
|
|
4221
|
-
return this.#bundler?.bundler.
|
|
4228
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4222
4229
|
}
|
|
4223
4230
|
};
|
|
4224
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"
|
|
@@ -128,21 +128,21 @@
|
|
|
128
128
|
"unbuild": "^3.0.0",
|
|
129
129
|
"valibot": "1.0.0",
|
|
130
130
|
"@rolldown/testing": "0.0.1",
|
|
131
|
-
"rolldown": "1.0.0-beta.8-commit.
|
|
131
|
+
"rolldown": "1.0.0-beta.8-commit.985af6d"
|
|
132
132
|
},
|
|
133
133
|
"optionalDependencies": {
|
|
134
|
-
"@rolldown/binding-darwin-x64": "1.0.0-beta.8-commit.
|
|
135
|
-
"@rolldown/binding-
|
|
136
|
-
"@rolldown/binding-
|
|
137
|
-
"@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.8-commit.
|
|
138
|
-
"@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.8-commit.
|
|
139
|
-
"@rolldown/binding-linux-x64-gnu": "1.0.0-beta.8-commit.
|
|
140
|
-
"@rolldown/binding-linux-arm64-musl": "1.0.0-beta.8-commit.
|
|
141
|
-
"@rolldown/binding-
|
|
142
|
-
"@rolldown/binding-wasm32-wasi": "1.0.0-beta.8-commit.
|
|
143
|
-
"@rolldown/binding-
|
|
144
|
-
"@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.8-commit.
|
|
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 #": "_",
|