@rolldown/browser 1.0.0-beta.8-commit.2686eb1 → 1.0.0-beta.8-commit.165d0b1
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/browser.mjs +6 -6
- package/dist/cli.cjs +5 -3
- package/dist/cli.mjs +5 -3
- 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/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/{input-options.d-Ca-RPqnS.d.mts → input-options.d-BZRlmV0Y.d.mts} +2 -2
- package/dist/shared/{input-options.d-Bnh45DPJ.d.cts → input-options.d-IUq3nQ6k.d.cts} +2 -2
- package/dist/shared/{src-pOqVHS29.cjs → src-BYzJDqvj.cjs} +8 -8
- package/dist/shared/{src-Bobc3dQV.mjs → src-Bkj32aeI.mjs} +8 -8
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import colors from "ansis";
|
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
|
|
7
7
|
//#region package.json
|
|
8
|
-
var version = "1.0.0-beta.8-commit.
|
|
8
|
+
var version = "1.0.0-beta.8-commit.165d0b1";
|
|
9
9
|
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -656,10 +656,9 @@ const ChecksOptionsSchema = v.strictObject({
|
|
|
656
656
|
configurationFieldConflict: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting configuration field conflict"))
|
|
657
657
|
});
|
|
658
658
|
const MinifyOptionsSchema = v.strictObject({
|
|
659
|
-
mangle: v.boolean(),
|
|
660
|
-
compress: v.boolean(),
|
|
661
|
-
|
|
662
|
-
removeWhitespace: v.boolean()
|
|
659
|
+
mangle: v.optional(v.boolean()),
|
|
660
|
+
compress: v.optional(v.boolean()),
|
|
661
|
+
removeWhitespace: v.optional(v.boolean())
|
|
663
662
|
});
|
|
664
663
|
const ResolveOptionsSchema = v.strictObject({
|
|
665
664
|
alias: v.optional(v.record(v.string(), v.union([v.string(), v.array(v.string())]))),
|
|
@@ -842,8 +841,9 @@ const OutputOptionsSchema = v.strictObject({
|
|
|
842
841
|
inlineDynamicImports: v.pipe(v.optional(v.boolean()), v.description("Inline dynamic imports")),
|
|
843
842
|
advancedChunks: v.optional(AdvancedChunksSchema),
|
|
844
843
|
comments: v.pipe(v.optional(v.union([v.literal("none"), v.literal("preserve-legal")])), v.description("Control comments in the output")),
|
|
845
|
-
target: v.pipe(v.optional(v.enum(ESTarget)), v.description("The JavaScript target environment")),
|
|
846
844
|
plugins: v.optional(v.custom(() => true)),
|
|
845
|
+
polyfillRequire: v.pipe(v.optional(v.boolean()), v.description("Disable require polyfill injection")),
|
|
846
|
+
target: v.pipe(v.optional(v.enum(ESTarget)), v.description("The JavaScript target environment")),
|
|
847
847
|
hoistTransitiveImports: v.optional(v.custom((input) => {
|
|
848
848
|
if (input) return false;
|
|
849
849
|
return true;
|
package/dist/cli.cjs
CHANGED
|
@@ -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-BYzJDqvj.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-DAk8Z2V8.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const ansis = require_chunk.__toESM(require("ansis"));
|
|
@@ -1622,6 +1622,10 @@ var import_usingCtx = require_chunk.__toESM(require_usingCtx());
|
|
|
1622
1622
|
//#endregion
|
|
1623
1623
|
//#region src/cli/commands/bundle.ts
|
|
1624
1624
|
async function bundleWithConfig(configPath, cliOptions) {
|
|
1625
|
+
if (cliOptions.watch) {
|
|
1626
|
+
process.env.ROLLUP_WATCH = "true";
|
|
1627
|
+
process.env.ROLLDOWN_WATCH = "true";
|
|
1628
|
+
}
|
|
1625
1629
|
const config = await loadConfig(configPath);
|
|
1626
1630
|
if (!config) {
|
|
1627
1631
|
logger.error(`No configuration found at ${config}`);
|
|
@@ -1659,8 +1663,6 @@ async function bundleWithCliOptions(cliOptions) {
|
|
|
1659
1663
|
}
|
|
1660
1664
|
}
|
|
1661
1665
|
async function watchInner(config, cliOptions) {
|
|
1662
|
-
process.env.ROLLUP_WATCH = "true";
|
|
1663
|
-
process.env.ROLLDOWN_WATCH = "true";
|
|
1664
1666
|
let normalizedConfig = require_src.arraify(config).map((option) => {
|
|
1665
1667
|
return {
|
|
1666
1668
|
...option,
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { arraify, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_misc, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-Bkj32aeI.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-Cprsj_YY.mjs";
|
|
4
4
|
import path, { sep } from "node:path";
|
|
5
5
|
import colors from "ansis";
|
|
@@ -1627,6 +1627,10 @@ var import_usingCtx = __toESM(require_usingCtx());
|
|
|
1627
1627
|
//#endregion
|
|
1628
1628
|
//#region src/cli/commands/bundle.ts
|
|
1629
1629
|
async function bundleWithConfig(configPath, cliOptions) {
|
|
1630
|
+
if (cliOptions.watch) {
|
|
1631
|
+
process.env.ROLLUP_WATCH = "true";
|
|
1632
|
+
process.env.ROLLDOWN_WATCH = "true";
|
|
1633
|
+
}
|
|
1630
1634
|
const config = await loadConfig(configPath);
|
|
1631
1635
|
if (!config) {
|
|
1632
1636
|
logger.error(`No configuration found at ${config}`);
|
|
@@ -1664,8 +1668,6 @@ async function bundleWithCliOptions(cliOptions) {
|
|
|
1664
1668
|
}
|
|
1665
1669
|
}
|
|
1666
1670
|
async function watchInner(config, cliOptions) {
|
|
1667
|
-
process.env.ROLLUP_WATCH = "true";
|
|
1668
|
-
process.env.ROLLDOWN_WATCH = "true";
|
|
1669
1671
|
let normalizedConfig = arraify(config).map((option) => {
|
|
1670
1672
|
return {
|
|
1671
1673
|
...option,
|
|
@@ -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-BYzJDqvj.cjs');
|
|
4
4
|
require('./shared/parse-ast-index-DAk8Z2V8.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -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/input-options.d-
|
|
1
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reportPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "./shared/input-options.d-IUq3nQ6k.cjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult, 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/input-options.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/input-options.d-BZRlmV0Y.mjs";
|
|
2
2
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, TransformOptions, TransformResult, 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-Bkj32aeI.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-Cprsj_YY.mjs";
|
|
3
3
|
import { moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-
|
|
1
|
+
import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter } from "./shared/input-options.d-IUq3nQ6k.cjs";
|
|
2
2
|
|
|
3
3
|
export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch, withFilter$1 as withFilter } from "./shared/input-options.d-
|
|
1
|
+
import { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION$1 as VERSION, WarningHandlerWithDefault, WatchOptions, build$1 as build, defineConfig$1 as defineConfig, rolldown$1 as rolldown, watch$1 as watch, withFilter$1 as withFilter } from "./shared/input-options.d-BZRlmV0Y.mjs";
|
|
2
2
|
|
|
3
3
|
export { AsyncPluginHooks, BuildOptions, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GetModuleInfo, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, JsxOptions, LoadResult, LogLevel, LogOrStringHandler, LoggingFunction, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, 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, RollupError, RollupLog, SourceDescription, SourceMap, SourceMapInput, StringFilter, TransformPluginContext, TransformResult, VERSION, WarningHandlerWithDefault, WatchOptions, build, defineConfig, rolldown, watch, withFilter };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch, withFilter } from "./shared/src-Bkj32aeI.mjs";
|
|
2
2
|
import "./shared/parse-ast-index-Cprsj_YY.mjs";
|
|
3
3
|
|
|
4
4
|
init_src();
|
|
@@ -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-BYzJDqvj.cjs');
|
|
3
3
|
require('./shared/parse-ast-index-DAk8Z2V8.cjs');
|
|
4
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
5
5
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
@@ -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-Bkj32aeI.mjs";
|
|
3
3
|
import "./shared/parse-ast-index-Cprsj_YY.mjs";
|
|
4
4
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/log/logging.d.ts
|
|
@@ -616,7 +616,7 @@ declare class BuiltinPlugin {
|
|
|
616
616
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
617
617
|
}
|
|
618
618
|
declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
619
|
-
declare function dynamicImportVarsPlugin(): BuiltinPlugin;
|
|
619
|
+
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
620
620
|
declare function importGlobPlugin(config?: BindingGlobImportPluginConfig): BuiltinPlugin;
|
|
621
621
|
declare function reportPlugin(config?: BindingReportPluginConfig): BuiltinPlugin;
|
|
622
622
|
declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
1
|
+
import { BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingGlobImportPluginConfig, BindingHmrOutput, BindingHookResolveIdExtraArgs, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReportPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, PreRenderedChunk as PreRenderedChunk$1, TransformOptions } from "../rolldown-binding.wasi.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/log/logging.d.ts
|
|
@@ -616,7 +616,7 @@ declare class BuiltinPlugin {
|
|
|
616
616
|
constructor(name: BindingBuiltinPluginName, _options?: unknown);
|
|
617
617
|
}
|
|
618
618
|
declare function modulePreloadPolyfillPlugin(config?: BindingModulePreloadPolyfillPluginConfig): BuiltinPlugin;
|
|
619
|
-
declare function dynamicImportVarsPlugin(): BuiltinPlugin;
|
|
619
|
+
declare function dynamicImportVarsPlugin(config?: BindingDynamicImportVarsPluginConfig): BuiltinPlugin;
|
|
620
620
|
declare function importGlobPlugin(config?: BindingGlobImportPluginConfig): BuiltinPlugin;
|
|
621
621
|
declare function reportPlugin(config?: BindingReportPluginConfig): BuiltinPlugin;
|
|
622
622
|
declare function manifestPlugin(config?: BindingManifestPluginConfig): BuiltinPlugin;
|
|
@@ -10,7 +10,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
10
10
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
11
11
|
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "1.0.0-beta.8-commit.
|
|
13
|
+
var version = "1.0.0-beta.8-commit.165d0b1";
|
|
14
14
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
@@ -41,8 +41,8 @@ var BuiltinPlugin = class {
|
|
|
41
41
|
function modulePreloadPolyfillPlugin(config) {
|
|
42
42
|
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
43
43
|
}
|
|
44
|
-
function dynamicImportVarsPlugin() {
|
|
45
|
-
return new BuiltinPlugin("builtin:dynamic-import-vars");
|
|
44
|
+
function dynamicImportVarsPlugin(config) {
|
|
45
|
+
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
46
46
|
}
|
|
47
47
|
function importGlobPlugin(config) {
|
|
48
48
|
return new BuiltinPlugin("builtin:import-glob", config);
|
|
@@ -548,10 +548,9 @@ const ChecksOptionsSchema = valibot.strictObject({
|
|
|
548
548
|
configurationFieldConflict: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Whether to emit warning when detecting configuration field conflict"))
|
|
549
549
|
});
|
|
550
550
|
const MinifyOptionsSchema = valibot.strictObject({
|
|
551
|
-
mangle: valibot.boolean(),
|
|
552
|
-
compress: valibot.boolean(),
|
|
553
|
-
|
|
554
|
-
removeWhitespace: valibot.boolean()
|
|
551
|
+
mangle: valibot.optional(valibot.boolean()),
|
|
552
|
+
compress: valibot.optional(valibot.boolean()),
|
|
553
|
+
removeWhitespace: valibot.optional(valibot.boolean())
|
|
555
554
|
});
|
|
556
555
|
const ResolveOptionsSchema = valibot.strictObject({
|
|
557
556
|
alias: valibot.optional(valibot.record(valibot.string(), valibot.union([valibot.string(), valibot.array(valibot.string())]))),
|
|
@@ -734,8 +733,9 @@ const OutputOptionsSchema = valibot.strictObject({
|
|
|
734
733
|
inlineDynamicImports: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Inline dynamic imports")),
|
|
735
734
|
advancedChunks: valibot.optional(AdvancedChunksSchema),
|
|
736
735
|
comments: valibot.pipe(valibot.optional(valibot.union([valibot.literal("none"), valibot.literal("preserve-legal")])), valibot.description("Control comments in the output")),
|
|
737
|
-
target: valibot.pipe(valibot.optional(valibot.enum(ESTarget)), valibot.description("The JavaScript target environment")),
|
|
738
736
|
plugins: valibot.optional(valibot.custom(() => true)),
|
|
737
|
+
polyfillRequire: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Disable require polyfill injection")),
|
|
738
|
+
target: valibot.pipe(valibot.optional(valibot.enum(ESTarget)), valibot.description("The JavaScript target environment")),
|
|
739
739
|
hoistTransitiveImports: valibot.optional(valibot.custom((input) => {
|
|
740
740
|
if (input) return false;
|
|
741
741
|
return true;
|
|
@@ -9,7 +9,7 @@ import { availableParallelism } from "node:os";
|
|
|
9
9
|
import { Worker } from "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.165d0b1";
|
|
13
13
|
var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -35,8 +35,8 @@ var init_utils = __esm({ "src/builtin-plugin/utils.ts"() {} });
|
|
|
35
35
|
function modulePreloadPolyfillPlugin(config) {
|
|
36
36
|
return new BuiltinPlugin("builtin:module-preload-polyfill", config);
|
|
37
37
|
}
|
|
38
|
-
function dynamicImportVarsPlugin() {
|
|
39
|
-
return new BuiltinPlugin("builtin:dynamic-import-vars");
|
|
38
|
+
function dynamicImportVarsPlugin(config) {
|
|
39
|
+
return new BuiltinPlugin("builtin:dynamic-import-vars", config);
|
|
40
40
|
}
|
|
41
41
|
function importGlobPlugin(config) {
|
|
42
42
|
return new BuiltinPlugin("builtin:import-glob", config);
|
|
@@ -631,10 +631,9 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
631
631
|
configurationFieldConflict: v.pipe(v.optional(v.boolean()), v.description("Whether to emit warning when detecting configuration field conflict"))
|
|
632
632
|
});
|
|
633
633
|
MinifyOptionsSchema = v.strictObject({
|
|
634
|
-
mangle: v.boolean(),
|
|
635
|
-
compress: v.boolean(),
|
|
636
|
-
|
|
637
|
-
removeWhitespace: v.boolean()
|
|
634
|
+
mangle: v.optional(v.boolean()),
|
|
635
|
+
compress: v.optional(v.boolean()),
|
|
636
|
+
removeWhitespace: v.optional(v.boolean())
|
|
638
637
|
});
|
|
639
638
|
ResolveOptionsSchema = v.strictObject({
|
|
640
639
|
alias: v.optional(v.record(v.string(), v.union([v.string(), v.array(v.string())]))),
|
|
@@ -817,8 +816,9 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
817
816
|
inlineDynamicImports: v.pipe(v.optional(v.boolean()), v.description("Inline dynamic imports")),
|
|
818
817
|
advancedChunks: v.optional(AdvancedChunksSchema),
|
|
819
818
|
comments: v.pipe(v.optional(v.union([v.literal("none"), v.literal("preserve-legal")])), v.description("Control comments in the output")),
|
|
820
|
-
target: v.pipe(v.optional(v.enum(ESTarget)), v.description("The JavaScript target environment")),
|
|
821
819
|
plugins: v.optional(v.custom(() => true)),
|
|
820
|
+
polyfillRequire: v.pipe(v.optional(v.boolean()), v.description("Disable require polyfill injection")),
|
|
821
|
+
target: v.pipe(v.optional(v.enum(ESTarget)), v.description("The JavaScript target environment")),
|
|
822
822
|
hoistTransitiveImports: v.optional(v.custom((input) => {
|
|
823
823
|
if (input) return false;
|
|
824
824
|
return true;
|
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.165d0b1",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|