@rolldown/browser 1.0.0-beta.27 → 1.0.0-beta.28
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 +2 -2
- package/dist/config.d.mts +2 -2
- 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 +3 -3
- package/dist/experimental-index.d.mts +3 -3
- package/dist/experimental-index.mjs +2 -2
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- 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 +3 -3
- package/dist/parallel-plugin.d.mts +3 -3
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +2 -2
- package/dist/parse-ast-index.d.mts +2 -2
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasi-browser.js +2 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-CCU51T2Z.d.mts → binding-BO7hG1pA.d.mts} +2 -1
- package/dist/shared/{binding-Drc5ua4y.d.cts → binding-D1lW862e.d.cts} +2 -1
- package/dist/shared/{define-config-BR48x-Ul.d.mts → define-config-5S3FYqLV.d.mts} +10 -2
- package/dist/shared/{define-config-DarysRyQ.d.cts → define-config-QTGzJj6S.d.cts} +10 -2
- package/dist/shared/{load-config-BVia0jrs.cjs → load-config-CgmNzbv9.cjs} +1 -1
- package/dist/shared/{load-config-CPmBj6F_.mjs → load-config-DvNgGrGQ.mjs} +1 -1
- package/dist/shared/{parse-ast-index-Unr-JnKv.mjs → parse-ast-index-B8XFyU6n.mjs} +1 -1
- package/dist/shared/{parse-ast-index-DnpPfWeq.cjs → parse-ast-index-DjKK9JzO.cjs} +1 -1
- package/dist/shared/{src-D7HG4nsV.mjs → src-CUuK1AqG.mjs} +19 -9
- package/dist/shared/{src-8--Fo6BA.cjs → src-DYVK-qfJ.cjs} +19 -9
- package/dist/{src-DG_P-UlJ.js → src-H6QDFLuM.js} +19 -9
- package/package.json +2 -2
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-DYVK-qfJ.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-DjKK9JzO.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-CgmNzbv9.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.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1427
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.2/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-CUuK1AqG.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-B8XFyU6n.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DvNgGrGQ.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.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1426
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.77.2/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-DYVK-qfJ.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-DjKK9JzO.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-CgmNzbv9.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
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-D1lW862e.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-QTGzJj6S.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
|
-
import "./shared/binding-
|
|
2
|
-
import { ConfigExport, defineConfig } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-BO7hG1pA.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-5S3FYqLV.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-CUuK1AqG.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-B8XFyU6n.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DvNgGrGQ.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-H6QDFLuM.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-DYVK-qfJ.cjs');
|
|
3
3
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-DjKK9JzO.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
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
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-QTGzJj6S.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -55,4 +55,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
55
55
|
};
|
|
56
56
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
57
57
|
//#endregion
|
|
58
|
-
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
58
|
+
export { type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingReplacePluginConfig, BindingTransformPluginConfig, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform } from "./shared/binding-
|
|
2
|
-
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-
|
|
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-5S3FYqLV.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -55,4 +55,4 @@ type TransformPluginConfig = Omit<BindingTransformPluginConfig, "include" | "exc
|
|
|
55
55
|
};
|
|
56
56
|
declare function transformPlugin(config?: TransformPluginConfig): BuiltinPlugin;
|
|
57
57
|
//#endregion
|
|
58
|
-
export { IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions as ResolveOptions, ResolveResult, ResolverFactory, TransformOptions, TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
58
|
+
export { type IsolatedDeclarationsOptions, type IsolatedDeclarationsResult, type NapiResolveOptions as ResolveOptions, type ResolveResult, ResolverFactory, type TransformOptions, type TransformResult, aliasPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclaration, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, moduleRunnerTransform, replacePlugin, reporterPlugin, experimental_scan as scan, transform, transformPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin };
|
|
@@ -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-CUuK1AqG.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-B8XFyU6n.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
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-D1lW862e.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-QTGzJj6S.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
|
-
import "./shared/binding-
|
|
2
|
-
import { withFilter } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-BO7hG1pA.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-5S3FYqLV.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-DYVK-qfJ.cjs');
|
|
2
2
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
require('./shared/parse-ast-index-DjKK9JzO.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
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
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-
|
|
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-QTGzJj6S.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
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
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-
|
|
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-5S3FYqLV.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-CUuK1AqG.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-B8XFyU6n.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-DYVK-qfJ.cjs');
|
|
3
3
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-DjKK9JzO.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-CUuK1AqG.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-B8XFyU6n.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
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-D1lW862e.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-QTGzJj6S.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -11,4 +11,4 @@ type Context = {
|
|
|
11
11
|
};
|
|
12
12
|
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
14
|
+
export { type Context, type ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-BO7hG1pA.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-5S3FYqLV.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -11,4 +11,4 @@ type Context = {
|
|
|
11
11
|
};
|
|
12
12
|
declare function defineParallelPluginImplementation<Options>(plugin: (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>): (Options: Options, context: Context) => MaybePromise<ParallelPluginImplementation>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { Context, ParallelPluginImplementation, defineParallelPluginImplementation };
|
|
14
|
+
export { type Context, type ParallelPluginImplementation, defineParallelPluginImplementation };
|
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-DjKK9JzO.cjs');
|
|
2
2
|
|
|
3
3
|
exports.parseAst = require_parse_ast_index.parseAst;
|
|
4
4
|
exports.parseAstAsync = require_parse_ast_index.parseAstAsync;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ParseResult, ParserOptions } from "./shared/binding-
|
|
1
|
+
import { ParseResult, ParserOptions } from "./shared/binding-D1lW862e.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/parse-ast-index.d.ts
|
|
5
5
|
declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
|
|
6
6
|
declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { ParseResult, ParserOptions, parseAst, parseAstAsync };
|
|
8
|
+
export { type ParseResult, type ParserOptions, parseAst, parseAstAsync };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ParseResult, ParserOptions } from "./shared/binding-
|
|
1
|
+
import { ParseResult, ParserOptions } from "./shared/binding-BO7hG1pA.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
|
|
4
4
|
//#region src/parse-ast-index.d.ts
|
|
5
5
|
declare function parseAst(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Program;
|
|
6
6
|
declare function parseAstAsync(sourceText: string, options?: ParserOptions | undefined | null, filename?: string): Promise<Program>;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { ParseResult, ParserOptions, parseAst, parseAstAsync };
|
|
8
|
+
export { type ParseResult, type ParserOptions, parseAst, parseAstAsync };
|
package/dist/parse-ast-index.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
} from '@napi-rs/wasm-runtime'
|
|
7
7
|
import { memfs } from '@napi-rs/wasm-runtime/fs'
|
|
8
8
|
|
|
9
|
+
|
|
9
10
|
export const { fs: __fs, vol: __volume } = memfs()
|
|
10
11
|
|
|
11
12
|
const __wasi = new __WASI({
|
|
@@ -19,6 +20,7 @@ const __wasi = new __WASI({
|
|
|
19
20
|
const __wasmUrl = new URL('./rolldown-binding.wasm32-wasi.wasm', import.meta.url).href
|
|
20
21
|
const __emnapiContext = __emnapiGetDefaultContext()
|
|
21
22
|
|
|
23
|
+
|
|
22
24
|
const __sharedMemory = new WebAssembly.Memory({
|
|
23
25
|
initial: 16384,
|
|
24
26
|
maximum: 65536,
|
|
Binary file
|
|
@@ -296,6 +296,7 @@ interface NapiResolveOptions {
|
|
|
296
296
|
* AliasValue::Path(String)`
|
|
297
297
|
* Create aliases to import or require certain modules more easily.
|
|
298
298
|
* A trailing $ can also be added to the given object's keys to signify an exact match.
|
|
299
|
+
* Default `{}`
|
|
299
300
|
*/
|
|
300
301
|
alias?: Record<string, Array<string | undefined | null>>;
|
|
301
302
|
/**
|
|
@@ -358,7 +359,7 @@ interface NapiResolveOptions {
|
|
|
358
359
|
/**
|
|
359
360
|
* Redirect module requests when normal resolving fails.
|
|
360
361
|
*
|
|
361
|
-
* Default `
|
|
362
|
+
* Default `{}`
|
|
362
363
|
*/
|
|
363
364
|
fallback?: Record<string, Array<string | undefined | null>>;
|
|
364
365
|
/**
|
|
@@ -296,6 +296,7 @@ interface NapiResolveOptions {
|
|
|
296
296
|
* AliasValue::Path(String)`
|
|
297
297
|
* Create aliases to import or require certain modules more easily.
|
|
298
298
|
* A trailing $ can also be added to the given object's keys to signify an exact match.
|
|
299
|
+
* Default `{}`
|
|
299
300
|
*/
|
|
300
301
|
alias?: Record<string, Array<string | undefined | null>>;
|
|
301
302
|
/**
|
|
@@ -358,7 +359,7 @@ interface NapiResolveOptions {
|
|
|
358
359
|
/**
|
|
359
360
|
* Redirect module requests when normal resolving fails.
|
|
360
361
|
*
|
|
361
|
-
* Default `
|
|
362
|
+
* Default `{}`
|
|
362
363
|
*/
|
|
363
364
|
fallback?: Record<string, Array<string | undefined | null>>;
|
|
364
365
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-BO7hG1pA.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -504,6 +504,7 @@ declare class WatcherEmitter {
|
|
|
504
504
|
on(event: "event", listener: (data: RolldownWatcherEvent) => MaybePromise<void>): this;
|
|
505
505
|
on(event: "restart" | "close", listener: () => MaybePromise<void>): this;
|
|
506
506
|
off(event: WatcherEvent, listener: (...parameters: any[]) => MaybePromise<void>): this;
|
|
507
|
+
clear(event: WatcherEvent): void;
|
|
507
508
|
onEvent(event: BindingWatcherEvent): Promise<void>;
|
|
508
509
|
close(): Promise<void>;
|
|
509
510
|
}
|
|
@@ -983,6 +984,7 @@ interface WatcherOptions {
|
|
|
983
984
|
};
|
|
984
985
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
985
986
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
987
|
+
onInvalidate?: (id: string) => void;
|
|
986
988
|
}
|
|
987
989
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
988
990
|
type HmrOptions = boolean | {
|
|
@@ -1078,6 +1080,12 @@ interface InputOptions {
|
|
|
1078
1080
|
* > You shouldn't use `full` in the production build.
|
|
1079
1081
|
*/
|
|
1080
1082
|
attachDebugInfo?: AttachDebugOptions;
|
|
1083
|
+
chunkImportMap?: boolean;
|
|
1084
|
+
onDemandWrapping?: boolean;
|
|
1085
|
+
/**
|
|
1086
|
+
* Required to be used with `watch` mode.
|
|
1087
|
+
*/
|
|
1088
|
+
incrementalBuild?: boolean;
|
|
1081
1089
|
};
|
|
1082
1090
|
/**
|
|
1083
1091
|
* Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
|
|
@@ -1206,4 +1214,4 @@ declare function defineConfig(config: RolldownOptions): RolldownOptions;
|
|
|
1206
1214
|
declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
1207
1215
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1208
1216
|
//#endregion
|
|
1209
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, 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, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
1217
|
+
export { type AddonFunction, type AsyncPluginHooks, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-D1lW862e.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -504,6 +504,7 @@ declare class WatcherEmitter {
|
|
|
504
504
|
on(event: "event", listener: (data: RolldownWatcherEvent) => MaybePromise<void>): this;
|
|
505
505
|
on(event: "restart" | "close", listener: () => MaybePromise<void>): this;
|
|
506
506
|
off(event: WatcherEvent, listener: (...parameters: any[]) => MaybePromise<void>): this;
|
|
507
|
+
clear(event: WatcherEvent): void;
|
|
507
508
|
onEvent(event: BindingWatcherEvent): Promise<void>;
|
|
508
509
|
close(): Promise<void>;
|
|
509
510
|
}
|
|
@@ -983,6 +984,7 @@ interface WatcherOptions {
|
|
|
983
984
|
};
|
|
984
985
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
985
986
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
987
|
+
onInvalidate?: (id: string) => void;
|
|
986
988
|
}
|
|
987
989
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
988
990
|
type HmrOptions = boolean | {
|
|
@@ -1078,6 +1080,12 @@ interface InputOptions {
|
|
|
1078
1080
|
* > You shouldn't use `full` in the production build.
|
|
1079
1081
|
*/
|
|
1080
1082
|
attachDebugInfo?: AttachDebugOptions;
|
|
1083
|
+
chunkImportMap?: boolean;
|
|
1084
|
+
onDemandWrapping?: boolean;
|
|
1085
|
+
/**
|
|
1086
|
+
* Required to be used with `watch` mode.
|
|
1087
|
+
*/
|
|
1088
|
+
incrementalBuild?: boolean;
|
|
1081
1089
|
};
|
|
1082
1090
|
/**
|
|
1083
1091
|
* Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
|
|
@@ -1206,4 +1214,4 @@ declare function defineConfig(config: RolldownOptions): RolldownOptions;
|
|
|
1206
1214
|
declare function defineConfig(config: RolldownOptions[]): RolldownOptions[];
|
|
1207
1215
|
declare function defineConfig(config: ConfigExport): ConfigExport;
|
|
1208
1216
|
//#endregion
|
|
1209
|
-
export { AddonFunction, AsyncPluginHooks, BuildOptions, BuiltinPlugin, ChunkFileNamesFunction, ChunkingContext, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MaybePromise, 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, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
1217
|
+
export { type AddonFunction, type AsyncPluginHooks, type BuildOptions, BuiltinPlugin, type ChunkFileNamesFunction, type ChunkingContext, type ConfigExport, type CustomPluginOptions, type DefineParallelPluginResult, type EmittedAsset, type EmittedFile, type ExistingRawSourceMap, type ExternalOption, type FunctionPluginHooks, type GeneralHookFilter, type GetModuleInfo, type GlobalsFunction, type HookFilter, type HookFilterExtension, type ImportKind, type InputOption, type InputOptions, type InternalModuleFormat, type LoadResult, type LogLevel, type LogLevelOption, type LogOrStringHandler, type LoggingFunction, MaybePromise, type MinifyOptions, type MinimalPluginContext, type ModuleFormat, type ModuleInfo, type ModuleOptions, type ModuleType, type ModuleTypeFilter, type ModuleTypes, type NormalizedInputOptions, type NormalizedOutputOptions, type ObjectHook, type OptimizationOptions, type OutputAsset, type OutputBundle, type OutputChunk, type OutputOptions, type ParallelPluginHooks, type PartialNull, type PartialResolvedId, type Plugin, type PluginContext, type PluginContextMeta, type PreRenderedAsset, type RenderedChunk, type RenderedModule, type ResolveIdExtraOptions, type ResolveIdResult, type ResolvedId, type RolldownBuild, type RolldownOptions, type RolldownOutput, type RolldownPlugin, type RolldownPluginOption, type RolldownWatcher, type RolldownWatcherEvent, type RollupError, type RollupLog, type RollupLogWithString, type SourceDescription, type SourceMap, type SourceMapInput, type SourcemapIgnoreListOption, type TransformPluginContext, type TransformResult, type TreeshakingOptions, VERSION, type WarningHandlerWithDefault, type WatchOptions, type WatcherOptions, assetPlugin, build, buildImportAnalysisPlugin, defineConfig, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, rolldown, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin, withFilter };
|
|
@@ -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-DYVK-qfJ.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"));
|
|
@@ -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.2/node_modules/oxc-parser/wrap.mjs
|
|
190
190
|
function wrap$1(result) {
|
|
191
191
|
let program, module, comments, errors;
|
|
192
192
|
return {
|
|
@@ -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.2/node_modules/oxc-parser/wrap.mjs
|
|
191
191
|
function wrap$1(result) {
|
|
192
192
|
let program, module$1, comments, errors;
|
|
193
193
|
return {
|
|
@@ -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-B8XFyU6n.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.
|
|
36
|
+
var version = "1.0.0-beta.28";
|
|
37
37
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
@@ -2180,13 +2180,16 @@ const InputOptionsSchema = strictObject({
|
|
|
2180
2180
|
viteMode: optional(boolean()),
|
|
2181
2181
|
resolveNewUrlToAsset: optional(boolean()),
|
|
2182
2182
|
strictExecutionOrder: optional(boolean()),
|
|
2183
|
+
onDemandWrapping: optional(boolean()),
|
|
2184
|
+
incrementalBuild: optional(boolean()),
|
|
2183
2185
|
hmr: optional(HmrSchema),
|
|
2184
2186
|
attachDebugInfo: optional(union([
|
|
2185
2187
|
literal("none"),
|
|
2186
2188
|
literal("simple"),
|
|
2187
2189
|
literal("full")
|
|
2188
2190
|
])),
|
|
2189
|
-
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")]))
|
|
2191
|
+
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
|
|
2192
|
+
chunkImportMap: optional(boolean())
|
|
2190
2193
|
})),
|
|
2191
2194
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2192
2195
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2513,7 +2516,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2513
2516
|
}
|
|
2514
2517
|
|
|
2515
2518
|
//#endregion
|
|
2516
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2519
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2517
2520
|
function u$1(o$1, n$1, a$2) {
|
|
2518
2521
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2519
2522
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2523,7 +2526,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2523
2526
|
}
|
|
2524
2527
|
|
|
2525
2528
|
//#endregion
|
|
2526
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2529
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2527
2530
|
function u(r$1, n$1, o$1) {
|
|
2528
2531
|
let a$2 = r$1.length - n$1.length;
|
|
2529
2532
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2532,7 +2535,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2532
2535
|
}
|
|
2533
2536
|
|
|
2534
2537
|
//#endregion
|
|
2535
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2538
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2536
2539
|
function d(...r$1) {
|
|
2537
2540
|
return u(i, r$1);
|
|
2538
2541
|
}
|
|
@@ -4046,11 +4049,14 @@ function bindingifyExperimental(experimental) {
|
|
|
4046
4049
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
4047
4050
|
hmr: bindingifyHmr(experimental?.hmr),
|
|
4048
4051
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
4049
|
-
chunkModulesOrder
|
|
4052
|
+
chunkModulesOrder,
|
|
4053
|
+
chunkImportMap: experimental?.chunkImportMap,
|
|
4054
|
+
onDemandWrapping: experimental?.onDemandWrapping,
|
|
4055
|
+
incrementalBuild: experimental?.incrementalBuild
|
|
4050
4056
|
};
|
|
4051
4057
|
}
|
|
4052
4058
|
function bindingifyResolve(resolve) {
|
|
4053
|
-
const yarnPnp = typeof process === "object" && !!process.versions
|
|
4059
|
+
const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
|
|
4054
4060
|
if (resolve) {
|
|
4055
4061
|
const { alias, extensionAlias,...rest } = resolve;
|
|
4056
4062
|
return {
|
|
@@ -4154,7 +4160,8 @@ function bindingifyWatch(watch$1) {
|
|
|
4154
4160
|
buildDelay: watch$1.buildDelay,
|
|
4155
4161
|
skipWrite: watch$1.skipWrite,
|
|
4156
4162
|
include: normalizedStringOrRegex(watch$1.include),
|
|
4157
|
-
exclude: normalizedStringOrRegex(watch$1.exclude)
|
|
4163
|
+
exclude: normalizedStringOrRegex(watch$1.exclude),
|
|
4164
|
+
onInvalidate: (...args$1) => watch$1.onInvalidate?.(...args$1)
|
|
4158
4165
|
};
|
|
4159
4166
|
}
|
|
4160
4167
|
function bindingifyTreeshakeOptions(config) {
|
|
@@ -4424,6 +4431,9 @@ var WatcherEmitter = class {
|
|
|
4424
4431
|
}
|
|
4425
4432
|
return this;
|
|
4426
4433
|
}
|
|
4434
|
+
clear(event) {
|
|
4435
|
+
if (this.listeners.has(event)) this.listeners.delete(event);
|
|
4436
|
+
}
|
|
4427
4437
|
async onEvent(event) {
|
|
4428
4438
|
const listeners = this.listeners.get(event.eventKind());
|
|
4429
4439
|
if (listeners) switch (event.eventKind()) {
|
|
@@ -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-DjKK9JzO.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.
|
|
11
|
+
var version = "1.0.0-beta.28";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -2155,13 +2155,16 @@ const InputOptionsSchema = strictObject({
|
|
|
2155
2155
|
viteMode: optional(boolean()),
|
|
2156
2156
|
resolveNewUrlToAsset: optional(boolean()),
|
|
2157
2157
|
strictExecutionOrder: optional(boolean()),
|
|
2158
|
+
onDemandWrapping: optional(boolean()),
|
|
2159
|
+
incrementalBuild: optional(boolean()),
|
|
2158
2160
|
hmr: optional(HmrSchema),
|
|
2159
2161
|
attachDebugInfo: optional(union([
|
|
2160
2162
|
literal("none"),
|
|
2161
2163
|
literal("simple"),
|
|
2162
2164
|
literal("full")
|
|
2163
2165
|
])),
|
|
2164
|
-
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")]))
|
|
2166
|
+
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
|
|
2167
|
+
chunkImportMap: optional(boolean())
|
|
2165
2168
|
})),
|
|
2166
2169
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2167
2170
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2488,7 +2491,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2488
2491
|
}
|
|
2489
2492
|
|
|
2490
2493
|
//#endregion
|
|
2491
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2494
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2492
2495
|
function u$1(o$1, n$1, a$2) {
|
|
2493
2496
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2494
2497
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2498,7 +2501,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2498
2501
|
}
|
|
2499
2502
|
|
|
2500
2503
|
//#endregion
|
|
2501
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2504
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2502
2505
|
function u(r$1, n$1, o$1) {
|
|
2503
2506
|
let a$2 = r$1.length - n$1.length;
|
|
2504
2507
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2507,7 +2510,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2507
2510
|
}
|
|
2508
2511
|
|
|
2509
2512
|
//#endregion
|
|
2510
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2513
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2511
2514
|
function d(...r$1) {
|
|
2512
2515
|
return u(i, r$1);
|
|
2513
2516
|
}
|
|
@@ -4021,11 +4024,14 @@ function bindingifyExperimental(experimental) {
|
|
|
4021
4024
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
4022
4025
|
hmr: bindingifyHmr(experimental?.hmr),
|
|
4023
4026
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
4024
|
-
chunkModulesOrder
|
|
4027
|
+
chunkModulesOrder,
|
|
4028
|
+
chunkImportMap: experimental?.chunkImportMap,
|
|
4029
|
+
onDemandWrapping: experimental?.onDemandWrapping,
|
|
4030
|
+
incrementalBuild: experimental?.incrementalBuild
|
|
4025
4031
|
};
|
|
4026
4032
|
}
|
|
4027
4033
|
function bindingifyResolve(resolve) {
|
|
4028
|
-
const yarnPnp = typeof process === "object" && !!process.versions
|
|
4034
|
+
const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
|
|
4029
4035
|
if (resolve) {
|
|
4030
4036
|
const { alias, extensionAlias,...rest } = resolve;
|
|
4031
4037
|
return {
|
|
@@ -4129,7 +4135,8 @@ function bindingifyWatch(watch$1) {
|
|
|
4129
4135
|
buildDelay: watch$1.buildDelay,
|
|
4130
4136
|
skipWrite: watch$1.skipWrite,
|
|
4131
4137
|
include: normalizedStringOrRegex(watch$1.include),
|
|
4132
|
-
exclude: normalizedStringOrRegex(watch$1.exclude)
|
|
4138
|
+
exclude: normalizedStringOrRegex(watch$1.exclude),
|
|
4139
|
+
onInvalidate: (...args$1) => watch$1.onInvalidate?.(...args$1)
|
|
4133
4140
|
};
|
|
4134
4141
|
}
|
|
4135
4142
|
function bindingifyTreeshakeOptions(config) {
|
|
@@ -4399,6 +4406,9 @@ var WatcherEmitter = class {
|
|
|
4399
4406
|
}
|
|
4400
4407
|
return this;
|
|
4401
4408
|
}
|
|
4409
|
+
clear(event) {
|
|
4410
|
+
if (this.listeners.has(event)) this.listeners.delete(event);
|
|
4411
|
+
}
|
|
4402
4412
|
async onEvent(event) {
|
|
4403
4413
|
const listeners = this.listeners.get(event.eventKind());
|
|
4404
4414
|
if (listeners) switch (event.eventKind()) {
|
|
@@ -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.28";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/utils/normalize-string-or-regex.ts
|
|
@@ -2369,13 +2369,16 @@ const InputOptionsSchema = strictObject({
|
|
|
2369
2369
|
viteMode: optional(boolean()),
|
|
2370
2370
|
resolveNewUrlToAsset: optional(boolean()),
|
|
2371
2371
|
strictExecutionOrder: optional(boolean()),
|
|
2372
|
+
onDemandWrapping: optional(boolean()),
|
|
2373
|
+
incrementalBuild: optional(boolean()),
|
|
2372
2374
|
hmr: optional(HmrSchema),
|
|
2373
2375
|
attachDebugInfo: optional(union([
|
|
2374
2376
|
literal("none"),
|
|
2375
2377
|
literal("simple"),
|
|
2376
2378
|
literal("full")
|
|
2377
2379
|
])),
|
|
2378
|
-
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")]))
|
|
2380
|
+
chunkModulesOrder: optional(union([literal("module-id"), literal("exec-order")])),
|
|
2381
|
+
chunkImportMap: optional(boolean())
|
|
2379
2382
|
})),
|
|
2380
2383
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2381
2384
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2770,7 +2773,7 @@ function exclude(expr) {
|
|
|
2770
2773
|
}
|
|
2771
2774
|
|
|
2772
2775
|
//#endregion
|
|
2773
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2776
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2774
2777
|
function u$1(o$1, n$1, a$2) {
|
|
2775
2778
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2776
2779
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2780,7 +2783,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2780
2783
|
}
|
|
2781
2784
|
|
|
2782
2785
|
//#endregion
|
|
2783
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2786
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2784
2787
|
function u(r$1, n$1, o$1) {
|
|
2785
2788
|
let a$2 = r$1.length - n$1.length;
|
|
2786
2789
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2789,7 +2792,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2789
2792
|
}
|
|
2790
2793
|
|
|
2791
2794
|
//#endregion
|
|
2792
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2795
|
+
//#region ../../node_modules/.pnpm/remeda@2.25.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2793
2796
|
function d(...r$1) {
|
|
2794
2797
|
return u(i, r$1);
|
|
2795
2798
|
}
|
|
@@ -2956,7 +2959,7 @@ function bindingPluginOrder(order) {
|
|
|
2956
2959
|
}
|
|
2957
2960
|
|
|
2958
2961
|
//#endregion
|
|
2959
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.77.
|
|
2962
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.77.2/node_modules/oxc-parser/wrap.mjs
|
|
2960
2963
|
function wrap$1(result) {
|
|
2961
2964
|
let program, module$1, comments, errors;
|
|
2962
2965
|
return {
|
|
@@ -4374,11 +4377,14 @@ function bindingifyExperimental(experimental) {
|
|
|
4374
4377
|
resolveNewUrlToAsset: experimental?.resolveNewUrlToAsset,
|
|
4375
4378
|
hmr: bindingifyHmr(experimental?.hmr),
|
|
4376
4379
|
attachDebugInfo: bindingifyAttachDebugInfo(experimental?.attachDebugInfo),
|
|
4377
|
-
chunkModulesOrder
|
|
4380
|
+
chunkModulesOrder,
|
|
4381
|
+
chunkImportMap: experimental?.chunkImportMap,
|
|
4382
|
+
onDemandWrapping: experimental?.onDemandWrapping,
|
|
4383
|
+
incrementalBuild: experimental?.incrementalBuild
|
|
4378
4384
|
};
|
|
4379
4385
|
}
|
|
4380
4386
|
function bindingifyResolve(resolve$1) {
|
|
4381
|
-
const yarnPnp = typeof process === "object" && !!process.versions
|
|
4387
|
+
const yarnPnp = typeof process === "object" && !!process.versions?.pnp;
|
|
4382
4388
|
if (resolve$1) {
|
|
4383
4389
|
const { alias, extensionAlias,...rest } = resolve$1;
|
|
4384
4390
|
return {
|
|
@@ -4482,7 +4488,8 @@ function bindingifyWatch(watch$1) {
|
|
|
4482
4488
|
buildDelay: watch$1.buildDelay,
|
|
4483
4489
|
skipWrite: watch$1.skipWrite,
|
|
4484
4490
|
include: normalizedStringOrRegex(watch$1.include),
|
|
4485
|
-
exclude: normalizedStringOrRegex(watch$1.exclude)
|
|
4491
|
+
exclude: normalizedStringOrRegex(watch$1.exclude),
|
|
4492
|
+
onInvalidate: (...args$1) => watch$1.onInvalidate?.(...args$1)
|
|
4486
4493
|
};
|
|
4487
4494
|
}
|
|
4488
4495
|
function bindingifyTreeshakeOptions(config) {
|
|
@@ -4690,6 +4697,9 @@ var WatcherEmitter = class {
|
|
|
4690
4697
|
}
|
|
4691
4698
|
return this;
|
|
4692
4699
|
}
|
|
4700
|
+
clear(event) {
|
|
4701
|
+
if (this.listeners.has(event)) this.listeners.delete(event);
|
|
4702
|
+
}
|
|
4693
4703
|
async onEvent(event) {
|
|
4694
4704
|
const listeners = this.listeners.get(event.eventKind());
|
|
4695
4705
|
if (listeners) switch (event.eventKind()) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolldown/browser",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.28",
|
|
4
4
|
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
|
|
5
5
|
"homepage": "https://rolldown.rs/",
|
|
6
6
|
"type": "module",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@napi-rs/wasm-runtime": "^0.2.10",
|
|
59
|
-
"@oxc-project/runtime": "=0.77.
|
|
59
|
+
"@oxc-project/runtime": "=0.77.2"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "pnpm run build:debug",
|