@rolldown/browser 1.0.0-beta.28-commit.cd50e5f → 1.0.0-beta.28-commit.7ef342d
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 +5 -5
- package/dist/cli.mjs +5 -5
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config.mjs +3 -3
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +2 -2
- package/dist/experimental-index.d.cts +1 -1
- package/dist/experimental-index.d.mts +1 -1
- package/dist/experimental-index.mjs +2 -2
- 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 +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/parallel-plugin-worker.cjs +2 -2
- package/dist/parallel-plugin-worker.mjs +2 -2
- package/dist/parallel-plugin.d.cts +1 -1
- package/dist/parallel-plugin.d.mts +1 -1
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{define-config-5S3FYqLV.d.mts → define-config-BzINvTeZ.d.mts} +52 -1
- package/dist/shared/{define-config-QTGzJj6S.d.cts → define-config-CbNA0bsF.d.cts} +52 -1
- package/dist/shared/{load-config-2Tr1ILXk.mjs → load-config-DZCe6FOr.mjs} +1 -1
- package/dist/shared/{load-config-1OTIV8uJ.cjs → load-config-DnNK8C_v.cjs} +1 -1
- package/dist/shared/{parse-ast-index-DjKK9JzO.cjs → parse-ast-index-CLjgl4c8.cjs} +1 -1
- package/dist/shared/{parse-ast-index-B8XFyU6n.mjs → parse-ast-index-rwZvDBjW.mjs} +1 -1
- package/dist/shared/{src--UynGCiX.cjs → src-BjHlVXX7.cjs} +12 -9
- package/dist/shared/{src-DZKXzOWR.mjs → src-Ct_wO9XG.mjs} +12 -9
- package/dist/{src-BVRBhIDO.js → src-B3KlxztH.js} +12 -9
- package/package.json +3 -3
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-BjHlVXX7.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BVAp8sOm.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
require('./shared/parse-ast-index-CLjgl4c8.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-DnNK8C_v.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"));
|
|
@@ -1423,8 +1423,8 @@ const process$2 = globalThis.process;
|
|
|
1423
1423
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1424
1424
|
|
|
1425
1425
|
//#endregion
|
|
1426
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.
|
|
1427
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.
|
|
1426
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1427
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1428
1428
|
function _usingCtx() {
|
|
1429
1429
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1430
1430
|
var n$2 = Error();
|
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-Ct_wO9XG.mjs";
|
|
2
2
|
import { arraify } from "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
3
|
+
import "./shared/parse-ast-index-rwZvDBjW.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DZCe6FOr.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";
|
|
@@ -1422,8 +1422,8 @@ const process$2 = globalThis.process;
|
|
|
1422
1422
|
const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
|
|
1423
1423
|
|
|
1424
1424
|
//#endregion
|
|
1425
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.
|
|
1426
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.
|
|
1425
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1426
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.3/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1427
1427
|
function _usingCtx() {
|
|
1428
1428
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1429
1429
|
var n$2 = Error();
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src
|
|
1
|
+
const require_src = require('./shared/src-BjHlVXX7.cjs');
|
|
2
2
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
3
|
+
require('./shared/parse-ast-index-CLjgl4c8.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-DnNK8C_v.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-D1lW862e.cjs";
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-CbNA0bsF.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-BO7hG1pA.mjs";
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-BzINvTeZ.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-Ct_wO9XG.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
3
|
+
import "./shared/parse-ast-index-rwZvDBjW.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DZCe6FOr.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
7
|
const VERSION = version;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-B3KlxztH.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,7 +1,7 @@
|
|
|
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-BjHlVXX7.cjs');
|
|
3
3
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-CLjgl4c8.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"));
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-D1lW862e.cjs";
|
|
2
|
-
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-CbNA0bsF.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-BO7hG1pA.mjs";
|
|
2
|
-
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BzINvTeZ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, 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, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-Ct_wO9XG.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-rwZvDBjW.mjs";
|
|
4
4
|
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
package/dist/filter-index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./shared/binding-D1lW862e.cjs";
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
2
|
+
import { withFilter } from "./shared/define-config-CbNA0bsF.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-BO7hG1pA.mjs";
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
2
|
+
import { withFilter } from "./shared/define-config-BzINvTeZ.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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src
|
|
1
|
+
const require_src = require('./shared/src-BjHlVXX7.cjs');
|
|
2
2
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
require('./shared/parse-ast-index-CLjgl4c8.cjs');
|
|
4
4
|
|
|
5
5
|
exports.VERSION = require_src.VERSION;
|
|
6
6
|
exports.build = require_src.build;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PreRenderedChunk } from "./shared/binding-D1lW862e.cjs";
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, 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, OptimizationOptions, 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, ChunkingContext, 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, OptimizationOptions, 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-CbNA0bsF.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, 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, OptimizationOptions, 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-BO7hG1pA.mjs";
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, 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, OptimizationOptions, 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, ChunkingContext, 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, OptimizationOptions, 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-BzINvTeZ.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ChunkingContext, 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, OptimizationOptions, 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,5 +1,5 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-Ct_wO9XG.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-rwZvDBjW.mjs";
|
|
4
4
|
|
|
5
5
|
export { VERSION, build, defineConfig, rolldown, watch };
|
|
@@ -1,7 +1,7 @@
|
|
|
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-BjHlVXX7.cjs');
|
|
3
3
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-CLjgl4c8.cjs');
|
|
5
5
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("./rolldown-binding.wasi.cjs"));
|
|
6
6
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PluginContextData, bindingifyPlugin } from "./shared/src-
|
|
1
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-Ct_wO9XG.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-rwZvDBjW.mjs";
|
|
4
4
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { parentPort, workerData } from "node:worker_threads";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./shared/binding-D1lW862e.cjs";
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-CbNA0bsF.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-BO7hG1pA.mjs";
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-BzINvTeZ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
package/dist/parse-ast-index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_parse_ast_index = require('./shared/parse-ast-index-
|
|
1
|
+
const require_parse_ast_index = require('./shared/parse-ast-index-CLjgl4c8.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst;
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
|
package/dist/parse-ast-index.mjs
CHANGED
|
Binary file
|
|
@@ -1080,12 +1080,63 @@ interface InputOptions {
|
|
|
1080
1080
|
* > You shouldn't use `full` in the production build.
|
|
1081
1081
|
*/
|
|
1082
1082
|
attachDebugInfo?: AttachDebugOptions;
|
|
1083
|
-
|
|
1083
|
+
/**
|
|
1084
|
+
* Enables automatic generation of a chunk import map asset during build.
|
|
1085
|
+
*
|
|
1086
|
+
* This map only includes chunks with hashed filenames, where keys are derived from the facade module
|
|
1087
|
+
* name or primary chunk name. It produces stable and unique hash-based filenames, effectively preventing
|
|
1088
|
+
* cascading cache invalidation caused by content hashes and maximizing browser cache reuse.
|
|
1089
|
+
*
|
|
1090
|
+
* The output defaults to `importmap.json` unless overridden via `fileName`. A base URL prefix
|
|
1091
|
+
* (default `"/"`) can be applied to all paths. The resulting JSON is a valid import map and can be
|
|
1092
|
+
* directly injected into HTML via `<script type="importmap">`.
|
|
1093
|
+
*
|
|
1094
|
+
* Example configuration snippet:
|
|
1095
|
+
*
|
|
1096
|
+
* ```js
|
|
1097
|
+
* {
|
|
1098
|
+
* experimental: {
|
|
1099
|
+
* chunkImportMap: {
|
|
1100
|
+
* baseUrl: '/',
|
|
1101
|
+
* fileName: 'importmap.json'
|
|
1102
|
+
* }
|
|
1103
|
+
* },
|
|
1104
|
+
* plugins: [
|
|
1105
|
+
* {
|
|
1106
|
+
* name: 'inject-import-map',
|
|
1107
|
+
* generateBundle(_, bundle) {
|
|
1108
|
+
* const chunkImportMap = bundle['importmap.json'];
|
|
1109
|
+
* if (chunkImportMap?.type === 'asset') {
|
|
1110
|
+
* const htmlPath = path.resolve('index.html');
|
|
1111
|
+
* let html = fs.readFileSync(htmlPath, 'utf-8');
|
|
1112
|
+
*
|
|
1113
|
+
* html = html.replace(
|
|
1114
|
+
* /<script\s+type="importmap"[^>]*>[\s\S]*?<\/script>/i,
|
|
1115
|
+
* `<script type="importmap">${chunkImportMap.source}<\/script>`
|
|
1116
|
+
* );
|
|
1117
|
+
*
|
|
1118
|
+
* fs.writeFileSync(htmlPath, html);
|
|
1119
|
+
* delete bundle['importmap.json'];
|
|
1120
|
+
* }
|
|
1121
|
+
* }
|
|
1122
|
+
* }
|
|
1123
|
+
* ]
|
|
1124
|
+
* }
|
|
1125
|
+
* ```
|
|
1126
|
+
*
|
|
1127
|
+
* > [!NOTE]
|
|
1128
|
+
* > If you want to learn more, you can check out the example here: [examples/chunk-import-map](https://github.com/rolldown/rolldown/tree/main/examples/chunk-import-map)
|
|
1129
|
+
*/
|
|
1130
|
+
chunkImportMap?: boolean | {
|
|
1131
|
+
baseUrl?: string;
|
|
1132
|
+
fileName?: string;
|
|
1133
|
+
};
|
|
1084
1134
|
onDemandWrapping?: boolean;
|
|
1085
1135
|
/**
|
|
1086
1136
|
* Required to be used with `watch` mode.
|
|
1087
1137
|
*/
|
|
1088
1138
|
incrementalBuild?: boolean;
|
|
1139
|
+
transformHiresSourcemap?: boolean | "boundary";
|
|
1089
1140
|
};
|
|
1090
1141
|
/**
|
|
1091
1142
|
* Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
|
|
@@ -1080,12 +1080,63 @@ interface InputOptions {
|
|
|
1080
1080
|
* > You shouldn't use `full` in the production build.
|
|
1081
1081
|
*/
|
|
1082
1082
|
attachDebugInfo?: AttachDebugOptions;
|
|
1083
|
-
|
|
1083
|
+
/**
|
|
1084
|
+
* Enables automatic generation of a chunk import map asset during build.
|
|
1085
|
+
*
|
|
1086
|
+
* This map only includes chunks with hashed filenames, where keys are derived from the facade module
|
|
1087
|
+
* name or primary chunk name. It produces stable and unique hash-based filenames, effectively preventing
|
|
1088
|
+
* cascading cache invalidation caused by content hashes and maximizing browser cache reuse.
|
|
1089
|
+
*
|
|
1090
|
+
* The output defaults to `importmap.json` unless overridden via `fileName`. A base URL prefix
|
|
1091
|
+
* (default `"/"`) can be applied to all paths. The resulting JSON is a valid import map and can be
|
|
1092
|
+
* directly injected into HTML via `<script type="importmap">`.
|
|
1093
|
+
*
|
|
1094
|
+
* Example configuration snippet:
|
|
1095
|
+
*
|
|
1096
|
+
* ```js
|
|
1097
|
+
* {
|
|
1098
|
+
* experimental: {
|
|
1099
|
+
* chunkImportMap: {
|
|
1100
|
+
* baseUrl: '/',
|
|
1101
|
+
* fileName: 'importmap.json'
|
|
1102
|
+
* }
|
|
1103
|
+
* },
|
|
1104
|
+
* plugins: [
|
|
1105
|
+
* {
|
|
1106
|
+
* name: 'inject-import-map',
|
|
1107
|
+
* generateBundle(_, bundle) {
|
|
1108
|
+
* const chunkImportMap = bundle['importmap.json'];
|
|
1109
|
+
* if (chunkImportMap?.type === 'asset') {
|
|
1110
|
+
* const htmlPath = path.resolve('index.html');
|
|
1111
|
+
* let html = fs.readFileSync(htmlPath, 'utf-8');
|
|
1112
|
+
*
|
|
1113
|
+
* html = html.replace(
|
|
1114
|
+
* /<script\s+type="importmap"[^>]*>[\s\S]*?<\/script>/i,
|
|
1115
|
+
* `<script type="importmap">${chunkImportMap.source}<\/script>`
|
|
1116
|
+
* );
|
|
1117
|
+
*
|
|
1118
|
+
* fs.writeFileSync(htmlPath, html);
|
|
1119
|
+
* delete bundle['importmap.json'];
|
|
1120
|
+
* }
|
|
1121
|
+
* }
|
|
1122
|
+
* }
|
|
1123
|
+
* ]
|
|
1124
|
+
* }
|
|
1125
|
+
* ```
|
|
1126
|
+
*
|
|
1127
|
+
* > [!NOTE]
|
|
1128
|
+
* > If you want to learn more, you can check out the example here: [examples/chunk-import-map](https://github.com/rolldown/rolldown/tree/main/examples/chunk-import-map)
|
|
1129
|
+
*/
|
|
1130
|
+
chunkImportMap?: boolean | {
|
|
1131
|
+
baseUrl?: string;
|
|
1132
|
+
fileName?: string;
|
|
1133
|
+
};
|
|
1084
1134
|
onDemandWrapping?: boolean;
|
|
1085
1135
|
/**
|
|
1086
1136
|
* Required to be used with `watch` mode.
|
|
1087
1137
|
*/
|
|
1088
1138
|
incrementalBuild?: boolean;
|
|
1139
|
+
transformHiresSourcemap?: boolean | "boundary";
|
|
1089
1140
|
};
|
|
1090
1141
|
/**
|
|
1091
1142
|
* Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
|
|
@@ -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-BjHlVXX7.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"));
|
|
@@ -187,7 +187,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
//#endregion
|
|
190
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.77.
|
|
190
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.77.3/node_modules/oxc-parser/wrap.mjs
|
|
191
191
|
function wrap$1(result) {
|
|
192
192
|
let program, module$1, comments, errors;
|
|
193
193
|
return {
|
|
@@ -186,7 +186,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
//#endregion
|
|
189
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.77.
|
|
189
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.77.3/node_modules/oxc-parser/wrap.mjs
|
|
190
190
|
function wrap$1(result) {
|
|
191
191
|
let program, module, comments, errors;
|
|
192
192
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
2
|
const require_dist = require('./dist-BVAp8sOm.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-CLjgl4c8.cjs');
|
|
4
4
|
const src_rolldown_binding_wasi_cjs = require_chunk.__toESM(require("../rolldown-binding.wasi.cjs"));
|
|
5
5
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
6
6
|
const node_url = require_chunk.__toESM(require("node:url"));
|
|
@@ -8,7 +8,7 @@ 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.28-commit.
|
|
11
|
+
var version = "1.0.0-beta.28-commit.7ef342d";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -1874,7 +1874,7 @@ var require_ansis = require_chunk.__commonJS({ "../../node_modules/.pnpm/ansis@4
|
|
|
1874
1874
|
let t$1, r$1, n$1, l$1, o$1;
|
|
1875
1875
|
return 8 > e$1 ? 30 + e$1 : 16 > e$1 ? e$1 - 8 + 90 : (232 > e$1 ? (o$1 = (e$1 -= 16) % 36, t$1 = (e$1 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5, n$1 = o$1 % 6 / 5) : t$1 = r$1 = n$1 = (10 * (e$1 - 232) + 8) / 255, l$1 = 2 * a$1(t$1, r$1, n$1), l$1 ? 30 + (c(n$1) << 2 | c(r$1) << 1 | c(t$1)) + (2 ^ l$1 ? 0 : 60) : 30);
|
|
1876
1876
|
}, g = (() => {
|
|
1877
|
-
let r$1 = (e$1) => o$1.some((t$1) => e$1.test(t$1)), n$1 = globalThis, l$1 = n$1.process ?? {}, o$1 = l$1.argv ?? [], i$2 = l$1.env ?? {}, c$1 = -1;
|
|
1877
|
+
let r$1 = (e$1) => o$1.some(((t$1) => e$1.test(t$1))), n$1 = globalThis, l$1 = n$1.process ?? {}, o$1 = l$1.argv ?? [], i$2 = l$1.env ?? {}, c$1 = -1;
|
|
1878
1878
|
try {
|
|
1879
1879
|
e = "," + s(i$2).join(",");
|
|
1880
1880
|
} catch (e$1) {
|
|
@@ -1958,9 +1958,9 @@ var require_ansis = require_chunk.__commonJS({ "../../node_modules/.pnpm/ansis@4
|
|
|
1958
1958
|
hidden: c$1(8, 28),
|
|
1959
1959
|
strikethrough: c$1(9, 29)
|
|
1960
1960
|
}, I = "Bright";
|
|
1961
|
-
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map((e$2, t$2) => {
|
|
1961
|
+
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((e$2, t$2) => {
|
|
1962
1962
|
E = "bg" + e$2[0].toUpperCase() + e$2.slice(1), 8 > t$2 ? (M[e$2 + I] = c$1(90 + t$2, h), M[E + I] = c$1(100 + t$2, b)) : t$2 = 60, M[e$2] = c$1(30 + t$2, h), M[E] = c$1(40 + t$2, b);
|
|
1963
|
-
}), t$1.extend(M);
|
|
1963
|
+
})), t$1.extend(M);
|
|
1964
1964
|
}, y = new w();
|
|
1965
1965
|
module.exports = y, y.default = y;
|
|
1966
1966
|
} });
|
|
@@ -2164,7 +2164,10 @@ const InputOptionsSchema = strictObject({
|
|
|
2164
2164
|
literal("full")
|
|
2165
2165
|
])),
|
|
2166
2166
|
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
|
|
2167
|
-
chunkImportMap: optional(boolean()
|
|
2167
|
+
chunkImportMap: optional(union([boolean(), object({
|
|
2168
|
+
baseUrl: optional(string()),
|
|
2169
|
+
fileName: optional(string())
|
|
2170
|
+
})]))
|
|
2168
2171
|
})),
|
|
2169
2172
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2170
2173
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2491,7 +2494,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2491
2494
|
}
|
|
2492
2495
|
|
|
2493
2496
|
//#endregion
|
|
2494
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2497
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2495
2498
|
function u$1(o$1, n$1, a$2) {
|
|
2496
2499
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2497
2500
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2501,7 +2504,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2501
2504
|
}
|
|
2502
2505
|
|
|
2503
2506
|
//#endregion
|
|
2504
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2507
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2505
2508
|
function u(r$1, n$1, o$1) {
|
|
2506
2509
|
let a$2 = r$1.length - n$1.length;
|
|
2507
2510
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2510,7 +2513,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2510
2513
|
}
|
|
2511
2514
|
|
|
2512
2515
|
//#endregion
|
|
2513
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2516
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2514
2517
|
function d(...r$1) {
|
|
2515
2518
|
return u(i, r$1);
|
|
2516
2519
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { and, arraify, code, exclude, id, include, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./dist-DvBwroyk.mjs";
|
|
2
|
-
import { augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
2
|
+
import { augmentCodeLocation, error, logCycleLoading, logDuplicateJsxConfig, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-rwZvDBjW.mjs";
|
|
3
3
|
import { BindingAttachDebugInfo, BindingBundler, BindingCallableBuiltinPlugin, BindingChunkModuleOrderBy, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
@@ -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.28-commit.
|
|
36
|
+
var version = "1.0.0-beta.28-commit.7ef342d";
|
|
37
37
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
@@ -1899,7 +1899,7 @@ var require_ansis = __commonJS({ "../../node_modules/.pnpm/ansis@4.1.0/node_modu
|
|
|
1899
1899
|
let t$1, r$1, n$1, l$1, o$1;
|
|
1900
1900
|
return 8 > e$1 ? 30 + e$1 : 16 > e$1 ? e$1 - 8 + 90 : (232 > e$1 ? (o$1 = (e$1 -= 16) % 36, t$1 = (e$1 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5, n$1 = o$1 % 6 / 5) : t$1 = r$1 = n$1 = (10 * (e$1 - 232) + 8) / 255, l$1 = 2 * a$1(t$1, r$1, n$1), l$1 ? 30 + (c(n$1) << 2 | c(r$1) << 1 | c(t$1)) + (2 ^ l$1 ? 0 : 60) : 30);
|
|
1901
1901
|
}, g = (() => {
|
|
1902
|
-
let r$1 = (e$1) => o$1.some((t$1) => e$1.test(t$1)), n$1 = globalThis, l$1 = n$1.process ?? {}, o$1 = l$1.argv ?? [], i$2 = l$1.env ?? {}, c$1 = -1;
|
|
1902
|
+
let r$1 = (e$1) => o$1.some(((t$1) => e$1.test(t$1))), n$1 = globalThis, l$1 = n$1.process ?? {}, o$1 = l$1.argv ?? [], i$2 = l$1.env ?? {}, c$1 = -1;
|
|
1903
1903
|
try {
|
|
1904
1904
|
e = "," + s(i$2).join(",");
|
|
1905
1905
|
} catch (e$1) {
|
|
@@ -1983,9 +1983,9 @@ var require_ansis = __commonJS({ "../../node_modules/.pnpm/ansis@4.1.0/node_modu
|
|
|
1983
1983
|
hidden: c$1(8, 28),
|
|
1984
1984
|
strikethrough: c$1(9, 29)
|
|
1985
1985
|
}, I = "Bright";
|
|
1986
|
-
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map((e$2, t$2) => {
|
|
1986
|
+
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((e$2, t$2) => {
|
|
1987
1987
|
E = "bg" + e$2[0].toUpperCase() + e$2.slice(1), 8 > t$2 ? (M[e$2 + I] = c$1(90 + t$2, h), M[E + I] = c$1(100 + t$2, b)) : t$2 = 60, M[e$2] = c$1(30 + t$2, h), M[E] = c$1(40 + t$2, b);
|
|
1988
|
-
}), t$1.extend(M);
|
|
1988
|
+
})), t$1.extend(M);
|
|
1989
1989
|
}, y = new w();
|
|
1990
1990
|
module.exports = y, y.default = y;
|
|
1991
1991
|
} });
|
|
@@ -2189,7 +2189,10 @@ const InputOptionsSchema = strictObject({
|
|
|
2189
2189
|
literal("full")
|
|
2190
2190
|
])),
|
|
2191
2191
|
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
|
|
2192
|
-
chunkImportMap: optional(boolean()
|
|
2192
|
+
chunkImportMap: optional(union([boolean(), object({
|
|
2193
|
+
baseUrl: optional(string()),
|
|
2194
|
+
fileName: optional(string())
|
|
2195
|
+
})]))
|
|
2193
2196
|
})),
|
|
2194
2197
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2195
2198
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2516,7 +2519,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2516
2519
|
}
|
|
2517
2520
|
|
|
2518
2521
|
//#endregion
|
|
2519
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2522
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2520
2523
|
function u$1(o$1, n$1, a$2) {
|
|
2521
2524
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2522
2525
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2526,7 +2529,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2526
2529
|
}
|
|
2527
2530
|
|
|
2528
2531
|
//#endregion
|
|
2529
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2532
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2530
2533
|
function u(r$1, n$1, o$1) {
|
|
2531
2534
|
let a$2 = r$1.length - n$1.length;
|
|
2532
2535
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2535,7 +2538,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2535
2538
|
}
|
|
2536
2539
|
|
|
2537
2540
|
//#endregion
|
|
2538
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2541
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2539
2542
|
function d(...r$1) {
|
|
2540
2543
|
return u(i, r$1);
|
|
2541
2544
|
}
|
|
@@ -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.28-commit.
|
|
30
|
+
var version = "1.0.0-beta.28-commit.7ef342d";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/utils/normalize-string-or-regex.ts
|
|
@@ -2088,7 +2088,7 @@ var require_ansis = __commonJS({ "../../node_modules/.pnpm/ansis@4.1.0/node_modu
|
|
|
2088
2088
|
let t$1, r$1, n$1, l$1, o$1;
|
|
2089
2089
|
return 8 > e$1 ? 30 + e$1 : 16 > e$1 ? e$1 - 8 + 90 : (232 > e$1 ? (o$1 = (e$1 -= 16) % 36, t$1 = (e$1 / 36 | 0) / 5, r$1 = (o$1 / 6 | 0) / 5, n$1 = o$1 % 6 / 5) : t$1 = r$1 = n$1 = (10 * (e$1 - 232) + 8) / 255, l$1 = 2 * a$1(t$1, r$1, n$1), l$1 ? 30 + (c(n$1) << 2 | c(r$1) << 1 | c(t$1)) + (2 ^ l$1 ? 0 : 60) : 30);
|
|
2090
2090
|
}, g = (() => {
|
|
2091
|
-
let r$1 = (e$1) => o$1.some((t$1) => e$1.test(t$1)), n$1 = globalThis, l$1 = n$1.process ?? {}, o$1 = l$1.argv ?? [], i$2 = l$1.env ?? {}, c$1 = -1;
|
|
2091
|
+
let r$1 = (e$1) => o$1.some(((t$1) => e$1.test(t$1))), n$1 = globalThis, l$1 = n$1.process ?? {}, o$1 = l$1.argv ?? [], i$2 = l$1.env ?? {}, c$1 = -1;
|
|
2092
2092
|
try {
|
|
2093
2093
|
e = "," + s(i$2).join(",");
|
|
2094
2094
|
} catch (e$1) {
|
|
@@ -2172,9 +2172,9 @@ var require_ansis = __commonJS({ "../../node_modules/.pnpm/ansis@4.1.0/node_modu
|
|
|
2172
2172
|
hidden: c$1(8, 28),
|
|
2173
2173
|
strikethrough: c$1(9, 29)
|
|
2174
2174
|
}, I = "Bright";
|
|
2175
|
-
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map((e$2, t$2) => {
|
|
2175
|
+
return "black,red,green,yellow,blue,magenta,cyan,white,gray".split(",").map(((e$2, t$2) => {
|
|
2176
2176
|
E = "bg" + e$2[0].toUpperCase() + e$2.slice(1), 8 > t$2 ? (M[e$2 + I] = c$1(90 + t$2, h), M[E + I] = c$1(100 + t$2, b)) : t$2 = 60, M[e$2] = c$1(30 + t$2, h), M[E] = c$1(40 + t$2, b);
|
|
2177
|
-
}), t$1.extend(M);
|
|
2177
|
+
})), t$1.extend(M);
|
|
2178
2178
|
}, y = new w();
|
|
2179
2179
|
module.exports = y, y.default = y;
|
|
2180
2180
|
} });
|
|
@@ -2378,7 +2378,10 @@ const InputOptionsSchema = strictObject({
|
|
|
2378
2378
|
literal("full")
|
|
2379
2379
|
])),
|
|
2380
2380
|
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
|
|
2381
|
-
chunkImportMap: optional(boolean()
|
|
2381
|
+
chunkImportMap: optional(union([boolean(), object({
|
|
2382
|
+
baseUrl: optional(string()),
|
|
2383
|
+
fileName: optional(string())
|
|
2384
|
+
})]))
|
|
2382
2385
|
})),
|
|
2383
2386
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2384
2387
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2773,7 +2776,7 @@ function exclude(expr) {
|
|
|
2773
2776
|
}
|
|
2774
2777
|
|
|
2775
2778
|
//#endregion
|
|
2776
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2779
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2777
2780
|
function u$1(o$1, n$1, a$2) {
|
|
2778
2781
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2779
2782
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2783,7 +2786,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2783
2786
|
}
|
|
2784
2787
|
|
|
2785
2788
|
//#endregion
|
|
2786
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2789
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2787
2790
|
function u(r$1, n$1, o$1) {
|
|
2788
2791
|
let a$2 = r$1.length - n$1.length;
|
|
2789
2792
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2792,7 +2795,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2792
2795
|
}
|
|
2793
2796
|
|
|
2794
2797
|
//#endregion
|
|
2795
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2798
|
+
//#region ../../node_modules/.pnpm/remeda@2.26.1/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2796
2799
|
function d(...r$1) {
|
|
2797
2800
|
return u(i, r$1);
|
|
2798
2801
|
}
|
|
@@ -2959,7 +2962,7 @@ function bindingPluginOrder(order) {
|
|
|
2959
2962
|
}
|
|
2960
2963
|
|
|
2961
2964
|
//#endregion
|
|
2962
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.77.
|
|
2965
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.77.3/node_modules/oxc-parser/wrap.mjs
|
|
2963
2966
|
function wrap$1(result) {
|
|
2964
2967
|
let program, module$1, comments, errors;
|
|
2965
2968
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.28-commit.
|
|
3
|
+
"version": "1.0.0-beta.28-commit.7ef342d",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@napi-rs/wasm-runtime": "^0.
|
|
59
|
-
"@oxc-project/runtime": "=0.77.
|
|
58
|
+
"@napi-rs/wasm-runtime": "^1.0.0",
|
|
59
|
+
"@oxc-project/runtime": "=0.77.3"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "pnpm run build:debug",
|