@rolldown/browser 1.0.0-beta.18 → 1.0.0-beta.19
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 +2 -2
- package/dist/cli.mjs +2 -2
- 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-DaQ-joKc.d.mts → define-config-DinD1Bta.d.mts} +100 -7
- package/dist/shared/{define-config-CXjwrGWr.d.cts → define-config-STK7IJOm.d.cts} +100 -7
- package/dist/shared/{load-config-CbF4BrKX.cjs → load-config-CC2eQgDy.cjs} +1 -1
- package/dist/shared/{load-config-BwSSRqdO.mjs → load-config-Cb7g06QH.mjs} +1 -1
- package/dist/shared/{src-BP3CtG4Q.cjs → src-B0_Q9W-Q.cjs} +10 -5
- package/dist/shared/{src-D1ozKBtx.mjs → src-jYrhBNtz.mjs} +10 -5
- package/dist/{src-CEdhd_Z1.js → src-CLm8PUu7.js} +10 -5
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-B0_Q9W-Q.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DQhRVBEm.cjs');
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
5
|
+
const require_load_config = require('./shared/load-config-CC2eQgDy.cjs');
|
|
6
6
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
7
7
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
8
8
|
const node_util = require_chunk.__toESM(require("node:util"));
|
package/dist/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
1
|
+
import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-jYrhBNtz.mjs";
|
|
2
2
|
import { arraify } from "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-BHw-MFh6.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-Cb7g06QH.mjs";
|
|
5
5
|
import path, { sep } from "node:path";
|
|
6
6
|
import process$1 from "node:process";
|
|
7
7
|
import { formatWithOptions, parseArgs } from "node:util";
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-B0_Q9W-Q.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-DQhRVBEm.cjs');
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
const require_load_config = require('./shared/load-config-CC2eQgDy.cjs');
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = require_src.version;
|
package/dist/config.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-D__94uwg.cjs";
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-STK7IJOm.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-DwMf_OTa.mjs";
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-DinD1Bta.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/load-config.d.ts
|
|
5
5
|
declare function loadConfig(configPath: string): Promise<ConfigExport>;
|
package/dist/config.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineConfig, version } from "./shared/src-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-jYrhBNtz.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-BHw-MFh6.mjs";
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
4
|
+
import { loadConfig } from "./shared/load-config-Cb7g06QH.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-CLm8PUu7.js";
|
|
2
2
|
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi-browser.js";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-B0_Q9W-Q.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DQhRVBEm.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-D__94uwg.cjs";
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-STK7IJOm.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-DwMf_OTa.mjs";
|
|
2
|
-
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DinD1Bta.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-jYrhBNtz.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-BHw-MFh6.mjs";
|
|
4
4
|
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./shared/binding-D__94uwg.cjs";
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
2
|
+
import { withFilter } from "./shared/define-config-STK7IJOm.cjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/filter-index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./shared/binding-DwMf_OTa.mjs";
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
2
|
+
import { withFilter } from "./shared/define-config-DinD1Bta.mjs";
|
|
3
3
|
import { and, code, exclude, id, include, moduleType, not, or, queries, query } from "@rolldown/pluginutils";
|
|
4
4
|
export { and, code, exclude, id, include, moduleType, not, or, queries, query, withFilter };
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PreRenderedChunk } from "./shared/binding-D__94uwg.cjs";
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-STK7IJOm.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PreRenderedChunk } from "./shared/binding-DwMf_OTa.mjs";
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-DinD1Bta.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-jYrhBNtz.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-BHw-MFh6.mjs";
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-B0_Q9W-Q.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DQhRVBEm.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
1
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-jYrhBNtz.mjs";
|
|
2
2
|
import "./shared/dist-BoWaIc-K.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-BHw-MFh6.mjs";
|
|
4
4
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-D__94uwg.cjs";
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-STK7IJOm.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-DwMf_OTa.mjs";
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-DinD1Bta.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
Binary file
|
|
@@ -170,6 +170,51 @@ interface OutputOptions {
|
|
|
170
170
|
externalLiveBindings?: boolean;
|
|
171
171
|
inlineDynamicImports?: boolean;
|
|
172
172
|
/**
|
|
173
|
+
* - Type: `((moduleId: string) => string | NullValue)`
|
|
174
|
+
* - Object form is not supported.
|
|
175
|
+
*
|
|
176
|
+
* :::warning
|
|
177
|
+
* - This option is deprecated. Please use `advancedChunks` instead.
|
|
178
|
+
* - If `manualChunks` and `advancedChunks` are both specified, `manualChunks` option will be ignored.
|
|
179
|
+
* :::
|
|
180
|
+
*
|
|
181
|
+
* You could use this option for migration purpose. Under the hood,
|
|
182
|
+
*
|
|
183
|
+
* ```js
|
|
184
|
+
* {
|
|
185
|
+
* manualChunks: (moduleId, meta) => {
|
|
186
|
+
* if (moduleId.includes('node_modules')) {
|
|
187
|
+
* return 'vendor';
|
|
188
|
+
* }
|
|
189
|
+
* return null;
|
|
190
|
+
* }
|
|
191
|
+
* }
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* will be transformed to
|
|
195
|
+
*
|
|
196
|
+
* ```js
|
|
197
|
+
* {
|
|
198
|
+
* advancedChunks: {
|
|
199
|
+
* groups: [
|
|
200
|
+
* {
|
|
201
|
+
* name(moduleId) {
|
|
202
|
+
* if (moduleId.includes('node_modules')) {
|
|
203
|
+
* return 'vendor';
|
|
204
|
+
* }
|
|
205
|
+
* return null;
|
|
206
|
+
* },
|
|
207
|
+
* },
|
|
208
|
+
* ],
|
|
209
|
+
* }
|
|
210
|
+
* }
|
|
211
|
+
*
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* @deprecated Please use `advancedChunks` instead.
|
|
215
|
+
*/
|
|
216
|
+
manualChunks?: (moduleId: string, meta: {}) => string | NullValue;
|
|
217
|
+
/**
|
|
173
218
|
* Allows you to do manual chunking. For deeper understanding, please refer to the in-depth [documentation](https://rolldown.rs/guide/in-depth/advanced-chunks).
|
|
174
219
|
*/
|
|
175
220
|
advancedChunks?: {
|
|
@@ -208,7 +253,7 @@ interface OutputOptions {
|
|
|
208
253
|
*/
|
|
209
254
|
groups?: {
|
|
210
255
|
/**
|
|
211
|
-
* - Type: `string`
|
|
256
|
+
* - Type: `string | ((moduleId: string) => string | NullValue)`
|
|
212
257
|
*
|
|
213
258
|
* Name of the group. It will be also used as the name of the chunk and replaced the `[name]` placeholder in the `chunkFileNames` option.
|
|
214
259
|
*
|
|
@@ -229,8 +274,37 @@ interface OutputOptions {
|
|
|
229
274
|
* });
|
|
230
275
|
* ```
|
|
231
276
|
* will create a chunk named `libs-[hash].js` in the end.
|
|
277
|
+
*
|
|
278
|
+
* It's ok to have the same name for different groups. Rolldown will deduplicate the chunk names if necessary.
|
|
279
|
+
*
|
|
280
|
+
* # Dynamic `name()`
|
|
281
|
+
*
|
|
282
|
+
* If `name` is a function, it will be called with the module id as the argument. The function should return a string or `null`. If it returns `null`, the module will be ignored by this group.
|
|
283
|
+
*
|
|
284
|
+
* Notice, each returned new name will be treated as a separate group.
|
|
285
|
+
*
|
|
286
|
+
* For example,
|
|
287
|
+
*
|
|
288
|
+
* ```js
|
|
289
|
+
* import { defineConfig } from 'rolldown';
|
|
290
|
+
*
|
|
291
|
+
* export default defineConfig({
|
|
292
|
+
* advancedChunks: {
|
|
293
|
+
* groups: [
|
|
294
|
+
* {
|
|
295
|
+
* name: (moduleId) => moduleId.includes('node_modules') ? 'libs' : 'app',
|
|
296
|
+
* minSize: 100 * 1024,
|
|
297
|
+
* },
|
|
298
|
+
* ],
|
|
299
|
+
* },
|
|
300
|
+
* });
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* :::warning
|
|
304
|
+
* Constraints like `minSize`, `maxSize`, etc. are applied separately for different names returned by the function.
|
|
305
|
+
* :::
|
|
232
306
|
*/
|
|
233
|
-
name: string;
|
|
307
|
+
name: string | ((moduleId: string) => string | NullValue);
|
|
234
308
|
/**
|
|
235
309
|
* - Type: `string | RegExp | ((id: string) => boolean | undefined | void);`
|
|
236
310
|
*
|
|
@@ -240,6 +314,12 @@ interface OutputOptions {
|
|
|
240
314
|
* - If `test` is a regular expression, the module whose id matches the regular expression will be captured.
|
|
241
315
|
* - If `test` is a function, modules for which `test(id)` returns `true` will be captured.
|
|
242
316
|
* - If `test` is empty, any module will be considered as matched.
|
|
317
|
+
*
|
|
318
|
+
* :::warning
|
|
319
|
+
* When using regular expression, it's recommended to use `[\\/]` to match the path separator instead of `/` to avoid potential issues on Windows.
|
|
320
|
+
* - ✅ Recommended: `/node_modules[\\/]react/`
|
|
321
|
+
* - ❌ Not recommended: `/node_modules/react/`
|
|
322
|
+
* :::
|
|
243
323
|
*/
|
|
244
324
|
test?: StringOrRegExp | ((id: string) => boolean | undefined | void);
|
|
245
325
|
/**
|
|
@@ -260,7 +340,7 @@ interface OutputOptions {
|
|
|
260
340
|
* groups: [
|
|
261
341
|
* {
|
|
262
342
|
* name: 'react',
|
|
263
|
-
* test: /node_modules
|
|
343
|
+
* test: /node_modules[\\/]react/,
|
|
264
344
|
* priority: 1,
|
|
265
345
|
* },
|
|
266
346
|
* {
|
|
@@ -279,7 +359,7 @@ interface OutputOptions {
|
|
|
279
359
|
* - Type: `number`
|
|
280
360
|
* - Default: `0`
|
|
281
361
|
*
|
|
282
|
-
* Minimum size of the desired chunk. If the accumulated size of the captured modules by this group is smaller than this value, it will be ignored. Modules in this group will fall back to the `automatic chunking` if they are not captured by any other group.
|
|
362
|
+
* Minimum size in bytes of the desired chunk. If the accumulated size of the captured modules by this group is smaller than this value, it will be ignored. Modules in this group will fall back to the `automatic chunking` if they are not captured by any other group.
|
|
283
363
|
*/
|
|
284
364
|
minSize?: number;
|
|
285
365
|
/**
|
|
@@ -293,21 +373,21 @@ interface OutputOptions {
|
|
|
293
373
|
* - Type: `number`
|
|
294
374
|
* - Default: `Infinity`
|
|
295
375
|
*
|
|
296
|
-
* If the accumulated size of the captured modules by this group is larger than this value, this group will be split into multiple groups that each has size close to this value.
|
|
376
|
+
* If the accumulated size in bytes of the captured modules by this group is larger than this value, this group will be split into multiple groups that each has size close to this value.
|
|
297
377
|
*/
|
|
298
378
|
maxSize?: number;
|
|
299
379
|
/**
|
|
300
380
|
* - Type: `number`
|
|
301
381
|
* - Default: `Infinity`
|
|
302
382
|
*
|
|
303
|
-
* Controls a module could only be captured if its size is smaller or equal than this value.
|
|
383
|
+
* Controls a module could only be captured if its size in bytes is smaller or equal than this value.
|
|
304
384
|
*/
|
|
305
385
|
maxModuleSize?: number;
|
|
306
386
|
/**
|
|
307
387
|
* - Type: `number`
|
|
308
388
|
* - Default: `0`
|
|
309
389
|
*
|
|
310
|
-
* Controls a module could only be captured if its size is larger or equal than this value.
|
|
390
|
+
* Controls a module could only be captured if its size in bytes is larger or equal than this value.
|
|
311
391
|
*/
|
|
312
392
|
minModuleSize?: number;
|
|
313
393
|
}[];
|
|
@@ -980,6 +1060,19 @@ interface InputOptions {
|
|
|
980
1060
|
viteMode?: boolean;
|
|
981
1061
|
resolveNewUrlToAsset?: boolean;
|
|
982
1062
|
hmr?: HmrOptions;
|
|
1063
|
+
/**
|
|
1064
|
+
* Attach debug information to the output bundle.
|
|
1065
|
+
*
|
|
1066
|
+
* - Type: `'none' | 'simple' | 'full'`
|
|
1067
|
+
* - Default: `'simple'`
|
|
1068
|
+
*
|
|
1069
|
+
* - `none`: No debug information is attached.
|
|
1070
|
+
* - `simple`: Attach comments indicating which files the bundled code comes from. These comments could be removed by the minifier.
|
|
1071
|
+
* - `full`: Attach detailed debug information to the output bundle. These comments are using legal comment syntax, so they won't be removed by the minifier.
|
|
1072
|
+
*
|
|
1073
|
+
* > [!WARNING]
|
|
1074
|
+
* > You shouldn't use `full` in the production build.
|
|
1075
|
+
*/
|
|
983
1076
|
attachDebugInfo?: AttachDebugOptions;
|
|
984
1077
|
};
|
|
985
1078
|
/**
|
|
@@ -170,6 +170,51 @@ interface OutputOptions {
|
|
|
170
170
|
externalLiveBindings?: boolean;
|
|
171
171
|
inlineDynamicImports?: boolean;
|
|
172
172
|
/**
|
|
173
|
+
* - Type: `((moduleId: string) => string | NullValue)`
|
|
174
|
+
* - Object form is not supported.
|
|
175
|
+
*
|
|
176
|
+
* :::warning
|
|
177
|
+
* - This option is deprecated. Please use `advancedChunks` instead.
|
|
178
|
+
* - If `manualChunks` and `advancedChunks` are both specified, `manualChunks` option will be ignored.
|
|
179
|
+
* :::
|
|
180
|
+
*
|
|
181
|
+
* You could use this option for migration purpose. Under the hood,
|
|
182
|
+
*
|
|
183
|
+
* ```js
|
|
184
|
+
* {
|
|
185
|
+
* manualChunks: (moduleId, meta) => {
|
|
186
|
+
* if (moduleId.includes('node_modules')) {
|
|
187
|
+
* return 'vendor';
|
|
188
|
+
* }
|
|
189
|
+
* return null;
|
|
190
|
+
* }
|
|
191
|
+
* }
|
|
192
|
+
* ```
|
|
193
|
+
*
|
|
194
|
+
* will be transformed to
|
|
195
|
+
*
|
|
196
|
+
* ```js
|
|
197
|
+
* {
|
|
198
|
+
* advancedChunks: {
|
|
199
|
+
* groups: [
|
|
200
|
+
* {
|
|
201
|
+
* name(moduleId) {
|
|
202
|
+
* if (moduleId.includes('node_modules')) {
|
|
203
|
+
* return 'vendor';
|
|
204
|
+
* }
|
|
205
|
+
* return null;
|
|
206
|
+
* },
|
|
207
|
+
* },
|
|
208
|
+
* ],
|
|
209
|
+
* }
|
|
210
|
+
* }
|
|
211
|
+
*
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* @deprecated Please use `advancedChunks` instead.
|
|
215
|
+
*/
|
|
216
|
+
manualChunks?: (moduleId: string, meta: {}) => string | NullValue;
|
|
217
|
+
/**
|
|
173
218
|
* Allows you to do manual chunking. For deeper understanding, please refer to the in-depth [documentation](https://rolldown.rs/guide/in-depth/advanced-chunks).
|
|
174
219
|
*/
|
|
175
220
|
advancedChunks?: {
|
|
@@ -208,7 +253,7 @@ interface OutputOptions {
|
|
|
208
253
|
*/
|
|
209
254
|
groups?: {
|
|
210
255
|
/**
|
|
211
|
-
* - Type: `string`
|
|
256
|
+
* - Type: `string | ((moduleId: string) => string | NullValue)`
|
|
212
257
|
*
|
|
213
258
|
* Name of the group. It will be also used as the name of the chunk and replaced the `[name]` placeholder in the `chunkFileNames` option.
|
|
214
259
|
*
|
|
@@ -229,8 +274,37 @@ interface OutputOptions {
|
|
|
229
274
|
* });
|
|
230
275
|
* ```
|
|
231
276
|
* will create a chunk named `libs-[hash].js` in the end.
|
|
277
|
+
*
|
|
278
|
+
* It's ok to have the same name for different groups. Rolldown will deduplicate the chunk names if necessary.
|
|
279
|
+
*
|
|
280
|
+
* # Dynamic `name()`
|
|
281
|
+
*
|
|
282
|
+
* If `name` is a function, it will be called with the module id as the argument. The function should return a string or `null`. If it returns `null`, the module will be ignored by this group.
|
|
283
|
+
*
|
|
284
|
+
* Notice, each returned new name will be treated as a separate group.
|
|
285
|
+
*
|
|
286
|
+
* For example,
|
|
287
|
+
*
|
|
288
|
+
* ```js
|
|
289
|
+
* import { defineConfig } from 'rolldown';
|
|
290
|
+
*
|
|
291
|
+
* export default defineConfig({
|
|
292
|
+
* advancedChunks: {
|
|
293
|
+
* groups: [
|
|
294
|
+
* {
|
|
295
|
+
* name: (moduleId) => moduleId.includes('node_modules') ? 'libs' : 'app',
|
|
296
|
+
* minSize: 100 * 1024,
|
|
297
|
+
* },
|
|
298
|
+
* ],
|
|
299
|
+
* },
|
|
300
|
+
* });
|
|
301
|
+
* ```
|
|
302
|
+
*
|
|
303
|
+
* :::warning
|
|
304
|
+
* Constraints like `minSize`, `maxSize`, etc. are applied separately for different names returned by the function.
|
|
305
|
+
* :::
|
|
232
306
|
*/
|
|
233
|
-
name: string;
|
|
307
|
+
name: string | ((moduleId: string) => string | NullValue);
|
|
234
308
|
/**
|
|
235
309
|
* - Type: `string | RegExp | ((id: string) => boolean | undefined | void);`
|
|
236
310
|
*
|
|
@@ -240,6 +314,12 @@ interface OutputOptions {
|
|
|
240
314
|
* - If `test` is a regular expression, the module whose id matches the regular expression will be captured.
|
|
241
315
|
* - If `test` is a function, modules for which `test(id)` returns `true` will be captured.
|
|
242
316
|
* - If `test` is empty, any module will be considered as matched.
|
|
317
|
+
*
|
|
318
|
+
* :::warning
|
|
319
|
+
* When using regular expression, it's recommended to use `[\\/]` to match the path separator instead of `/` to avoid potential issues on Windows.
|
|
320
|
+
* - ✅ Recommended: `/node_modules[\\/]react/`
|
|
321
|
+
* - ❌ Not recommended: `/node_modules/react/`
|
|
322
|
+
* :::
|
|
243
323
|
*/
|
|
244
324
|
test?: StringOrRegExp | ((id: string) => boolean | undefined | void);
|
|
245
325
|
/**
|
|
@@ -260,7 +340,7 @@ interface OutputOptions {
|
|
|
260
340
|
* groups: [
|
|
261
341
|
* {
|
|
262
342
|
* name: 'react',
|
|
263
|
-
* test: /node_modules
|
|
343
|
+
* test: /node_modules[\\/]react/,
|
|
264
344
|
* priority: 1,
|
|
265
345
|
* },
|
|
266
346
|
* {
|
|
@@ -279,7 +359,7 @@ interface OutputOptions {
|
|
|
279
359
|
* - Type: `number`
|
|
280
360
|
* - Default: `0`
|
|
281
361
|
*
|
|
282
|
-
* Minimum size of the desired chunk. If the accumulated size of the captured modules by this group is smaller than this value, it will be ignored. Modules in this group will fall back to the `automatic chunking` if they are not captured by any other group.
|
|
362
|
+
* Minimum size in bytes of the desired chunk. If the accumulated size of the captured modules by this group is smaller than this value, it will be ignored. Modules in this group will fall back to the `automatic chunking` if they are not captured by any other group.
|
|
283
363
|
*/
|
|
284
364
|
minSize?: number;
|
|
285
365
|
/**
|
|
@@ -293,21 +373,21 @@ interface OutputOptions {
|
|
|
293
373
|
* - Type: `number`
|
|
294
374
|
* - Default: `Infinity`
|
|
295
375
|
*
|
|
296
|
-
* If the accumulated size of the captured modules by this group is larger than this value, this group will be split into multiple groups that each has size close to this value.
|
|
376
|
+
* If the accumulated size in bytes of the captured modules by this group is larger than this value, this group will be split into multiple groups that each has size close to this value.
|
|
297
377
|
*/
|
|
298
378
|
maxSize?: number;
|
|
299
379
|
/**
|
|
300
380
|
* - Type: `number`
|
|
301
381
|
* - Default: `Infinity`
|
|
302
382
|
*
|
|
303
|
-
* Controls a module could only be captured if its size is smaller or equal than this value.
|
|
383
|
+
* Controls a module could only be captured if its size in bytes is smaller or equal than this value.
|
|
304
384
|
*/
|
|
305
385
|
maxModuleSize?: number;
|
|
306
386
|
/**
|
|
307
387
|
* - Type: `number`
|
|
308
388
|
* - Default: `0`
|
|
309
389
|
*
|
|
310
|
-
* Controls a module could only be captured if its size is larger or equal than this value.
|
|
390
|
+
* Controls a module could only be captured if its size in bytes is larger or equal than this value.
|
|
311
391
|
*/
|
|
312
392
|
minModuleSize?: number;
|
|
313
393
|
}[];
|
|
@@ -980,6 +1060,19 @@ interface InputOptions {
|
|
|
980
1060
|
viteMode?: boolean;
|
|
981
1061
|
resolveNewUrlToAsset?: boolean;
|
|
982
1062
|
hmr?: HmrOptions;
|
|
1063
|
+
/**
|
|
1064
|
+
* Attach debug information to the output bundle.
|
|
1065
|
+
*
|
|
1066
|
+
* - Type: `'none' | 'simple' | 'full'`
|
|
1067
|
+
* - Default: `'simple'`
|
|
1068
|
+
*
|
|
1069
|
+
* - `none`: No debug information is attached.
|
|
1070
|
+
* - `simple`: Attach comments indicating which files the bundled code comes from. These comments could be removed by the minifier.
|
|
1071
|
+
* - `full`: Attach detailed debug information to the output bundle. These comments are using legal comment syntax, so they won't be removed by the minifier.
|
|
1072
|
+
*
|
|
1073
|
+
* > [!WARNING]
|
|
1074
|
+
* > You shouldn't use `full` in the production build.
|
|
1075
|
+
*/
|
|
983
1076
|
attachDebugInfo?: AttachDebugOptions;
|
|
984
1077
|
};
|
|
985
1078
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-B0_Q9W-Q.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
@@ -8,7 +8,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
8
8
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.
|
|
11
|
+
var version = "1.0.0-beta.19";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -2213,7 +2213,7 @@ const AdvancedChunksSchema = strictObject({
|
|
|
2213
2213
|
maxModuleSize: optional(number()),
|
|
2214
2214
|
minShareCount: optional(number()),
|
|
2215
2215
|
groups: optional(array(strictObject({
|
|
2216
|
-
name: string(),
|
|
2216
|
+
name: union([string(), pipe(function_(), args(tuple([string()])), returns(nullish(string())))]),
|
|
2217
2217
|
test: optional(union([
|
|
2218
2218
|
string(),
|
|
2219
2219
|
instance(RegExp),
|
|
@@ -2271,7 +2271,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2271
2271
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2272
2272
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2273
2273
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2274
|
-
manualChunks: optional(
|
|
2274
|
+
manualChunks: optional(pipe(function_(), args(tuple([string(), object({})])), returns(union([string(), nullish(string())])))),
|
|
2275
2275
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
2276
2276
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2277
2277
|
plugins: optional(custom(() => true)),
|
|
@@ -3070,7 +3070,12 @@ function transformChunkModules(modules) {
|
|
|
3070
3070
|
//#endregion
|
|
3071
3071
|
//#region src/utils/bindingify-output-options.ts
|
|
3072
3072
|
function bindingifyOutputOptions(outputOptions) {
|
|
3073
|
-
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, preserveModulesRoot } = outputOptions;
|
|
3073
|
+
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, preserveModulesRoot, manualChunks } = outputOptions;
|
|
3074
|
+
let { advancedChunks } = outputOptions;
|
|
3075
|
+
if (manualChunks != null && advancedChunks != null) console.warn("`manualChunks` option is ignored due to `advancedChunks` option is specified.");
|
|
3076
|
+
else if (manualChunks != null) advancedChunks = { groups: [{ name(id$1) {
|
|
3077
|
+
return manualChunks(id$1, {});
|
|
3078
|
+
} }] };
|
|
3074
3079
|
return {
|
|
3075
3080
|
dir,
|
|
3076
3081
|
file: file == null ? void 0 : file,
|
|
@@ -3098,7 +3103,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3098
3103
|
minify: outputOptions.minify,
|
|
3099
3104
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
3100
3105
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
3101
|
-
advancedChunks
|
|
3106
|
+
advancedChunks,
|
|
3102
3107
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
3103
3108
|
sanitizeFileName,
|
|
3104
3109
|
preserveModules,
|
|
@@ -33,7 +33,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
|
|
34
34
|
//#endregion
|
|
35
35
|
//#region package.json
|
|
36
|
-
var version = "1.0.0-beta.
|
|
36
|
+
var version = "1.0.0-beta.19";
|
|
37
37
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
@@ -2238,7 +2238,7 @@ const AdvancedChunksSchema = strictObject({
|
|
|
2238
2238
|
maxModuleSize: optional(number()),
|
|
2239
2239
|
minShareCount: optional(number()),
|
|
2240
2240
|
groups: optional(array(strictObject({
|
|
2241
|
-
name: string(),
|
|
2241
|
+
name: union([string(), pipe(function_(), args(tuple([string()])), returns(nullish(string())))]),
|
|
2242
2242
|
test: optional(union([
|
|
2243
2243
|
string(),
|
|
2244
2244
|
instance(RegExp),
|
|
@@ -2296,7 +2296,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2296
2296
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2297
2297
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2298
2298
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2299
|
-
manualChunks: optional(
|
|
2299
|
+
manualChunks: optional(pipe(function_(), args(tuple([string(), object({})])), returns(union([string(), nullish(string())])))),
|
|
2300
2300
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
2301
2301
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2302
2302
|
plugins: optional(custom(() => true)),
|
|
@@ -3095,7 +3095,12 @@ function transformChunkModules(modules) {
|
|
|
3095
3095
|
//#endregion
|
|
3096
3096
|
//#region src/utils/bindingify-output-options.ts
|
|
3097
3097
|
function bindingifyOutputOptions(outputOptions) {
|
|
3098
|
-
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, preserveModulesRoot } = outputOptions;
|
|
3098
|
+
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, preserveModulesRoot, manualChunks } = outputOptions;
|
|
3099
|
+
let { advancedChunks } = outputOptions;
|
|
3100
|
+
if (manualChunks != null && advancedChunks != null) console.warn("`manualChunks` option is ignored due to `advancedChunks` option is specified.");
|
|
3101
|
+
else if (manualChunks != null) advancedChunks = { groups: [{ name(id$1) {
|
|
3102
|
+
return manualChunks(id$1, {});
|
|
3103
|
+
} }] };
|
|
3099
3104
|
return {
|
|
3100
3105
|
dir,
|
|
3101
3106
|
file: file == null ? void 0 : file,
|
|
@@ -3123,7 +3128,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3123
3128
|
minify: outputOptions.minify,
|
|
3124
3129
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
3125
3130
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
3126
|
-
advancedChunks
|
|
3131
|
+
advancedChunks,
|
|
3127
3132
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
3128
3133
|
sanitizeFileName,
|
|
3129
3134
|
preserveModules,
|
|
@@ -27,7 +27,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
|
|
28
28
|
//#endregion
|
|
29
29
|
//#region package.json
|
|
30
|
-
var version = "1.0.0-beta.
|
|
30
|
+
var version = "1.0.0-beta.19";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -2424,7 +2424,7 @@ const AdvancedChunksSchema = strictObject({
|
|
|
2424
2424
|
maxModuleSize: optional(number()),
|
|
2425
2425
|
minShareCount: optional(number()),
|
|
2426
2426
|
groups: optional(array(strictObject({
|
|
2427
|
-
name: string(),
|
|
2427
|
+
name: union([string(), pipe(function_(), args(tuple([string()])), returns(nullish(string())))]),
|
|
2428
2428
|
test: optional(union([
|
|
2429
2429
|
string(),
|
|
2430
2430
|
instance(RegExp),
|
|
@@ -2482,7 +2482,7 @@ const OutputOptionsSchema = strictObject({
|
|
|
2482
2482
|
globals: pipe(optional(union([record(string(), string()), GlobalsFunctionSchema])), description("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")),
|
|
2483
2483
|
externalLiveBindings: pipe(optional(boolean()), description("external live bindings")),
|
|
2484
2484
|
inlineDynamicImports: pipe(optional(boolean()), description("Inline dynamic imports")),
|
|
2485
|
-
manualChunks: optional(
|
|
2485
|
+
manualChunks: optional(pipe(function_(), args(tuple([string(), object({})])), returns(union([string(), nullish(string())])))),
|
|
2486
2486
|
advancedChunks: optional(AdvancedChunksSchema),
|
|
2487
2487
|
legalComments: pipe(optional(union([literal("none"), literal("inline")])), description("Control comments in the output")),
|
|
2488
2488
|
plugins: optional(custom(() => true)),
|
|
@@ -3420,7 +3420,12 @@ function transformChunkModules(modules) {
|
|
|
3420
3420
|
//#endregion
|
|
3421
3421
|
//#region src/utils/bindingify-output-options.ts
|
|
3422
3422
|
function bindingifyOutputOptions(outputOptions) {
|
|
3423
|
-
const { dir, format: format$1, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot } = outputOptions;
|
|
3423
|
+
const { dir, format: format$1, exports, hashCharacters, sourcemap, sourcemapDebugIds, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName, preserveModules, virtualDirname, legalComments, preserveModulesRoot, manualChunks } = outputOptions;
|
|
3424
|
+
let { advancedChunks } = outputOptions;
|
|
3425
|
+
if (manualChunks != null && advancedChunks != null) console.warn("`manualChunks` option is ignored due to `advancedChunks` option is specified.");
|
|
3426
|
+
else if (manualChunks != null) advancedChunks = { groups: [{ name(id$1) {
|
|
3427
|
+
return manualChunks(id$1, {});
|
|
3428
|
+
} }] };
|
|
3424
3429
|
return {
|
|
3425
3430
|
dir,
|
|
3426
3431
|
file: file == null ? void 0 : file,
|
|
@@ -3448,7 +3453,7 @@ function bindingifyOutputOptions(outputOptions) {
|
|
|
3448
3453
|
minify: outputOptions.minify,
|
|
3449
3454
|
externalLiveBindings: outputOptions.externalLiveBindings,
|
|
3450
3455
|
inlineDynamicImports: outputOptions.inlineDynamicImports,
|
|
3451
|
-
advancedChunks
|
|
3456
|
+
advancedChunks,
|
|
3452
3457
|
polyfillRequire: outputOptions.polyfillRequire,
|
|
3453
3458
|
sanitizeFileName,
|
|
3454
3459
|
preserveModules,
|
package/package.json
CHANGED