@rolldown/browser 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 +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +2 -2
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +1 -1
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +1 -1
- package/dist/filter-index.d.cts +1 -1
- package/dist/filter-index.d.mts +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/parallel-plugin-worker.cjs +1 -1
- package/dist/parallel-plugin-worker.mjs +1 -1
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config.d-CItYepRt.d.mts → define-config.d-DJQShs9J.d.mts} +13 -5
- package/dist/shared/{define-config.d-D4ayr_B-.d.cts → define-config.d-DTa18THN.d.cts} +13 -5
- package/dist/shared/{load-config-ZlQ2Epcn.mjs → load-config-B9YOk0i9.mjs} +1 -1
- package/dist/shared/{load-config-Cjq5Zd-j.cjs → load-config-ChRGHkfl.cjs} +1 -1
- package/dist/shared/{src-B188GjoC.mjs → src-BT0kmViC.mjs} +16 -9
- package/dist/shared/{src-DI5J96eO.cjs → src-OSsknIUY.cjs} +16 -9
- package/dist/{src-DIN6_XoW.js → src-C6BK0RGi.js} +15 -8
- package/package.json +1 -1
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-OSsknIUY.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-n1rVcJ5K.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-ChRGHkfl.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-DSsiIF1Z.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-BT0kmViC.mjs";
|
|
3
3
|
import { arraify, init_misc } from "./shared/dist-Oaz_A_8i.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-B9YOk0i9.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-OSsknIUY.cjs');
|
|
3
3
|
require('./shared/dist-n1rVcJ5K.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-ChRGHkfl.cjs');
|
|
6
6
|
|
|
7
7
|
//#region src/config.ts
|
|
8
8
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig } from "./shared/define-config.d-DTa18THN.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-
|
|
1
|
+
import { ConfigExport, defineConfig$1 as defineConfig } from "./shared/define-config.d-DJQShs9J.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/utils/load-config.d.ts
|
|
4
4
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig, init_define_config, version } from "./shared/src-
|
|
1
|
+
import { defineConfig, init_define_config, version } from "./shared/src-BT0kmViC.mjs";
|
|
2
2
|
import "./shared/dist-Oaz_A_8i.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-B9YOk0i9.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
init_define_config();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./src-C6BK0RGi.js";
|
|
2
2
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -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-OSsknIUY.cjs');
|
|
4
4
|
require('./shared/dist-n1rVcJ5K.cjs');
|
|
5
5
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
6
6
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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 { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/define-config.d-DTa18THN.cjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin$1 as BuiltinPlugin, InputOptions, RolldownPlugin, 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 { 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-DJQShs9J.mjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-BT0kmViC.mjs";
|
|
2
2
|
import "./shared/dist-Oaz_A_8i.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/define-config.d-DTa18THN.cjs";
|
|
2
2
|
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/define-config.d-
|
|
1
|
+
import { and, code, exclude, id, include, moduleType, not, or, withFilter } from "./shared/define-config.d-DJQShs9J.mjs";
|
|
2
2
|
|
|
3
3
|
export { and, code, exclude, id, include, moduleType, not, or, withFilter };
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, 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 } from "./shared/define-config.d-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, 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 } from "./shared/define-config.d-DTa18THN.cjs";
|
|
2
2
|
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, 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,3 +1,3 @@
|
|
|
1
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, 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$1 as VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch } from "./shared/define-config.d-
|
|
1
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, 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$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-DJQShs9J.mjs";
|
|
2
2
|
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, 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-BT0kmViC.mjs";
|
|
2
2
|
import "./shared/dist-Oaz_A_8i.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-DvsltErM.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-OSsknIUY.cjs');
|
|
3
3
|
require('./shared/dist-n1rVcJ5K.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DfDBeJFi.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.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-BT0kmViC.mjs";
|
|
3
3
|
import "./shared/dist-Oaz_A_8i.mjs";
|
|
4
4
|
import "./shared/parse-ast-index-DvsltErM.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
Binary file
|
|
@@ -276,14 +276,15 @@ interface OutputOptions {
|
|
|
276
276
|
* Control comments in the output.
|
|
277
277
|
*
|
|
278
278
|
* - `none`: no comments
|
|
279
|
-
* - `
|
|
279
|
+
* - `inline`: preserve comments that contain `@license`, `@preserve` or starts with `//!` `/*!`
|
|
280
280
|
*/
|
|
281
|
-
|
|
281
|
+
legalComments?: "none" | "inline";
|
|
282
282
|
plugins?: RolldownOutputPluginOption;
|
|
283
283
|
polyfillRequire?: boolean;
|
|
284
284
|
target?: ESTarget;
|
|
285
285
|
hoistTransitiveImports?: false;
|
|
286
286
|
preserveModules?: boolean;
|
|
287
|
+
virtualDirname?: string;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
//#endregion
|
|
@@ -318,7 +319,7 @@ declare class RolldownBuild {
|
|
|
318
319
|
[Symbol.asyncDispose](): Promise<void>;
|
|
319
320
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
320
321
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
321
|
-
get watchFiles(): string[]
|
|
322
|
+
get watchFiles(): Promise<string[]>;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
//#endregion
|
|
@@ -418,17 +419,18 @@ interface NormalizedOutputOptions {
|
|
|
418
419
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
419
420
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
420
421
|
minify: false | BindingMinifyOptions;
|
|
421
|
-
|
|
422
|
+
legalComments: "none" | "inline";
|
|
422
423
|
polyfillRequire: boolean;
|
|
423
424
|
plugins: RolldownPlugin[];
|
|
424
425
|
preserveModules: boolean;
|
|
426
|
+
virtualDirname: string;
|
|
425
427
|
}
|
|
426
428
|
|
|
427
429
|
//#endregion
|
|
428
430
|
//#region ../pluginutils/dist/index.d.ts
|
|
429
431
|
type StringOrRegExp = string | RegExp;
|
|
430
432
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
431
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code |
|
|
433
|
+
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
432
434
|
type TopLevelFilterExpression = Include | Exclude$1;
|
|
433
435
|
declare class And {
|
|
434
436
|
kind: "and";
|
|
@@ -464,6 +466,12 @@ declare class Code {
|
|
|
464
466
|
pattern: StringOrRegExp;
|
|
465
467
|
constructor(expr: StringOrRegExp);
|
|
466
468
|
}
|
|
469
|
+
declare class Query {
|
|
470
|
+
kind: "query";
|
|
471
|
+
key: string;
|
|
472
|
+
pattern: StringOrRegExp | boolean;
|
|
473
|
+
constructor(key: string, pattern: StringOrRegExp | boolean);
|
|
474
|
+
}
|
|
467
475
|
declare class Include {
|
|
468
476
|
kind: "include";
|
|
469
477
|
expr: FilterExpression;
|
|
@@ -276,14 +276,15 @@ interface OutputOptions {
|
|
|
276
276
|
* Control comments in the output.
|
|
277
277
|
*
|
|
278
278
|
* - `none`: no comments
|
|
279
|
-
* - `
|
|
279
|
+
* - `inline`: preserve comments that contain `@license`, `@preserve` or starts with `//!` `/*!`
|
|
280
280
|
*/
|
|
281
|
-
|
|
281
|
+
legalComments?: "none" | "inline";
|
|
282
282
|
plugins?: RolldownOutputPluginOption;
|
|
283
283
|
polyfillRequire?: boolean;
|
|
284
284
|
target?: ESTarget;
|
|
285
285
|
hoistTransitiveImports?: false;
|
|
286
286
|
preserveModules?: boolean;
|
|
287
|
+
virtualDirname?: string;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
290
|
//#endregion
|
|
@@ -318,7 +319,7 @@ declare class RolldownBuild {
|
|
|
318
319
|
[Symbol.asyncDispose](): Promise<void>;
|
|
319
320
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
320
321
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
321
|
-
get watchFiles(): string[]
|
|
322
|
+
get watchFiles(): Promise<string[]>;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
//#endregion
|
|
@@ -418,17 +419,18 @@ interface NormalizedOutputOptions {
|
|
|
418
419
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
419
420
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
420
421
|
minify: false | BindingMinifyOptions;
|
|
421
|
-
|
|
422
|
+
legalComments: "none" | "inline";
|
|
422
423
|
polyfillRequire: boolean;
|
|
423
424
|
plugins: RolldownPlugin[];
|
|
424
425
|
preserveModules: boolean;
|
|
426
|
+
virtualDirname: string;
|
|
425
427
|
}
|
|
426
428
|
|
|
427
429
|
//#endregion
|
|
428
430
|
//#region ../pluginutils/dist/index.d.ts
|
|
429
431
|
type StringOrRegExp = string | RegExp;
|
|
430
432
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
431
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code |
|
|
433
|
+
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
432
434
|
type TopLevelFilterExpression = Include | Exclude$1;
|
|
433
435
|
declare class And {
|
|
434
436
|
kind: "and";
|
|
@@ -464,6 +466,12 @@ declare class Code {
|
|
|
464
466
|
pattern: StringOrRegExp;
|
|
465
467
|
constructor(expr: StringOrRegExp);
|
|
466
468
|
}
|
|
469
|
+
declare class Query {
|
|
470
|
+
kind: "query";
|
|
471
|
+
key: string;
|
|
472
|
+
pattern: StringOrRegExp | boolean;
|
|
473
|
+
constructor(key: string, pattern: StringOrRegExp | boolean);
|
|
474
|
+
}
|
|
467
475
|
declare class Include {
|
|
468
476
|
kind: "include";
|
|
469
477
|
expr: FilterExpression;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-BT0kmViC.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { cwd } from "node:process";
|
|
@@ -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-OSsknIUY.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
6
6
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -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
|
|
@@ -1778,7 +1778,7 @@ function getOutputCliKeys() {
|
|
|
1778
1778
|
return keyof(OutputCliOptionsSchema).options;
|
|
1779
1779
|
}
|
|
1780
1780
|
function getJsonSchema() {
|
|
1781
|
-
return toJsonSchema(CliOptionsSchema);
|
|
1781
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
1782
1782
|
}
|
|
1783
1783
|
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;
|
|
1784
1784
|
var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
@@ -2078,8 +2078,9 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2078
2078
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2079
2079
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2080
2080
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2081
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
2081
2082
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
2082
|
-
|
|
2083
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2083
2084
|
plugins: optional(custom(() => true)),
|
|
2084
2085
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
2085
2086
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
@@ -2087,7 +2088,8 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2087
2088
|
if (input) return false;
|
|
2088
2089
|
return true;
|
|
2089
2090
|
}, () => `The 'true' value is not supported`)),
|
|
2090
|
-
preserveModules: optional(boolean())
|
|
2091
|
+
preserveModules: optional(boolean()),
|
|
2092
|
+
virtualDirname: optional(string())
|
|
2091
2093
|
});
|
|
2092
2094
|
getAddonDescription = (placement, wrapper) => {
|
|
2093
2095
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -4045,7 +4047,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
4045
4047
|
//#endregion
|
|
4046
4048
|
//#region src/utils/bindingify-output-options.ts
|
|
4047
4049
|
function bindingifyOutputOptions(outputOptions) {
|
|
4048
|
-
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;
|
|
4050
|
+
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;
|
|
4049
4051
|
return {
|
|
4050
4052
|
dir,
|
|
4051
4053
|
file: file == null ? void 0 : file,
|
|
@@ -4077,7 +4079,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4077
4079
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
4078
4080
|
target: outputOptions.target,
|
|
4079
4081
|
sanitizeFileName,
|
|
4080
|
-
preserveModules
|
|
4082
|
+
preserveModules,
|
|
4083
|
+
virtualDirname,
|
|
4084
|
+
legalComments
|
|
4081
4085
|
};
|
|
4082
4086
|
}
|
|
4083
4087
|
function bindingifyAddon(configAddon) {
|
|
@@ -4223,8 +4227,8 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4223
4227
|
get minify() {
|
|
4224
4228
|
return this.inner.minify;
|
|
4225
4229
|
}
|
|
4226
|
-
get
|
|
4227
|
-
return this.inner.
|
|
4230
|
+
get legalComments() {
|
|
4231
|
+
return this.inner.legalComments;
|
|
4228
4232
|
}
|
|
4229
4233
|
get polyfillRequire() {
|
|
4230
4234
|
return this.inner.polyfillRequire;
|
|
@@ -4235,6 +4239,9 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4235
4239
|
get preserveModules() {
|
|
4236
4240
|
return this.preserveModules;
|
|
4237
4241
|
}
|
|
4242
|
+
get virtualDirname() {
|
|
4243
|
+
return this.virtualDirname;
|
|
4244
|
+
}
|
|
4238
4245
|
};
|
|
4239
4246
|
} });
|
|
4240
4247
|
|
|
@@ -5573,7 +5580,7 @@ var init_rolldown_build = __esm({ "src/api/rolldown/rolldown-build.ts"() {
|
|
|
5573
5580
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
5574
5581
|
}
|
|
5575
5582
|
get watchFiles() {
|
|
5576
|
-
return this.#bundler?.bundler.
|
|
5583
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
5577
5584
|
}
|
|
5578
5585
|
};
|
|
5579
5586
|
} });
|
|
@@ -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
|
|
@@ -1991,8 +1991,9 @@ const OutputOptionsSchema = strictObject({
|
|
|
1991
1991
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
1992
1992
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
1993
1993
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
1994
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
1994
1995
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
1995
|
-
|
|
1996
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1996
1997
|
plugins: optional(custom(() => true)),
|
|
1997
1998
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1998
1999
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
@@ -2000,7 +2001,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
2000
2001
|
if (input) return false;
|
|
2001
2002
|
return true;
|
|
2002
2003
|
}, () => `The 'true' value is not supported`)),
|
|
2003
|
-
preserveModules: optional(boolean())
|
|
2004
|
+
preserveModules: optional(boolean()),
|
|
2005
|
+
virtualDirname: optional(string())
|
|
2004
2006
|
});
|
|
2005
2007
|
const getAddonDescription = (placement, wrapper) => {
|
|
2006
2008
|
return `Code to insert the ${ansis.default.bold(placement)} of the bundled file (${ansis.default.bold(wrapper)} the wrapper function)`;
|
|
@@ -2079,7 +2081,7 @@ function getOutputCliKeys() {
|
|
|
2079
2081
|
return keyof(OutputCliOptionsSchema).options;
|
|
2080
2082
|
}
|
|
2081
2083
|
function getJsonSchema() {
|
|
2082
|
-
return toJsonSchema(CliOptionsSchema);
|
|
2084
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
2083
2085
|
}
|
|
2084
2086
|
|
|
2085
2087
|
//#endregion
|
|
@@ -2773,7 +2775,7 @@ function transformChunkModules(modules) {
|
|
|
2773
2775
|
//#endregion
|
|
2774
2776
|
//#region src/utils/bindingify-output-options.ts
|
|
2775
2777
|
function bindingifyOutputOptions(outputOptions) {
|
|
2776
|
-
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;
|
|
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, preserveModules, virtualDirname, legalComments } = outputOptions;
|
|
2777
2779
|
return {
|
|
2778
2780
|
dir,
|
|
2779
2781
|
file: file == null ? void 0 : file,
|
|
@@ -2805,7 +2807,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2805
2807
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2806
2808
|
target: outputOptions.target,
|
|
2807
2809
|
sanitizeFileName,
|
|
2808
|
-
preserveModules
|
|
2810
|
+
preserveModules,
|
|
2811
|
+
virtualDirname,
|
|
2812
|
+
legalComments
|
|
2809
2813
|
};
|
|
2810
2814
|
}
|
|
2811
2815
|
function bindingifyAddon(configAddon) {
|
|
@@ -2939,8 +2943,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2939
2943
|
get minify() {
|
|
2940
2944
|
return this.inner.minify;
|
|
2941
2945
|
}
|
|
2942
|
-
get
|
|
2943
|
-
return this.inner.
|
|
2946
|
+
get legalComments() {
|
|
2947
|
+
return this.inner.legalComments;
|
|
2944
2948
|
}
|
|
2945
2949
|
get polyfillRequire() {
|
|
2946
2950
|
return this.inner.polyfillRequire;
|
|
@@ -2951,6 +2955,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2951
2955
|
get preserveModules() {
|
|
2952
2956
|
return this.preserveModules;
|
|
2953
2957
|
}
|
|
2958
|
+
get virtualDirname() {
|
|
2959
|
+
return this.virtualDirname;
|
|
2960
|
+
}
|
|
2954
2961
|
};
|
|
2955
2962
|
function normalizeAddon(value) {
|
|
2956
2963
|
if (typeof value === "function") return value;
|
|
@@ -4212,7 +4219,7 @@ var RolldownBuild = class {
|
|
|
4212
4219
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4213
4220
|
}
|
|
4214
4221
|
get watchFiles() {
|
|
4215
|
-
return this.#bundler?.bundler.
|
|
4222
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4216
4223
|
}
|
|
4217
4224
|
};
|
|
4218
4225
|
|
|
@@ -3,7 +3,7 @@ import path from "pathe";
|
|
|
3
3
|
import colors from "ansis";
|
|
4
4
|
|
|
5
5
|
//#region package.json
|
|
6
|
-
var version = "1.0.0-beta.8-commit.
|
|
6
|
+
var version = "1.0.0-beta.8-commit.985af6d";
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -1846,8 +1846,9 @@ const OutputOptionsSchema = strictObject({
|
|
|
1846
1846
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
1847
1847
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
1848
1848
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
1849
|
+
manualChunks: optional(never("manualChunks is not supported. Please use advancedChunks instead")),
|
|
1849
1850
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
1850
|
-
|
|
1851
|
+
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
1851
1852
|
plugins: optional(custom(() => true)),
|
|
1852
1853
|
polyfillRequire: pipe(optional(boolean()), description("Disable require polyfill injection")),
|
|
1853
1854
|
target: pipe(optional(ESTargetSchema), description("The JavaScript target environment")),
|
|
@@ -1855,7 +1856,8 @@ const OutputOptionsSchema = strictObject({
|
|
|
1855
1856
|
if (input) return false;
|
|
1856
1857
|
return true;
|
|
1857
1858
|
}, () => `The 'true' value is not supported`)),
|
|
1858
|
-
preserveModules: optional(boolean())
|
|
1859
|
+
preserveModules: optional(boolean()),
|
|
1860
|
+
virtualDirname: optional(string())
|
|
1859
1861
|
});
|
|
1860
1862
|
const getAddonDescription = (placement, wrapper) => {
|
|
1861
1863
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -2767,7 +2769,7 @@ function transformChunkModules(modules) {
|
|
|
2767
2769
|
//#endregion
|
|
2768
2770
|
//#region src/utils/bindingify-output-options.ts
|
|
2769
2771
|
function bindingifyOutputOptions(outputOptions) {
|
|
2770
|
-
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;
|
|
2772
|
+
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;
|
|
2771
2773
|
return {
|
|
2772
2774
|
dir,
|
|
2773
2775
|
file: file == null ? void 0 : file,
|
|
@@ -2799,7 +2801,9 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2799
2801
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2800
2802
|
target: outputOptions.target,
|
|
2801
2803
|
sanitizeFileName,
|
|
2802
|
-
preserveModules
|
|
2804
|
+
preserveModules,
|
|
2805
|
+
virtualDirname,
|
|
2806
|
+
legalComments
|
|
2803
2807
|
};
|
|
2804
2808
|
}
|
|
2805
2809
|
function bindingifyAddon(configAddon) {
|
|
@@ -2933,8 +2937,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2933
2937
|
get minify() {
|
|
2934
2938
|
return this.inner.minify;
|
|
2935
2939
|
}
|
|
2936
|
-
get
|
|
2937
|
-
return this.inner.
|
|
2940
|
+
get legalComments() {
|
|
2941
|
+
return this.inner.legalComments;
|
|
2938
2942
|
}
|
|
2939
2943
|
get polyfillRequire() {
|
|
2940
2944
|
return this.inner.polyfillRequire;
|
|
@@ -2945,6 +2949,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2945
2949
|
get preserveModules() {
|
|
2946
2950
|
return this.preserveModules;
|
|
2947
2951
|
}
|
|
2952
|
+
get virtualDirname() {
|
|
2953
|
+
return this.virtualDirname;
|
|
2954
|
+
}
|
|
2948
2955
|
};
|
|
2949
2956
|
function normalizeAddon(value) {
|
|
2950
2957
|
if (typeof value === "function") return value;
|
|
@@ -4154,7 +4161,7 @@ var RolldownBuild = class {
|
|
|
4154
4161
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4155
4162
|
}
|
|
4156
4163
|
get watchFiles() {
|
|
4157
|
-
return this.#bundler?.bundler.
|
|
4164
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4158
4165
|
}
|
|
4159
4166
|
};
|
|
4160
4167
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
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
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|