@rolldown/browser 1.0.0-beta.8-commit.66f4623 → 1.0.0-beta.8-commit.985af6d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +4 -4
- package/dist/cli.mjs +4 -4
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +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-zt5s72Z7.d.mts → define-config.d-DJQShs9J.d.mts} +15 -5
- package/dist/shared/{define-config.d-Bkkf8Fak.d.cts → define-config.d-DTa18THN.d.cts} +15 -5
- package/dist/shared/{load-config-fBqyX9b3.mjs → load-config-B9YOk0i9.mjs} +1 -1
- package/dist/shared/{load-config-BeUD2pZG.cjs → load-config-ChRGHkfl.cjs} +1 -1
- package/dist/shared/{src-ULAQDVII.mjs → src-BT0kmViC.mjs} +21 -9
- package/dist/shared/{src-D1iw4mNX.cjs → src-OSsknIUY.cjs} +21 -9
- package/dist/{src-NnyoYQ2w.js → src-C6BK0RGi.js} +20 -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,13 +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
|
+
preserveModules?: boolean;
|
|
287
|
+
virtualDirname?: string;
|
|
286
288
|
}
|
|
287
289
|
|
|
288
290
|
//#endregion
|
|
@@ -317,7 +319,7 @@ declare class RolldownBuild {
|
|
|
317
319
|
[Symbol.asyncDispose](): Promise<void>;
|
|
318
320
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
319
321
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
320
|
-
get watchFiles(): string[]
|
|
322
|
+
get watchFiles(): Promise<string[]>;
|
|
321
323
|
}
|
|
322
324
|
|
|
323
325
|
//#endregion
|
|
@@ -417,16 +419,18 @@ interface NormalizedOutputOptions {
|
|
|
417
419
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
418
420
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
419
421
|
minify: false | BindingMinifyOptions;
|
|
420
|
-
|
|
422
|
+
legalComments: "none" | "inline";
|
|
421
423
|
polyfillRequire: boolean;
|
|
422
424
|
plugins: RolldownPlugin[];
|
|
425
|
+
preserveModules: boolean;
|
|
426
|
+
virtualDirname: string;
|
|
423
427
|
}
|
|
424
428
|
|
|
425
429
|
//#endregion
|
|
426
430
|
//#region ../pluginutils/dist/index.d.ts
|
|
427
431
|
type StringOrRegExp = string | RegExp;
|
|
428
432
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
429
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code |
|
|
433
|
+
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
430
434
|
type TopLevelFilterExpression = Include | Exclude$1;
|
|
431
435
|
declare class And {
|
|
432
436
|
kind: "and";
|
|
@@ -462,6 +466,12 @@ declare class Code {
|
|
|
462
466
|
pattern: StringOrRegExp;
|
|
463
467
|
constructor(expr: StringOrRegExp);
|
|
464
468
|
}
|
|
469
|
+
declare class Query {
|
|
470
|
+
kind: "query";
|
|
471
|
+
key: string;
|
|
472
|
+
pattern: StringOrRegExp | boolean;
|
|
473
|
+
constructor(key: string, pattern: StringOrRegExp | boolean);
|
|
474
|
+
}
|
|
465
475
|
declare class Include {
|
|
466
476
|
kind: "include";
|
|
467
477
|
expr: FilterExpression;
|
|
@@ -276,13 +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
|
+
preserveModules?: boolean;
|
|
287
|
+
virtualDirname?: string;
|
|
286
288
|
}
|
|
287
289
|
|
|
288
290
|
//#endregion
|
|
@@ -317,7 +319,7 @@ declare class RolldownBuild {
|
|
|
317
319
|
[Symbol.asyncDispose](): Promise<void>;
|
|
318
320
|
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutput | undefined>;
|
|
319
321
|
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutput | undefined>;
|
|
320
|
-
get watchFiles(): string[]
|
|
322
|
+
get watchFiles(): Promise<string[]>;
|
|
321
323
|
}
|
|
322
324
|
|
|
323
325
|
//#endregion
|
|
@@ -417,16 +419,18 @@ interface NormalizedOutputOptions {
|
|
|
417
419
|
sourcemapIgnoreList: SourcemapIgnoreListOption;
|
|
418
420
|
sourcemapPathTransform: SourcemapPathTransformOption | undefined;
|
|
419
421
|
minify: false | BindingMinifyOptions;
|
|
420
|
-
|
|
422
|
+
legalComments: "none" | "inline";
|
|
421
423
|
polyfillRequire: boolean;
|
|
422
424
|
plugins: RolldownPlugin[];
|
|
425
|
+
preserveModules: boolean;
|
|
426
|
+
virtualDirname: string;
|
|
423
427
|
}
|
|
424
428
|
|
|
425
429
|
//#endregion
|
|
426
430
|
//#region ../pluginutils/dist/index.d.ts
|
|
427
431
|
type StringOrRegExp = string | RegExp;
|
|
428
432
|
type PluginModuleType = "js" | "jsx" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | (string & {});
|
|
429
|
-
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code |
|
|
433
|
+
type FilterExpression = And | Or | Not | Id | ModuleType$1 | Code | Query;
|
|
430
434
|
type TopLevelFilterExpression = Include | Exclude$1;
|
|
431
435
|
declare class And {
|
|
432
436
|
kind: "and";
|
|
@@ -462,6 +466,12 @@ declare class Code {
|
|
|
462
466
|
pattern: StringOrRegExp;
|
|
463
467
|
constructor(expr: StringOrRegExp);
|
|
464
468
|
}
|
|
469
|
+
declare class Query {
|
|
470
|
+
kind: "query";
|
|
471
|
+
key: string;
|
|
472
|
+
pattern: StringOrRegExp | boolean;
|
|
473
|
+
constructor(key: string, pattern: StringOrRegExp | boolean);
|
|
474
|
+
}
|
|
465
475
|
declare class Include {
|
|
466
476
|
kind: "include";
|
|
467
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,15 +2078,18 @@ 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")),
|
|
2086
2087
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2087
2088
|
if (input) return false;
|
|
2088
2089
|
return true;
|
|
2089
|
-
}, () => `The 'true' value is not supported`))
|
|
2090
|
+
}, () => `The 'true' value is not supported`)),
|
|
2091
|
+
preserveModules: optional(boolean()),
|
|
2092
|
+
virtualDirname: optional(string())
|
|
2090
2093
|
});
|
|
2091
2094
|
getAddonDescription = (placement, wrapper) => {
|
|
2092
2095
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -4044,7 +4047,7 @@ var init_transform_rendered_chunk = __esm({ "src/utils/transform-rendered-chunk.
|
|
|
4044
4047
|
//#endregion
|
|
4045
4048
|
//#region src/utils/bindingify-output-options.ts
|
|
4046
4049
|
function bindingifyOutputOptions(outputOptions) {
|
|
4047
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName } = 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;
|
|
4048
4051
|
return {
|
|
4049
4052
|
dir,
|
|
4050
4053
|
file: file == null ? void 0 : file,
|
|
@@ -4075,7 +4078,10 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
4075
4078
|
advancedChunks: outputOptions.advancedChunks,
|
|
4076
4079
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
4077
4080
|
target: outputOptions.target,
|
|
4078
|
-
sanitizeFileName
|
|
4081
|
+
sanitizeFileName,
|
|
4082
|
+
preserveModules,
|
|
4083
|
+
virtualDirname,
|
|
4084
|
+
legalComments
|
|
4079
4085
|
};
|
|
4080
4086
|
}
|
|
4081
4087
|
function bindingifyAddon(configAddon) {
|
|
@@ -4221,8 +4227,8 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4221
4227
|
get minify() {
|
|
4222
4228
|
return this.inner.minify;
|
|
4223
4229
|
}
|
|
4224
|
-
get
|
|
4225
|
-
return this.inner.
|
|
4230
|
+
get legalComments() {
|
|
4231
|
+
return this.inner.legalComments;
|
|
4226
4232
|
}
|
|
4227
4233
|
get polyfillRequire() {
|
|
4228
4234
|
return this.inner.polyfillRequire;
|
|
@@ -4230,6 +4236,12 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
4230
4236
|
get plugins() {
|
|
4231
4237
|
return this.normalizedOutputPlugins;
|
|
4232
4238
|
}
|
|
4239
|
+
get preserveModules() {
|
|
4240
|
+
return this.preserveModules;
|
|
4241
|
+
}
|
|
4242
|
+
get virtualDirname() {
|
|
4243
|
+
return this.virtualDirname;
|
|
4244
|
+
}
|
|
4233
4245
|
};
|
|
4234
4246
|
} });
|
|
4235
4247
|
|
|
@@ -5568,7 +5580,7 @@ var init_rolldown_build = __esm({ "src/api/rolldown/rolldown-build.ts"() {
|
|
|
5568
5580
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
5569
5581
|
}
|
|
5570
5582
|
get watchFiles() {
|
|
5571
|
-
return this.#bundler?.bundler.
|
|
5583
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
5572
5584
|
}
|
|
5573
5585
|
};
|
|
5574
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,15 +1991,18 @@ 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")),
|
|
1999
2000
|
hoistTransitiveImports: optional(custom((input) => {
|
|
2000
2001
|
if (input) return false;
|
|
2001
2002
|
return true;
|
|
2002
|
-
}, () => `The 'true' value is not supported`))
|
|
2003
|
+
}, () => `The 'true' value is not supported`)),
|
|
2004
|
+
preserveModules: optional(boolean()),
|
|
2005
|
+
virtualDirname: optional(string())
|
|
2003
2006
|
});
|
|
2004
2007
|
const getAddonDescription = (placement, wrapper) => {
|
|
2005
2008
|
return `Code to insert the ${ansis.default.bold(placement)} of the bundled file (${ansis.default.bold(wrapper)} the wrapper function)`;
|
|
@@ -2078,7 +2081,7 @@ function getOutputCliKeys() {
|
|
|
2078
2081
|
return keyof(OutputCliOptionsSchema).options;
|
|
2079
2082
|
}
|
|
2080
2083
|
function getJsonSchema() {
|
|
2081
|
-
return toJsonSchema(CliOptionsSchema);
|
|
2084
|
+
return toJsonSchema(CliOptionsSchema, { errorMode: "ignore" });
|
|
2082
2085
|
}
|
|
2083
2086
|
|
|
2084
2087
|
//#endregion
|
|
@@ -2772,7 +2775,7 @@ function transformChunkModules(modules) {
|
|
|
2772
2775
|
//#endregion
|
|
2773
2776
|
//#region src/utils/bindingify-output-options.ts
|
|
2774
2777
|
function bindingifyOutputOptions(outputOptions) {
|
|
2775
|
-
const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName } = outputOptions;
|
|
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;
|
|
2776
2779
|
return {
|
|
2777
2780
|
dir,
|
|
2778
2781
|
file: file == null ? void 0 : file,
|
|
@@ -2803,7 +2806,10 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2803
2806
|
advancedChunks: outputOptions.advancedChunks,
|
|
2804
2807
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2805
2808
|
target: outputOptions.target,
|
|
2806
|
-
sanitizeFileName
|
|
2809
|
+
sanitizeFileName,
|
|
2810
|
+
preserveModules,
|
|
2811
|
+
virtualDirname,
|
|
2812
|
+
legalComments
|
|
2807
2813
|
};
|
|
2808
2814
|
}
|
|
2809
2815
|
function bindingifyAddon(configAddon) {
|
|
@@ -2937,8 +2943,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2937
2943
|
get minify() {
|
|
2938
2944
|
return this.inner.minify;
|
|
2939
2945
|
}
|
|
2940
|
-
get
|
|
2941
|
-
return this.inner.
|
|
2946
|
+
get legalComments() {
|
|
2947
|
+
return this.inner.legalComments;
|
|
2942
2948
|
}
|
|
2943
2949
|
get polyfillRequire() {
|
|
2944
2950
|
return this.inner.polyfillRequire;
|
|
@@ -2946,6 +2952,12 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2946
2952
|
get plugins() {
|
|
2947
2953
|
return this.normalizedOutputPlugins;
|
|
2948
2954
|
}
|
|
2955
|
+
get preserveModules() {
|
|
2956
|
+
return this.preserveModules;
|
|
2957
|
+
}
|
|
2958
|
+
get virtualDirname() {
|
|
2959
|
+
return this.virtualDirname;
|
|
2960
|
+
}
|
|
2949
2961
|
};
|
|
2950
2962
|
function normalizeAddon(value) {
|
|
2951
2963
|
if (typeof value === "function") return value;
|
|
@@ -4207,7 +4219,7 @@ var RolldownBuild = class {
|
|
|
4207
4219
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4208
4220
|
}
|
|
4209
4221
|
get watchFiles() {
|
|
4210
|
-
return this.#bundler?.bundler.
|
|
4222
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4211
4223
|
}
|
|
4212
4224
|
};
|
|
4213
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,15 +1846,18 @@ 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")),
|
|
1854
1855
|
hoistTransitiveImports: optional(custom((input) => {
|
|
1855
1856
|
if (input) return false;
|
|
1856
1857
|
return true;
|
|
1857
|
-
}, () => `The 'true' value is not supported`))
|
|
1858
|
+
}, () => `The 'true' value is not supported`)),
|
|
1859
|
+
preserveModules: optional(boolean()),
|
|
1860
|
+
virtualDirname: optional(string())
|
|
1858
1861
|
});
|
|
1859
1862
|
const getAddonDescription = (placement, wrapper) => {
|
|
1860
1863
|
return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
|
|
@@ -2766,7 +2769,7 @@ function transformChunkModules(modules) {
|
|
|
2766
2769
|
//#endregion
|
|
2767
2770
|
//#region src/utils/bindingify-output-options.ts
|
|
2768
2771
|
function bindingifyOutputOptions(outputOptions) {
|
|
2769
|
-
const { dir, format, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName } = 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;
|
|
2770
2773
|
return {
|
|
2771
2774
|
dir,
|
|
2772
2775
|
file: file == null ? void 0 : file,
|
|
@@ -2797,7 +2800,10 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
2797
2800
|
advancedChunks: outputOptions.advancedChunks,
|
|
2798
2801
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
2799
2802
|
target: outputOptions.target,
|
|
2800
|
-
sanitizeFileName
|
|
2803
|
+
sanitizeFileName,
|
|
2804
|
+
preserveModules,
|
|
2805
|
+
virtualDirname,
|
|
2806
|
+
legalComments
|
|
2801
2807
|
};
|
|
2802
2808
|
}
|
|
2803
2809
|
function bindingifyAddon(configAddon) {
|
|
@@ -2931,8 +2937,8 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2931
2937
|
get minify() {
|
|
2932
2938
|
return this.inner.minify;
|
|
2933
2939
|
}
|
|
2934
|
-
get
|
|
2935
|
-
return this.inner.
|
|
2940
|
+
get legalComments() {
|
|
2941
|
+
return this.inner.legalComments;
|
|
2936
2942
|
}
|
|
2937
2943
|
get polyfillRequire() {
|
|
2938
2944
|
return this.inner.polyfillRequire;
|
|
@@ -2940,6 +2946,12 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
2940
2946
|
get plugins() {
|
|
2941
2947
|
return this.normalizedOutputPlugins;
|
|
2942
2948
|
}
|
|
2949
|
+
get preserveModules() {
|
|
2950
|
+
return this.preserveModules;
|
|
2951
|
+
}
|
|
2952
|
+
get virtualDirname() {
|
|
2953
|
+
return this.virtualDirname;
|
|
2954
|
+
}
|
|
2943
2955
|
};
|
|
2944
2956
|
function normalizeAddon(value) {
|
|
2945
2957
|
if (typeof value === "function") return value;
|
|
@@ -4149,7 +4161,7 @@ var RolldownBuild = class {
|
|
|
4149
4161
|
return this.#bundler?.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4150
4162
|
}
|
|
4151
4163
|
get watchFiles() {
|
|
4152
|
-
return this.#bundler?.bundler.
|
|
4164
|
+
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
4153
4165
|
}
|
|
4154
4166
|
};
|
|
4155
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",
|