@rolldown/browser 1.0.0-beta.30 → 1.0.0-beta.31
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 +20 -5
- package/dist/cli.mjs +20 -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 +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +2 -2
- package/dist/experimental-runtime-types.d.ts +2 -0
- 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 +2 -2
- package/dist/parallel-plugin.d.mts +2 -2
- package/dist/parse-ast-index.cjs +1 -1
- package/dist/parse-ast-index.d.cts +1 -1
- package/dist/parse-ast-index.d.mts +1 -1
- package/dist/parse-ast-index.mjs +1 -1
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-BAyrv67G.d.cts → binding-B2f_h9DF.d.mts} +15 -1
- package/dist/shared/{binding-DUz1Q2JW.d.mts → binding-CCkTRaSB.d.cts} +15 -1
- package/dist/shared/{define-config-CMH1jWhX.d.cts → define-config-BzVT47Bj.d.cts} +7 -3
- package/dist/shared/{define-config-5ALh7WDx.d.mts → define-config-xzVj_WrD.d.mts} +7 -3
- package/dist/shared/{load-config-XQT0YfAt.cjs → load-config-9KWiC1Y_.cjs} +1 -1
- package/dist/shared/{load-config-Uk19Sezh.mjs → load-config-DCz6MK3j.mjs} +1 -1
- package/dist/shared/{parse-ast-index-ZiMOspE_.cjs → parse-ast-index-DZ5uPSgP.cjs} +1 -1
- package/dist/shared/{parse-ast-index-Z-sG_A0I.mjs → parse-ast-index-r9XO-GhB.mjs} +1 -1
- package/dist/shared/{src-CkG0t1KT.mjs → src-BSeUgDdv.mjs} +28 -21
- package/dist/shared/{src-CXCXfLrc.cjs → src-gD0LmYxq.cjs} +28 -21
- package/dist/{src-DGzv-S-Z.js → src-C8_hb_FH.js} +27 -20
- 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-gD0LmYxq.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-DZ5uPSgP.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-9KWiC1Y_.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,19 @@ 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
|
|
1427
|
-
|
|
1426
|
+
//#region src/utils/clear-screen.ts
|
|
1427
|
+
const CLEAR_SCREEN = "\x1Bc";
|
|
1428
|
+
function getClearScreenFunction(options$1) {
|
|
1429
|
+
const isTTY = process.stdout.isTTY;
|
|
1430
|
+
const isAnyOptionNotAllowingClearScreen = require_dist.arraify(options$1).some(({ watch: watch$1 }) => watch$1 === false || watch$1?.clearScreen === false);
|
|
1431
|
+
if (isTTY && !isAnyOptionNotAllowingClearScreen) return () => {
|
|
1432
|
+
process.stdout.write(CLEAR_SCREEN);
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
//#endregion
|
|
1437
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.80.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1438
|
+
var require_usingCtx = /* @__PURE__ */ require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.80.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js": ((exports, module) => {
|
|
1428
1439
|
function _usingCtx() {
|
|
1429
1440
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1430
1441
|
var n$2 = Error();
|
|
@@ -1550,8 +1561,12 @@ async function watchInner(config, cliOptions) {
|
|
|
1550
1561
|
watcher.on("change", (id, event) => {
|
|
1551
1562
|
if (event.event === "update") changedFile.push(id);
|
|
1552
1563
|
});
|
|
1564
|
+
const clearScreen = getClearScreenFunction(normalizedConfig);
|
|
1553
1565
|
watcher.on("event", async (event) => {
|
|
1554
1566
|
switch (event.code) {
|
|
1567
|
+
case "START":
|
|
1568
|
+
clearScreen?.();
|
|
1569
|
+
break;
|
|
1555
1570
|
case "BUNDLE_START":
|
|
1556
1571
|
if (changedFile.length > 0) logger.log(`Found ${require_src.ansis_default.bold(changedFile.map(relativeId).join(", "))} changed, rebuilding...`);
|
|
1557
1572
|
changedFile.length = 0;
|
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-BSeUgDdv.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-r9XO-GhB.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DCz6MK3j.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,19 @@ 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
|
|
1426
|
-
|
|
1425
|
+
//#region src/utils/clear-screen.ts
|
|
1426
|
+
const CLEAR_SCREEN = "\x1Bc";
|
|
1427
|
+
function getClearScreenFunction(options$1) {
|
|
1428
|
+
const isTTY = process.stdout.isTTY;
|
|
1429
|
+
const isAnyOptionNotAllowingClearScreen = arraify(options$1).some(({ watch: watch$1 }) => watch$1 === false || watch$1?.clearScreen === false);
|
|
1430
|
+
if (isTTY && !isAnyOptionNotAllowingClearScreen) return () => {
|
|
1431
|
+
process.stdout.write(CLEAR_SCREEN);
|
|
1432
|
+
};
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
//#endregion
|
|
1436
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.80.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1437
|
+
var require_usingCtx = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.80.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js": ((exports, module) => {
|
|
1427
1438
|
function _usingCtx() {
|
|
1428
1439
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1429
1440
|
var n$2 = Error();
|
|
@@ -1549,8 +1560,12 @@ async function watchInner(config, cliOptions) {
|
|
|
1549
1560
|
watcher.on("change", (id, event) => {
|
|
1550
1561
|
if (event.event === "update") changedFile.push(id);
|
|
1551
1562
|
});
|
|
1563
|
+
const clearScreen = getClearScreenFunction(normalizedConfig);
|
|
1552
1564
|
watcher.on("event", async (event) => {
|
|
1553
1565
|
switch (event.code) {
|
|
1566
|
+
case "START":
|
|
1567
|
+
clearScreen?.();
|
|
1568
|
+
break;
|
|
1554
1569
|
case "BUNDLE_START":
|
|
1555
1570
|
if (changedFile.length > 0) logger.log(`Found ${ansis_default.bold(changedFile.map(relativeId).join(", "))} changed, rebuilding...`);
|
|
1556
1571
|
changedFile.length = 0;
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
1
|
+
const require_src = require('./shared/src-gD0LmYxq.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-DZ5uPSgP.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-9KWiC1Y_.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-CCkTRaSB.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-BzVT47Bj.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-B2f_h9DF.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-xzVj_WrD.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-BSeUgDdv.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-r9XO-GhB.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-DCz6MK3j.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, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-C8_hb_FH.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-gD0LmYxq.cjs');
|
|
3
3
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-DZ5uPSgP.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, 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-CCkTRaSB.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-BzVT47Bj.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -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, 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-B2f_h9DF.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-xzVj_WrD.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, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-BSeUgDdv.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-r9XO-GhB.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-CCkTRaSB.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-BzVT47Bj.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-B2f_h9DF.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-xzVj_WrD.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-gD0LmYxq.cjs');
|
|
2
2
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
require('./shared/parse-ast-index-DZ5uPSgP.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, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-CCkTRaSB.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-BzVT47Bj.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-B2f_h9DF.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-xzVj_WrD.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BufferEncoding, 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, RolldownDirectoryEntry, RolldownFileStats, RolldownFsModule, 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-BSeUgDdv.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-r9XO-GhB.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-gD0LmYxq.cjs');
|
|
3
3
|
require('./shared/dist-BVAp8sOm.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-DZ5uPSgP.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-BSeUgDdv.mjs";
|
|
2
2
|
import "./shared/dist-DvBwroyk.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-r9XO-GhB.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-CCkTRaSB.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-BzVT47Bj.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin-implementation.d.ts
|
|
5
5
|
type ParallelPluginImplementation = Plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding-
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding-B2f_h9DF.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-xzVj_WrD.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-DZ5uPSgP.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
|
|
@@ -1142,11 +1142,15 @@ declare class BindingWatcherEvent {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
interface BindingAssetPluginConfig {
|
|
1144
1144
|
isLib?: boolean;
|
|
1145
|
+
isSsr?: boolean;
|
|
1146
|
+
isWorker?: boolean;
|
|
1145
1147
|
urlBase?: string;
|
|
1146
1148
|
publicDir?: string;
|
|
1149
|
+
decodedBase?: string;
|
|
1147
1150
|
isSkipAssets?: boolean;
|
|
1148
1151
|
assetsInclude?: Array<BindingStringOrRegex>;
|
|
1149
|
-
assetInlineLimit?: number;
|
|
1152
|
+
assetInlineLimit?: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1153
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => MaybePromise<VoidNullable<string | BindingRenderBuiltUrlRet>>;
|
|
1150
1154
|
}
|
|
1151
1155
|
interface BindingAssetSource {
|
|
1152
1156
|
inner: string | Uint8Array;
|
|
@@ -1235,6 +1239,16 @@ interface BindingModules {
|
|
|
1235
1239
|
values: Array<BindingRenderedModule>;
|
|
1236
1240
|
keys: Array<string>;
|
|
1237
1241
|
}
|
|
1242
|
+
interface BindingRenderBuiltUrlConfig {
|
|
1243
|
+
ssr: boolean;
|
|
1244
|
+
type: 'asset' | 'public';
|
|
1245
|
+
hostId: string;
|
|
1246
|
+
hostType: 'js' | 'css' | 'html';
|
|
1247
|
+
}
|
|
1248
|
+
interface BindingRenderBuiltUrlRet {
|
|
1249
|
+
relative?: boolean;
|
|
1250
|
+
runtime?: string;
|
|
1251
|
+
}
|
|
1238
1252
|
interface BindingReplacePluginConfig {
|
|
1239
1253
|
values: Record<string, string>;
|
|
1240
1254
|
delimiters?: [string, string];
|
|
@@ -1142,11 +1142,15 @@ declare class BindingWatcherEvent {
|
|
|
1142
1142
|
}
|
|
1143
1143
|
interface BindingAssetPluginConfig {
|
|
1144
1144
|
isLib?: boolean;
|
|
1145
|
+
isSsr?: boolean;
|
|
1146
|
+
isWorker?: boolean;
|
|
1145
1147
|
urlBase?: string;
|
|
1146
1148
|
publicDir?: string;
|
|
1149
|
+
decodedBase?: string;
|
|
1147
1150
|
isSkipAssets?: boolean;
|
|
1148
1151
|
assetsInclude?: Array<BindingStringOrRegex>;
|
|
1149
|
-
assetInlineLimit?: number;
|
|
1152
|
+
assetInlineLimit?: number | ((file: string, content: Buffer) => boolean | undefined);
|
|
1153
|
+
renderBuiltUrl?: (filename: string, type: BindingRenderBuiltUrlConfig) => MaybePromise<VoidNullable<string | BindingRenderBuiltUrlRet>>;
|
|
1150
1154
|
}
|
|
1151
1155
|
interface BindingAssetSource {
|
|
1152
1156
|
inner: string | Uint8Array;
|
|
@@ -1235,6 +1239,16 @@ interface BindingModules {
|
|
|
1235
1239
|
values: Array<BindingRenderedModule>;
|
|
1236
1240
|
keys: Array<string>;
|
|
1237
1241
|
}
|
|
1242
|
+
interface BindingRenderBuiltUrlConfig {
|
|
1243
|
+
ssr: boolean;
|
|
1244
|
+
type: 'asset' | 'public';
|
|
1245
|
+
hostId: string;
|
|
1246
|
+
hostType: 'js' | 'css' | 'html';
|
|
1247
|
+
}
|
|
1248
|
+
interface BindingRenderBuiltUrlRet {
|
|
1249
|
+
relative?: boolean;
|
|
1250
|
+
runtime?: string;
|
|
1251
|
+
}
|
|
1238
1252
|
interface BindingReplacePluginConfig {
|
|
1239
1253
|
values: Record<string, string>;
|
|
1240
1254
|
delimiters?: [string, string];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-CCkTRaSB.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -141,10 +141,12 @@ type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd
|
|
|
141
141
|
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
142
142
|
type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
|
|
143
143
|
interface PreRenderedAsset {
|
|
144
|
+
type: "asset";
|
|
145
|
+
name?: string;
|
|
144
146
|
names: string[];
|
|
147
|
+
originalFileName?: string;
|
|
145
148
|
originalFileNames: string[];
|
|
146
149
|
source: string | Uint8Array;
|
|
147
|
-
type: "asset";
|
|
148
150
|
}
|
|
149
151
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
150
152
|
type GlobalsFunction = (name: string) => string;
|
|
@@ -542,6 +544,7 @@ interface NormalizedOutputOptions {
|
|
|
542
544
|
format: InternalModuleFormat;
|
|
543
545
|
exports: NonNullable<OutputOptions["exports"]>;
|
|
544
546
|
sourcemap: boolean | "inline" | "hidden";
|
|
547
|
+
sourcemapBaseUrl: string | undefined;
|
|
545
548
|
cssEntryFileNames: string | ChunkFileNamesFunction;
|
|
546
549
|
cssChunkFileNames: string | ChunkFileNamesFunction;
|
|
547
550
|
inlineDynamicImports: boolean;
|
|
@@ -708,7 +711,7 @@ interface EmittedAsset {
|
|
|
708
711
|
type: "asset";
|
|
709
712
|
name?: string;
|
|
710
713
|
fileName?: string;
|
|
711
|
-
originalFileName?: string
|
|
714
|
+
originalFileName?: string;
|
|
712
715
|
source: AssetSource;
|
|
713
716
|
}
|
|
714
717
|
interface EmittedChunk {
|
|
@@ -1048,6 +1051,7 @@ interface WatcherOptions {
|
|
|
1048
1051
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
1049
1052
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
1050
1053
|
onInvalidate?: (id: string) => void;
|
|
1054
|
+
clearScreen?: boolean;
|
|
1051
1055
|
}
|
|
1052
1056
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
1053
1057
|
type HmrOptions = boolean | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingBundlerImpl, BindingDynamicImportVarsPluginConfig, BindingHmrUpdate, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMinifyOptions, BindingModulePreloadPolyfillPluginConfig, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWasmHelperPluginConfig, BindingWatcherEvent, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-B2f_h9DF.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -141,10 +141,12 @@ type ModuleFormat = "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd
|
|
|
141
141
|
type AddonFunction = (chunk: RenderedChunk) => string | Promise<string>;
|
|
142
142
|
type ChunkFileNamesFunction = (chunkInfo: PreRenderedChunk) => string;
|
|
143
143
|
interface PreRenderedAsset {
|
|
144
|
+
type: "asset";
|
|
145
|
+
name?: string;
|
|
144
146
|
names: string[];
|
|
147
|
+
originalFileName?: string;
|
|
145
148
|
originalFileNames: string[];
|
|
146
149
|
source: string | Uint8Array;
|
|
147
|
-
type: "asset";
|
|
148
150
|
}
|
|
149
151
|
type AssetFileNamesFunction = (chunkInfo: PreRenderedAsset) => string;
|
|
150
152
|
type GlobalsFunction = (name: string) => string;
|
|
@@ -542,6 +544,7 @@ interface NormalizedOutputOptions {
|
|
|
542
544
|
format: InternalModuleFormat;
|
|
543
545
|
exports: NonNullable<OutputOptions["exports"]>;
|
|
544
546
|
sourcemap: boolean | "inline" | "hidden";
|
|
547
|
+
sourcemapBaseUrl: string | undefined;
|
|
545
548
|
cssEntryFileNames: string | ChunkFileNamesFunction;
|
|
546
549
|
cssChunkFileNames: string | ChunkFileNamesFunction;
|
|
547
550
|
inlineDynamicImports: boolean;
|
|
@@ -708,7 +711,7 @@ interface EmittedAsset {
|
|
|
708
711
|
type: "asset";
|
|
709
712
|
name?: string;
|
|
710
713
|
fileName?: string;
|
|
711
|
-
originalFileName?: string
|
|
714
|
+
originalFileName?: string;
|
|
712
715
|
source: AssetSource;
|
|
713
716
|
}
|
|
714
717
|
interface EmittedChunk {
|
|
@@ -1048,6 +1051,7 @@ interface WatcherOptions {
|
|
|
1048
1051
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
1049
1052
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
1050
1053
|
onInvalidate?: (id: string) => void;
|
|
1054
|
+
clearScreen?: boolean;
|
|
1051
1055
|
}
|
|
1052
1056
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
1053
1057
|
type HmrOptions = boolean | {
|
|
@@ -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-gD0LmYxq.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_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
|
|
@@ -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.
|
|
190
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.80.0/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.
|
|
189
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.80.0/node_modules/oxc-parser/wrap.mjs
|
|
190
190
|
function wrap$1(result) {
|
|
191
191
|
let program, module, comments, errors;
|
|
192
192
|
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-r9XO-GhB.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";
|
|
@@ -34,7 +34,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region package.json
|
|
37
|
-
var version = "1.0.0-beta.
|
|
37
|
+
var version = "1.0.0-beta.31";
|
|
38
38
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
@@ -442,7 +442,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
//#endregion
|
|
445
|
-
//#region ../../node_modules/.pnpm/valibot@1.1.0_typescript@5.
|
|
445
|
+
//#region ../../node_modules/.pnpm/valibot@1.1.0_typescript@5.9.2/node_modules/valibot/dist/index.js
|
|
446
446
|
var store$1;
|
|
447
447
|
/* @__NO_SIDE_EFFECTS__ */
|
|
448
448
|
function getGlobalConfig(config2) {
|
|
@@ -1431,7 +1431,7 @@ function safeParse(schema, input, config2) {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
//#endregion
|
|
1434
|
-
//#region ../../node_modules/.pnpm/@valibot+to-json-schema@1.3.0_valibot@1.1.0_typescript@5.
|
|
1434
|
+
//#region ../../node_modules/.pnpm/@valibot+to-json-schema@1.3.0_valibot@1.1.0_typescript@5.9.2_/node_modules/@valibot/to-json-schema/dist/index.js
|
|
1435
1435
|
/**
|
|
1436
1436
|
* Adds an error message to the errors array.
|
|
1437
1437
|
*
|
|
@@ -2040,7 +2040,9 @@ const WatchOptionsSchema = strictObject({
|
|
|
2040
2040
|
pollInterval: optional(number())
|
|
2041
2041
|
})), description("Notify options")),
|
|
2042
2042
|
skipWrite: pipe(optional(boolean()), description("Skip the bundle.write() step")),
|
|
2043
|
-
buildDelay: pipe(optional(number()), description("Throttle watch rebuilds"))
|
|
2043
|
+
buildDelay: pipe(optional(number()), description("Throttle watch rebuilds")),
|
|
2044
|
+
clearScreen: pipe(optional(boolean()), description("Whether to clear the screen when a rebuild is triggered")),
|
|
2045
|
+
onInvalidate: pipe(optional(pipe(function_(), args(tuple([string()])))), description("An optional function that will be called immediately every time a module changes that is part of the build."))
|
|
2044
2046
|
});
|
|
2045
2047
|
const ChecksOptionsSchema = strictObject({
|
|
2046
2048
|
circularDependency: pipe(optional(boolean()), description("Whether to emit warning when detecting circular dependency")),
|
|
@@ -2461,7 +2463,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2461
2463
|
}
|
|
2462
2464
|
|
|
2463
2465
|
//#endregion
|
|
2464
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2466
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2465
2467
|
function u$1(o$1, n$1, a$2) {
|
|
2466
2468
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2467
2469
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2471,7 +2473,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2471
2473
|
}
|
|
2472
2474
|
|
|
2473
2475
|
//#endregion
|
|
2474
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2476
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2475
2477
|
function u(r$1, n$1, o$1) {
|
|
2476
2478
|
let a$2 = r$1.length - n$1.length;
|
|
2477
2479
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2480,7 +2482,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2480
2482
|
}
|
|
2481
2483
|
|
|
2482
2484
|
//#endregion
|
|
2483
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2485
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2484
2486
|
function d(...r$1) {
|
|
2485
2487
|
return u(i, r$1);
|
|
2486
2488
|
}
|
|
@@ -2749,10 +2751,12 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2749
2751
|
};
|
|
2750
2752
|
getAssetFileNames(file) {
|
|
2751
2753
|
if (typeof this.outputOptions.assetFileNames === "function") return this.outputOptions.assetFileNames({
|
|
2754
|
+
type: "asset",
|
|
2755
|
+
name: file.name,
|
|
2752
2756
|
names: file.name ? [file.name] : [],
|
|
2757
|
+
originalFileName: file.originalFileName,
|
|
2753
2758
|
originalFileNames: file.originalFileName ? [file.originalFileName] : [],
|
|
2754
|
-
source: file.source
|
|
2755
|
-
type: "asset"
|
|
2759
|
+
source: file.source
|
|
2756
2760
|
});
|
|
2757
2761
|
}
|
|
2758
2762
|
getFileName(referenceId) {
|
|
@@ -3080,7 +3084,7 @@ function transformToRollupOutputChunk(bindingChunk, changed) {
|
|
|
3080
3084
|
cache[p$1] = value;
|
|
3081
3085
|
return value;
|
|
3082
3086
|
},
|
|
3083
|
-
set(
|
|
3087
|
+
set(_target, p$1, newValue) {
|
|
3084
3088
|
cache[p$1] = newValue;
|
|
3085
3089
|
changed?.updated.add(bindingChunk.fileName);
|
|
3086
3090
|
return true;
|
|
@@ -3111,7 +3115,7 @@ function transformToRollupOutputAsset(bindingAsset, changed) {
|
|
|
3111
3115
|
cache[p$1] = value;
|
|
3112
3116
|
return value;
|
|
3113
3117
|
},
|
|
3114
|
-
set(
|
|
3118
|
+
set(_target, p$1, newValue) {
|
|
3115
3119
|
cache[p$1] = newValue;
|
|
3116
3120
|
changed?.updated.add(bindingAsset.fileName);
|
|
3117
3121
|
return true;
|
|
@@ -3149,18 +3153,17 @@ function transformToOutputBundle(context, output, changed) {
|
|
|
3149
3153
|
});
|
|
3150
3154
|
}
|
|
3151
3155
|
function collectChangedBundle(changed, bundle) {
|
|
3152
|
-
const
|
|
3153
|
-
const chunks = [];
|
|
3156
|
+
const changes = {};
|
|
3154
3157
|
for (const key in bundle) {
|
|
3155
3158
|
if (changed.deleted.has(key) || !changed.updated.has(key)) continue;
|
|
3156
3159
|
const item = bundle[key];
|
|
3157
|
-
if (item.type === "asset")
|
|
3160
|
+
if (item.type === "asset") changes[key] = {
|
|
3158
3161
|
filename: item.fileName,
|
|
3159
3162
|
originalFileNames: item.originalFileNames,
|
|
3160
3163
|
source: bindingAssetSource(item.source),
|
|
3161
3164
|
names: item.names
|
|
3162
|
-
}
|
|
3163
|
-
else
|
|
3165
|
+
};
|
|
3166
|
+
else changes[key] = {
|
|
3164
3167
|
code: item.code,
|
|
3165
3168
|
filename: item.fileName,
|
|
3166
3169
|
name: item.name,
|
|
@@ -3175,12 +3178,11 @@ function collectChangedBundle(changed, bundle) {
|
|
|
3175
3178
|
map: bindingifySourcemap$1(item.map),
|
|
3176
3179
|
sourcemapFilename: item.sourcemapFileName || void 0,
|
|
3177
3180
|
preliminaryFilename: item.preliminaryFileName
|
|
3178
|
-
}
|
|
3181
|
+
};
|
|
3179
3182
|
}
|
|
3180
3183
|
return {
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
deleted: Array.from(changed.deleted)
|
|
3184
|
+
changes,
|
|
3185
|
+
deleted: changed.deleted
|
|
3184
3186
|
};
|
|
3185
3187
|
}
|
|
3186
3188
|
|
|
@@ -3663,7 +3665,9 @@ function bindingifySourcemapIgnoreList(sourcemapIgnoreList) {
|
|
|
3663
3665
|
function bindingifyAssetFilenames(assetFileNames) {
|
|
3664
3666
|
if (typeof assetFileNames === "function") return (asset) => {
|
|
3665
3667
|
return assetFileNames({
|
|
3668
|
+
name: asset.name,
|
|
3666
3669
|
names: asset.names,
|
|
3670
|
+
originalFileName: asset.originalFileName,
|
|
3667
3671
|
originalFileNames: asset.originalFileNames,
|
|
3668
3672
|
source: transformAssetSource(asset.source),
|
|
3669
3673
|
type: "asset"
|
|
@@ -3719,6 +3723,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3719
3723
|
get sourcemap() {
|
|
3720
3724
|
return this.inner.sourcemap;
|
|
3721
3725
|
}
|
|
3726
|
+
get sourcemapBaseUrl() {
|
|
3727
|
+
return this.inner.sourcemapBaseUrl ?? void 0;
|
|
3728
|
+
}
|
|
3722
3729
|
get cssEntryFileNames() {
|
|
3723
3730
|
return this.inner.cssEntryFilenames || this.outputOptions.cssEntryFileNames;
|
|
3724
3731
|
}
|
|
@@ -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-DZ5uPSgP.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"));
|
|
@@ -9,7 +9,7 @@ const node_os = require_chunk.__toESM(require("node:os"));
|
|
|
9
9
|
const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
|
|
10
10
|
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "1.0.0-beta.
|
|
12
|
+
var version = "1.0.0-beta.31";
|
|
13
13
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
14
14
|
|
|
15
15
|
//#endregion
|
|
@@ -417,7 +417,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
//#endregion
|
|
420
|
-
//#region ../../node_modules/.pnpm/valibot@1.1.0_typescript@5.
|
|
420
|
+
//#region ../../node_modules/.pnpm/valibot@1.1.0_typescript@5.9.2/node_modules/valibot/dist/index.js
|
|
421
421
|
var store$1;
|
|
422
422
|
/* @__NO_SIDE_EFFECTS__ */
|
|
423
423
|
function getGlobalConfig(config2) {
|
|
@@ -1406,7 +1406,7 @@ function safeParse(schema, input, config2) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
1408
1408
|
//#endregion
|
|
1409
|
-
//#region ../../node_modules/.pnpm/@valibot+to-json-schema@1.3.0_valibot@1.1.0_typescript@5.
|
|
1409
|
+
//#region ../../node_modules/.pnpm/@valibot+to-json-schema@1.3.0_valibot@1.1.0_typescript@5.9.2_/node_modules/@valibot/to-json-schema/dist/index.js
|
|
1410
1410
|
/**
|
|
1411
1411
|
* Adds an error message to the errors array.
|
|
1412
1412
|
*
|
|
@@ -2015,7 +2015,9 @@ const WatchOptionsSchema = strictObject({
|
|
|
2015
2015
|
pollInterval: optional(number())
|
|
2016
2016
|
})), description("Notify options")),
|
|
2017
2017
|
skipWrite: pipe(optional(boolean()), description("Skip the bundle.write() step")),
|
|
2018
|
-
buildDelay: pipe(optional(number()), description("Throttle watch rebuilds"))
|
|
2018
|
+
buildDelay: pipe(optional(number()), description("Throttle watch rebuilds")),
|
|
2019
|
+
clearScreen: pipe(optional(boolean()), description("Whether to clear the screen when a rebuild is triggered")),
|
|
2020
|
+
onInvalidate: pipe(optional(pipe(function_(), args(tuple([string()])))), description("An optional function that will be called immediately every time a module changes that is part of the build."))
|
|
2019
2021
|
});
|
|
2020
2022
|
const ChecksOptionsSchema = strictObject({
|
|
2021
2023
|
circularDependency: pipe(optional(boolean()), description("Whether to emit warning when detecting circular dependency")),
|
|
@@ -2436,7 +2438,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2436
2438
|
}
|
|
2437
2439
|
|
|
2438
2440
|
//#endregion
|
|
2439
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2441
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2440
2442
|
function u$1(o$1, n$1, a$2) {
|
|
2441
2443
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2442
2444
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2446,7 +2448,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2446
2448
|
}
|
|
2447
2449
|
|
|
2448
2450
|
//#endregion
|
|
2449
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2451
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2450
2452
|
function u(r$1, n$1, o$1) {
|
|
2451
2453
|
let a$2 = r$1.length - n$1.length;
|
|
2452
2454
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2455,7 +2457,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2455
2457
|
}
|
|
2456
2458
|
|
|
2457
2459
|
//#endregion
|
|
2458
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2460
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2459
2461
|
function d(...r$1) {
|
|
2460
2462
|
return u(i, r$1);
|
|
2461
2463
|
}
|
|
@@ -2724,10 +2726,12 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
2724
2726
|
};
|
|
2725
2727
|
getAssetFileNames(file) {
|
|
2726
2728
|
if (typeof this.outputOptions.assetFileNames === "function") return this.outputOptions.assetFileNames({
|
|
2729
|
+
type: "asset",
|
|
2730
|
+
name: file.name,
|
|
2727
2731
|
names: file.name ? [file.name] : [],
|
|
2732
|
+
originalFileName: file.originalFileName,
|
|
2728
2733
|
originalFileNames: file.originalFileName ? [file.originalFileName] : [],
|
|
2729
|
-
source: file.source
|
|
2730
|
-
type: "asset"
|
|
2734
|
+
source: file.source
|
|
2731
2735
|
});
|
|
2732
2736
|
}
|
|
2733
2737
|
getFileName(referenceId) {
|
|
@@ -3055,7 +3059,7 @@ function transformToRollupOutputChunk(bindingChunk, changed) {
|
|
|
3055
3059
|
cache[p$1] = value;
|
|
3056
3060
|
return value;
|
|
3057
3061
|
},
|
|
3058
|
-
set(
|
|
3062
|
+
set(_target, p$1, newValue) {
|
|
3059
3063
|
cache[p$1] = newValue;
|
|
3060
3064
|
changed?.updated.add(bindingChunk.fileName);
|
|
3061
3065
|
return true;
|
|
@@ -3086,7 +3090,7 @@ function transformToRollupOutputAsset(bindingAsset, changed) {
|
|
|
3086
3090
|
cache[p$1] = value;
|
|
3087
3091
|
return value;
|
|
3088
3092
|
},
|
|
3089
|
-
set(
|
|
3093
|
+
set(_target, p$1, newValue) {
|
|
3090
3094
|
cache[p$1] = newValue;
|
|
3091
3095
|
changed?.updated.add(bindingAsset.fileName);
|
|
3092
3096
|
return true;
|
|
@@ -3124,18 +3128,17 @@ function transformToOutputBundle(context, output, changed) {
|
|
|
3124
3128
|
});
|
|
3125
3129
|
}
|
|
3126
3130
|
function collectChangedBundle(changed, bundle) {
|
|
3127
|
-
const
|
|
3128
|
-
const chunks = [];
|
|
3131
|
+
const changes = {};
|
|
3129
3132
|
for (const key in bundle) {
|
|
3130
3133
|
if (changed.deleted.has(key) || !changed.updated.has(key)) continue;
|
|
3131
3134
|
const item = bundle[key];
|
|
3132
|
-
if (item.type === "asset")
|
|
3135
|
+
if (item.type === "asset") changes[key] = {
|
|
3133
3136
|
filename: item.fileName,
|
|
3134
3137
|
originalFileNames: item.originalFileNames,
|
|
3135
3138
|
source: bindingAssetSource(item.source),
|
|
3136
3139
|
names: item.names
|
|
3137
|
-
}
|
|
3138
|
-
else
|
|
3140
|
+
};
|
|
3141
|
+
else changes[key] = {
|
|
3139
3142
|
code: item.code,
|
|
3140
3143
|
filename: item.fileName,
|
|
3141
3144
|
name: item.name,
|
|
@@ -3150,12 +3153,11 @@ function collectChangedBundle(changed, bundle) {
|
|
|
3150
3153
|
map: bindingifySourcemap$1(item.map),
|
|
3151
3154
|
sourcemapFilename: item.sourcemapFileName || void 0,
|
|
3152
3155
|
preliminaryFilename: item.preliminaryFileName
|
|
3153
|
-
}
|
|
3156
|
+
};
|
|
3154
3157
|
}
|
|
3155
3158
|
return {
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
deleted: Array.from(changed.deleted)
|
|
3159
|
+
changes,
|
|
3160
|
+
deleted: changed.deleted
|
|
3159
3161
|
};
|
|
3160
3162
|
}
|
|
3161
3163
|
|
|
@@ -3638,7 +3640,9 @@ function bindingifySourcemapIgnoreList(sourcemapIgnoreList) {
|
|
|
3638
3640
|
function bindingifyAssetFilenames(assetFileNames) {
|
|
3639
3641
|
if (typeof assetFileNames === "function") return (asset) => {
|
|
3640
3642
|
return assetFileNames({
|
|
3643
|
+
name: asset.name,
|
|
3641
3644
|
names: asset.names,
|
|
3645
|
+
originalFileName: asset.originalFileName,
|
|
3642
3646
|
originalFileNames: asset.originalFileNames,
|
|
3643
3647
|
source: transformAssetSource(asset.source),
|
|
3644
3648
|
type: "asset"
|
|
@@ -3694,6 +3698,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3694
3698
|
get sourcemap() {
|
|
3695
3699
|
return this.inner.sourcemap;
|
|
3696
3700
|
}
|
|
3701
|
+
get sourcemapBaseUrl() {
|
|
3702
|
+
return this.inner.sourcemapBaseUrl ?? void 0;
|
|
3703
|
+
}
|
|
3697
3704
|
get cssEntryFileNames() {
|
|
3698
3705
|
return this.inner.cssEntryFilenames || this.outputOptions.cssEntryFileNames;
|
|
3699
3706
|
}
|
|
@@ -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.31";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/utils/normalize-string-or-regex.ts
|
|
@@ -1095,7 +1095,7 @@ function getSortedPlugins(hookName, plugins) {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
1097
|
//#endregion
|
|
1098
|
-
//#region ../../node_modules/.pnpm/valibot@1.1.0_typescript@5.
|
|
1098
|
+
//#region ../../node_modules/.pnpm/valibot@1.1.0_typescript@5.9.2/node_modules/valibot/dist/index.js
|
|
1099
1099
|
var store;
|
|
1100
1100
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1101
1101
|
function getGlobalConfig(config2) {
|
|
@@ -2277,7 +2277,9 @@ const WatchOptionsSchema = strictObject({
|
|
|
2277
2277
|
pollInterval: optional(number())
|
|
2278
2278
|
})), description("Notify options")),
|
|
2279
2279
|
skipWrite: pipe(optional(boolean()), description("Skip the bundle.write() step")),
|
|
2280
|
-
buildDelay: pipe(optional(number()), description("Throttle watch rebuilds"))
|
|
2280
|
+
buildDelay: pipe(optional(number()), description("Throttle watch rebuilds")),
|
|
2281
|
+
clearScreen: pipe(optional(boolean()), description("Whether to clear the screen when a rebuild is triggered")),
|
|
2282
|
+
onInvalidate: pipe(optional(pipe(function_(), args(tuple([string()])))), description("An optional function that will be called immediately every time a module changes that is part of the build."))
|
|
2281
2283
|
});
|
|
2282
2284
|
const ChecksOptionsSchema = strictObject({
|
|
2283
2285
|
circularDependency: pipe(optional(boolean()), description("Whether to emit warning when detecting circular dependency")),
|
|
@@ -2766,7 +2768,7 @@ function exclude(expr) {
|
|
|
2766
2768
|
}
|
|
2767
2769
|
|
|
2768
2770
|
//#endregion
|
|
2769
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2771
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2770
2772
|
function u$1(o$1, n$1, a$2) {
|
|
2771
2773
|
let t$1 = (r$1) => o$1(r$1, ...n$1);
|
|
2772
2774
|
return a$2 === void 0 ? t$1 : Object.assign(t$1, {
|
|
@@ -2776,7 +2778,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2776
2778
|
}
|
|
2777
2779
|
|
|
2778
2780
|
//#endregion
|
|
2779
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2781
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2780
2782
|
function u(r$1, n$1, o$1) {
|
|
2781
2783
|
let a$2 = r$1.length - n$1.length;
|
|
2782
2784
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2785,7 +2787,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2785
2787
|
}
|
|
2786
2788
|
|
|
2787
2789
|
//#endregion
|
|
2788
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2790
|
+
//#region ../../node_modules/.pnpm/remeda@2.28.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2789
2791
|
function d(...r$1) {
|
|
2790
2792
|
return u(i, r$1);
|
|
2791
2793
|
}
|
|
@@ -2945,7 +2947,7 @@ function bindingPluginOrder(order) {
|
|
|
2945
2947
|
}
|
|
2946
2948
|
|
|
2947
2949
|
//#endregion
|
|
2948
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2950
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.80.0/node_modules/oxc-parser/wrap.mjs
|
|
2949
2951
|
function wrap$1(result) {
|
|
2950
2952
|
let program, module$1, comments, errors;
|
|
2951
2953
|
return {
|
|
@@ -3130,10 +3132,12 @@ var PluginContextImpl = class extends MinimalPluginContextImpl {
|
|
|
3130
3132
|
};
|
|
3131
3133
|
getAssetFileNames(file) {
|
|
3132
3134
|
if (typeof this.outputOptions.assetFileNames === "function") return this.outputOptions.assetFileNames({
|
|
3135
|
+
type: "asset",
|
|
3136
|
+
name: file.name,
|
|
3133
3137
|
names: file.name ? [file.name] : [],
|
|
3138
|
+
originalFileName: file.originalFileName,
|
|
3134
3139
|
originalFileNames: file.originalFileName ? [file.originalFileName] : [],
|
|
3135
|
-
source: file.source
|
|
3136
|
-
type: "asset"
|
|
3140
|
+
source: file.source
|
|
3137
3141
|
});
|
|
3138
3142
|
}
|
|
3139
3143
|
getFileName(referenceId) {
|
|
@@ -3461,7 +3465,7 @@ function transformToRollupOutputChunk(bindingChunk, changed) {
|
|
|
3461
3465
|
cache[p$1] = value;
|
|
3462
3466
|
return value;
|
|
3463
3467
|
},
|
|
3464
|
-
set(
|
|
3468
|
+
set(_target, p$1, newValue) {
|
|
3465
3469
|
cache[p$1] = newValue;
|
|
3466
3470
|
changed?.updated.add(bindingChunk.fileName);
|
|
3467
3471
|
return true;
|
|
@@ -3492,7 +3496,7 @@ function transformToRollupOutputAsset(bindingAsset, changed) {
|
|
|
3492
3496
|
cache[p$1] = value;
|
|
3493
3497
|
return value;
|
|
3494
3498
|
},
|
|
3495
|
-
set(
|
|
3499
|
+
set(_target, p$1, newValue) {
|
|
3496
3500
|
cache[p$1] = newValue;
|
|
3497
3501
|
changed?.updated.add(bindingAsset.fileName);
|
|
3498
3502
|
return true;
|
|
@@ -3530,18 +3534,17 @@ function transformToOutputBundle(context, output, changed) {
|
|
|
3530
3534
|
});
|
|
3531
3535
|
}
|
|
3532
3536
|
function collectChangedBundle(changed, bundle) {
|
|
3533
|
-
const
|
|
3534
|
-
const chunks = [];
|
|
3537
|
+
const changes = {};
|
|
3535
3538
|
for (const key in bundle) {
|
|
3536
3539
|
if (changed.deleted.has(key) || !changed.updated.has(key)) continue;
|
|
3537
3540
|
const item = bundle[key];
|
|
3538
|
-
if (item.type === "asset")
|
|
3541
|
+
if (item.type === "asset") changes[key] = {
|
|
3539
3542
|
filename: item.fileName,
|
|
3540
3543
|
originalFileNames: item.originalFileNames,
|
|
3541
3544
|
source: bindingAssetSource(item.source),
|
|
3542
3545
|
names: item.names
|
|
3543
|
-
}
|
|
3544
|
-
else
|
|
3546
|
+
};
|
|
3547
|
+
else changes[key] = {
|
|
3545
3548
|
code: item.code,
|
|
3546
3549
|
filename: item.fileName,
|
|
3547
3550
|
name: item.name,
|
|
@@ -3556,12 +3559,11 @@ function collectChangedBundle(changed, bundle) {
|
|
|
3556
3559
|
map: bindingifySourcemap$1(item.map),
|
|
3557
3560
|
sourcemapFilename: item.sourcemapFileName || void 0,
|
|
3558
3561
|
preliminaryFilename: item.preliminaryFileName
|
|
3559
|
-
}
|
|
3562
|
+
};
|
|
3560
3563
|
}
|
|
3561
3564
|
return {
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
deleted: Array.from(changed.deleted)
|
|
3565
|
+
changes,
|
|
3566
|
+
deleted: changed.deleted
|
|
3565
3567
|
};
|
|
3566
3568
|
}
|
|
3567
3569
|
|
|
@@ -4044,7 +4046,9 @@ function bindingifySourcemapIgnoreList(sourcemapIgnoreList) {
|
|
|
4044
4046
|
function bindingifyAssetFilenames(assetFileNames) {
|
|
4045
4047
|
if (typeof assetFileNames === "function") return (asset) => {
|
|
4046
4048
|
return assetFileNames({
|
|
4049
|
+
name: asset.name,
|
|
4047
4050
|
names: asset.names,
|
|
4051
|
+
originalFileName: asset.originalFileName,
|
|
4048
4052
|
originalFileNames: asset.originalFileNames,
|
|
4049
4053
|
source: transformAssetSource(asset.source),
|
|
4050
4054
|
type: "asset"
|
|
@@ -4100,6 +4104,9 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
4100
4104
|
get sourcemap() {
|
|
4101
4105
|
return this.inner.sourcemap;
|
|
4102
4106
|
}
|
|
4107
|
+
get sourcemapBaseUrl() {
|
|
4108
|
+
return this.inner.sourcemapBaseUrl ?? void 0;
|
|
4109
|
+
}
|
|
4103
4110
|
get cssEntryFileNames() {
|
|
4104
4111
|
return this.inner.cssEntryFilenames || this.outputOptions.cssEntryFileNames;
|
|
4105
4112
|
}
|
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.31",
|
|
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": "^1.0.0",
|
|
59
|
-
"@oxc-project/runtime": "=0.
|
|
59
|
+
"@oxc-project/runtime": "=0.80.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "pnpm run build:debug",
|