@rolldown/browser 1.0.0-beta.14-commit.12b8061 → 1.0.0-beta.16
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 +7 -7
- package/dist/cli.mjs +7 -7
- package/dist/config.cjs +3 -3
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +4 -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 +52 -0
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +5 -1
- 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.wasi-browser.js +1 -0
- package/dist/rolldown-binding.wasi.cjs +1 -0
- package/dist/rolldown-binding.wasm32-wasi.wasm +0 -0
- package/dist/shared/{binding-CZdobbZA.d.cts → binding--Y47JZSL.d.cts} +10 -2
- package/dist/shared/{binding-Dze8QVpf.d.mts → binding-C_9au5Eg.d.mts} +10 -2
- package/dist/shared/{define-config-BE-fkZNW.d.cts → define-config-CAyC9-af.d.cts} +5 -4
- package/dist/shared/{define-config-CnVvtpOm.d.mts → define-config-CFPAmfEQ.d.mts} +5 -4
- package/dist/shared/{load-config-BUkt64Ft.mjs → load-config-CHic6lPj.mjs} +1 -1
- package/dist/shared/{load-config-Dtt_VFiY.cjs → load-config-CKPqlbjH.cjs} +1 -1
- package/dist/shared/{parse-ast-index-IepkD-LB.mjs → parse-ast-index-BjSB6ZTb.mjs} +2 -2
- package/dist/shared/{parse-ast-index-5MuKtufe.cjs → parse-ast-index-X4pECV1E.cjs} +1 -1
- package/dist/shared/{prompt-jPdbaKAj.mjs → prompt-C14hEutp.mjs} +2 -2
- package/dist/shared/{prompt-8EeOGx1_.cjs → prompt-QNI93ne7.cjs} +2 -2
- package/dist/shared/{src-CKQe7Qnf.mjs → src-C_ps7iS5.mjs} +35 -21
- package/dist/shared/{src-B_I243k1.cjs → src-Cw7MpyXh.cjs} +26 -13
- package/dist/{src-1bRy3Pay.js → src-UXJBOke0.js} +27 -14
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_chunk = require('./shared/chunk-DDkG_k5U.cjs');
|
|
2
|
-
const require_src = require('./shared/src-
|
|
2
|
+
const require_src = require('./shared/src-Cw7MpyXh.cjs');
|
|
3
3
|
const require_dist = require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
4
|
+
require('./shared/parse-ast-index-X4pECV1E.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-CKPqlbjH.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"));
|
|
@@ -932,7 +932,7 @@ ${indent}`);
|
|
|
932
932
|
line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
|
|
933
933
|
line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
|
|
934
934
|
if (logObj.type === "trace") {
|
|
935
|
-
const _err = new Error("Trace: " + logObj.message);
|
|
935
|
+
const _err = /* @__PURE__ */ new Error("Trace: " + logObj.message);
|
|
936
936
|
line += this.formatStack(_err.stack || "", _err.message);
|
|
937
937
|
}
|
|
938
938
|
return isBadge ? "\n" + line + "\n" : line;
|
|
@@ -955,7 +955,7 @@ function createConsola(options$1 = {}) {
|
|
|
955
955
|
defaults: { level },
|
|
956
956
|
stdout: process.stdout,
|
|
957
957
|
stderr: process.stderr,
|
|
958
|
-
prompt: (...args) => Promise.resolve().then(() => require("./shared/prompt-
|
|
958
|
+
prompt: (...args) => Promise.resolve().then(() => require("./shared/prompt-QNI93ne7.cjs")).then((m) => m.prompt(...args)),
|
|
959
959
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
960
960
|
...options$1
|
|
961
961
|
});
|
|
@@ -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.
|
|
1427
|
-
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1426
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.73.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1427
|
+
var require_usingCtx = require_chunk.__commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.73.0/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,8 +1,8 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_ansis, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-
|
|
2
|
+
import { ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, init_ansis, init_rolldown, init_validator, init_watch, rolldown, validateCliOptions, version, watch } from "./shared/src-C_ps7iS5.mjs";
|
|
3
3
|
import { arraify, init_misc } from "./shared/dist-DeDsdiza.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
5
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
4
|
+
import "./shared/parse-ast-index-BjSB6ZTb.mjs";
|
|
5
|
+
import { init_load_config, loadConfig } from "./shared/load-config-CHic6lPj.mjs";
|
|
6
6
|
import path, { sep } from "node:path";
|
|
7
7
|
import process$1 from "node:process";
|
|
8
8
|
import { formatWithOptions, parseArgs } from "node:util";
|
|
@@ -758,7 +758,7 @@ function createConsola(options$1 = {}) {
|
|
|
758
758
|
defaults: { level },
|
|
759
759
|
stdout: process.stdout,
|
|
760
760
|
stderr: process.stderr,
|
|
761
|
-
prompt: (...args) => import("./shared/prompt-
|
|
761
|
+
prompt: (...args) => import("./shared/prompt-C14hEutp.mjs").then((m) => m.prompt(...args)),
|
|
762
762
|
reporters: options$1.reporters || [options$1.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()],
|
|
763
763
|
...options$1
|
|
764
764
|
});
|
|
@@ -974,7 +974,7 @@ ${indent}`);
|
|
|
974
974
|
line = space > 0 && (opts.columns || 0) >= 80 ? left + " ".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : "") + left;
|
|
975
975
|
line += characterFormat(additional.length > 0 ? "\n" + additional.join("\n") : "");
|
|
976
976
|
if (logObj.type === "trace") {
|
|
977
|
-
const _err = new Error("Trace: " + logObj.message);
|
|
977
|
+
const _err = /* @__PURE__ */ new Error("Trace: " + logObj.message);
|
|
978
978
|
line += this.formatStack(_err.stack || "", _err.message);
|
|
979
979
|
}
|
|
980
980
|
return isBadge ? "\n" + line + "\n" : line;
|
|
@@ -1439,8 +1439,8 @@ var init_mjs = __esm({ "../../node_modules/.pnpm/signal-exit@4.1.0/node_modules/
|
|
|
1439
1439
|
} });
|
|
1440
1440
|
|
|
1441
1441
|
//#endregion
|
|
1442
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1443
|
-
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
1442
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.73.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1443
|
+
var require_usingCtx = __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.73.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(exports, module) {
|
|
1444
1444
|
function _usingCtx() {
|
|
1445
1445
|
var r$1 = "function" == typeof SuppressedError ? SuppressedError : function(r$2, e$1) {
|
|
1446
1446
|
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-Cw7MpyXh.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
3
|
+
require('./shared/parse-ast-index-X4pECV1E.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-CKPqlbjH.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--Y47JZSL.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-CAyC9-af.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-C_9au5Eg.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-CFPAmfEQ.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,9 +1,10 @@
|
|
|
1
|
-
import { defineConfig, version } from "./shared/src-
|
|
1
|
+
import { defineConfig, init_define_config, version } from "./shared/src-C_ps7iS5.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
4
|
-
import { init_load_config, loadConfig } from "./shared/load-config-
|
|
3
|
+
import "./shared/parse-ast-index-BjSB6ZTb.mjs";
|
|
4
|
+
import { init_load_config, loadConfig } from "./shared/load-config-CHic6lPj.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/config.ts
|
|
7
|
+
init_define_config();
|
|
7
8
|
init_load_config();
|
|
8
9
|
const VERSION = version;
|
|
9
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./src-UXJBOke0.js";
|
|
2
2
|
import { 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-Cw7MpyXh.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-X4pECV1E.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, RolldownPlugin, 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--Y47JZSL.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-CAyC9-af.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, RolldownPlugin, 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-C_9au5Eg.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, RolldownPlugin, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-CFPAmfEQ.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/api/experimental.d.ts
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_driver, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_driver, init_transform_to_rollup_output, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-C_ps7iS5.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-BjSB6ZTb.mjs";
|
|
4
4
|
import { ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare class DevRuntime {
|
|
2
|
+
/**
|
|
3
|
+
* @type {Record<string, { exports: any }>}
|
|
4
|
+
*/
|
|
5
|
+
modules: Record<string, {
|
|
6
|
+
exports: any;
|
|
7
|
+
}>;
|
|
8
|
+
/**
|
|
9
|
+
* @param {string} _moduleId
|
|
10
|
+
*/
|
|
11
|
+
createModuleHotContext(_moduleId: string): void;
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param {string[]} _boundaries
|
|
15
|
+
*/
|
|
16
|
+
applyUpdates(_boundaries: string[]): void;
|
|
17
|
+
/**
|
|
18
|
+
* @param {string} id
|
|
19
|
+
* @param {{ exports: any }} module
|
|
20
|
+
*/
|
|
21
|
+
registerModule(id: string, module: {
|
|
22
|
+
exports: any;
|
|
23
|
+
}): void;
|
|
24
|
+
/**
|
|
25
|
+
* @param {string} id
|
|
26
|
+
*/
|
|
27
|
+
loadExports(id: string): any;
|
|
28
|
+
/**
|
|
29
|
+
* __esmMin
|
|
30
|
+
*
|
|
31
|
+
* @type {<T>(fn: any, res: T) => () => T}
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
createEsmInitializer: <T>(fn: any, res: T) => () => T;
|
|
35
|
+
/**
|
|
36
|
+
* __commonJSMin
|
|
37
|
+
*
|
|
38
|
+
* @type {<T extends { exports: any }>(cb: any, mod: { exports: any }) => () => T}
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
createCjsInitializer: <T extends {
|
|
42
|
+
exports: any;
|
|
43
|
+
}>(cb: any, mod: {
|
|
44
|
+
exports: any;
|
|
45
|
+
}) => () => T;
|
|
46
|
+
/** @internal */
|
|
47
|
+
__toESM: any;
|
|
48
|
+
/** @internal */
|
|
49
|
+
__toCommonJS: any;
|
|
50
|
+
/** @internal */
|
|
51
|
+
__export: any;
|
|
52
|
+
}
|
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--Y47JZSL.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-CAyC9-af.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-C_9au5Eg.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-CFPAmfEQ.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/filter-index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { and, arraify, code, exclude, id, include, init_misc, isPromiseLike, moduleType, not, or, queries, query } from "./shared/dist-DeDsdiza.mjs";
|
|
1
|
+
import { and, arraify, code, exclude, id, include, init_dist, init_misc, isPromiseLike, moduleType, not, or, queries, query } from "./shared/dist-DeDsdiza.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/with-filter.ts
|
|
4
4
|
init_misc();
|
|
@@ -40,5 +40,9 @@ function findMatchedFilterObject(pluginName, overrideFilterObjectList) {
|
|
|
40
40
|
return -1;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/filter-index.ts
|
|
45
|
+
init_dist();
|
|
46
|
+
|
|
43
47
|
//#endregion
|
|
44
48
|
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-Cw7MpyXh.cjs');
|
|
2
2
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
3
|
-
require('./shared/parse-ast-index-
|
|
3
|
+
require('./shared/parse-ast-index-X4pECV1E.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, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding--Y47JZSL.cjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-CAyC9-af.cjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { PreRenderedChunk } from "./shared/binding-
|
|
2
|
-
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-
|
|
1
|
+
import { PreRenderedChunk } from "./shared/binding-C_9au5Eg.mjs";
|
|
2
|
+
import { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch } from "./shared/define-config-CFPAmfEQ.mjs";
|
|
3
3
|
export { AddonFunction, AsyncPluginHooks, BuildOptions, ChunkFileNamesFunction, ConfigExport, CustomPluginOptions, DefineParallelPluginResult, EmittedAsset, EmittedFile, ExistingRawSourceMap, ExternalOption, FunctionPluginHooks, GeneralHookFilter, GetModuleInfo, GlobalsFunction, HookFilter, HookFilterExtension, ImportKind, InputOption, InputOptions, InternalModuleFormat, LoadResult, LogLevel, LogLevelOption, LogOrStringHandler, LoggingFunction, MinifyOptions, MinimalPluginContext, ModuleFormat, ModuleInfo, ModuleOptions, ModuleType, ModuleTypeFilter, ModuleTypes, NormalizedInputOptions, NormalizedOutputOptions, ObjectHook, OutputAsset, OutputBundle, OutputChunk, OutputOptions, ParallelPluginHooks, PartialNull, PartialResolvedId, Plugin, PluginContext, PluginContextMeta, PreRenderedAsset, PreRenderedChunk, RenderedChunk, RenderedModule, ResolveIdExtraOptions, ResolveIdResult, ResolvedId, RolldownBuild, RolldownOptions, RolldownOutput, RolldownPlugin, RolldownPluginOption, RolldownWatcher, RolldownWatcherEvent, RollupError, RollupLog, RollupLogWithString, SourceDescription, SourceMap, SourceMapInput, SourcemapIgnoreListOption, TransformPluginContext, TransformResult, TreeshakingOptions, VERSION, WarningHandlerWithDefault, WatchOptions, WatcherOptions, build, defineConfig, rolldown, watch };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-
|
|
1
|
+
import { VERSION, build, defineConfig, init_src, rolldown, watch } from "./shared/src-C_ps7iS5.mjs";
|
|
2
2
|
import "./shared/dist-DeDsdiza.mjs";
|
|
3
|
-
import "./shared/parse-ast-index-
|
|
3
|
+
import "./shared/parse-ast-index-BjSB6ZTb.mjs";
|
|
4
4
|
|
|
5
5
|
init_src();
|
|
6
6
|
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-Cw7MpyXh.cjs');
|
|
3
3
|
require('./shared/dist-BMVjvV-v.cjs');
|
|
4
|
-
require('./shared/parse-ast-index-
|
|
4
|
+
require('./shared/parse-ast-index-X4pECV1E.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,7 +1,7 @@
|
|
|
1
1
|
import { __commonJS } from "./shared/chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-
|
|
2
|
+
import { PluginContextData, bindingifyPlugin, init_bindingify_plugin, init_plugin_context_data } from "./shared/src-C_ps7iS5.mjs";
|
|
3
3
|
import "./shared/dist-DeDsdiza.mjs";
|
|
4
|
-
import "./shared/parse-ast-index-
|
|
4
|
+
import "./shared/parse-ast-index-BjSB6ZTb.mjs";
|
|
5
5
|
import { registerPlugins } from "./rolldown-binding.wasi.cjs";
|
|
6
6
|
import { parentPort, workerData } from "node:worker_threads";
|
|
7
7
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./shared/binding
|
|
2
|
-
import { MaybePromise, Plugin } from "./shared/define-config-
|
|
1
|
+
import "./shared/binding--Y47JZSL.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-CAyC9-af.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-C_9au5Eg.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-CFPAmfEQ.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-X4pECV1E.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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-
|
|
1
|
+
import { init_parse_ast_index, parseAst, parseAstAsync } from "./shared/parse-ast-index-BjSB6ZTb.mjs";
|
|
2
2
|
|
|
3
3
|
init_parse_ast_index();
|
|
4
4
|
export { parseAst, parseAstAsync };
|
|
@@ -101,6 +101,7 @@ export const BindingWatcherChangeData = __napiModule.exports.BindingWatcherChang
|
|
|
101
101
|
export const BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent
|
|
102
102
|
export const Bundler = __napiModule.exports.Bundler
|
|
103
103
|
export const ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry
|
|
104
|
+
export const BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
|
|
104
105
|
export const BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
|
|
105
106
|
export const BindingHookSideEffects = __napiModule.exports.BindingHookSideEffects
|
|
106
107
|
export const BindingJsx = __napiModule.exports.BindingJsx
|
|
@@ -125,6 +125,7 @@ module.exports.BindingWatcherChangeData = __napiModule.exports.BindingWatcherCha
|
|
|
125
125
|
module.exports.BindingWatcherEvent = __napiModule.exports.BindingWatcherEvent
|
|
126
126
|
module.exports.Bundler = __napiModule.exports.Bundler
|
|
127
127
|
module.exports.ParallelJsPluginRegistry = __napiModule.exports.ParallelJsPluginRegistry
|
|
128
|
+
module.exports.BindingAttachDebugInfo = __napiModule.exports.BindingAttachDebugInfo
|
|
128
129
|
module.exports.BindingBuiltinPluginName = __napiModule.exports.BindingBuiltinPluginName
|
|
129
130
|
module.exports.BindingHookSideEffects = __napiModule.exports.BindingHookSideEffects
|
|
130
131
|
module.exports.BindingJsx = __napiModule.exports.BindingJsx
|
|
Binary file
|
|
@@ -1006,6 +1006,9 @@ declare class BindingNormalizedOptions {
|
|
|
1006
1006
|
get minify(): false | BindingMinifyOptions;
|
|
1007
1007
|
get polyfillRequire(): boolean;
|
|
1008
1008
|
get legalComments(): 'none' | 'inline';
|
|
1009
|
+
get preserveModules(): boolean;
|
|
1010
|
+
get preserveModulesRoot(): string | undefined;
|
|
1011
|
+
get virtualDirname(): string;
|
|
1009
1012
|
}
|
|
1010
1013
|
declare class BindingOutputAsset {
|
|
1011
1014
|
get fileName(): string;
|
|
@@ -1117,6 +1120,11 @@ interface BindingAssetPluginConfig {
|
|
|
1117
1120
|
interface BindingAssetSource {
|
|
1118
1121
|
inner: string | Uint8Array;
|
|
1119
1122
|
}
|
|
1123
|
+
declare enum BindingAttachDebugInfo {
|
|
1124
|
+
None = 0,
|
|
1125
|
+
Simple = 1,
|
|
1126
|
+
Full = 2,
|
|
1127
|
+
}
|
|
1120
1128
|
interface BindingBuildImportAnalysisPluginConfig {
|
|
1121
1129
|
preloadCode: string;
|
|
1122
1130
|
insertPreload: boolean;
|
|
@@ -1184,7 +1192,7 @@ interface BindingExperimentalOptions {
|
|
|
1184
1192
|
viteMode?: boolean;
|
|
1185
1193
|
resolveNewUrlToAsset?: boolean;
|
|
1186
1194
|
hmr?: BindingExperimentalHmrOptions;
|
|
1187
|
-
attachDebugInfo?:
|
|
1195
|
+
attachDebugInfo?: BindingAttachDebugInfo;
|
|
1188
1196
|
}
|
|
1189
1197
|
interface BindingFilterToken {
|
|
1190
1198
|
kind: FilterTokenKind;
|
|
@@ -1645,4 +1653,4 @@ interface PreRenderedChunk {
|
|
|
1645
1653
|
exports: Array<string>;
|
|
1646
1654
|
}
|
|
1647
1655
|
//#endregion
|
|
1648
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1656
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -1006,6 +1006,9 @@ declare class BindingNormalizedOptions {
|
|
|
1006
1006
|
get minify(): false | BindingMinifyOptions;
|
|
1007
1007
|
get polyfillRequire(): boolean;
|
|
1008
1008
|
get legalComments(): 'none' | 'inline';
|
|
1009
|
+
get preserveModules(): boolean;
|
|
1010
|
+
get preserveModulesRoot(): string | undefined;
|
|
1011
|
+
get virtualDirname(): string;
|
|
1009
1012
|
}
|
|
1010
1013
|
declare class BindingOutputAsset {
|
|
1011
1014
|
get fileName(): string;
|
|
@@ -1117,6 +1120,11 @@ interface BindingAssetPluginConfig {
|
|
|
1117
1120
|
interface BindingAssetSource {
|
|
1118
1121
|
inner: string | Uint8Array;
|
|
1119
1122
|
}
|
|
1123
|
+
declare enum BindingAttachDebugInfo {
|
|
1124
|
+
None = 0,
|
|
1125
|
+
Simple = 1,
|
|
1126
|
+
Full = 2,
|
|
1127
|
+
}
|
|
1120
1128
|
interface BindingBuildImportAnalysisPluginConfig {
|
|
1121
1129
|
preloadCode: string;
|
|
1122
1130
|
insertPreload: boolean;
|
|
@@ -1184,7 +1192,7 @@ interface BindingExperimentalOptions {
|
|
|
1184
1192
|
viteMode?: boolean;
|
|
1185
1193
|
resolveNewUrlToAsset?: boolean;
|
|
1186
1194
|
hmr?: BindingExperimentalHmrOptions;
|
|
1187
|
-
attachDebugInfo?:
|
|
1195
|
+
attachDebugInfo?: BindingAttachDebugInfo;
|
|
1188
1196
|
}
|
|
1189
1197
|
interface BindingFilterToken {
|
|
1190
1198
|
kind: FilterTokenKind;
|
|
@@ -1645,4 +1653,4 @@ interface PreRenderedChunk {
|
|
|
1645
1653
|
exports: Array<string>;
|
|
1646
1654
|
}
|
|
1647
1655
|
//#endregion
|
|
1648
|
-
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1656
|
+
export { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReplacePluginConfig, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingTransformPluginConfig, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, IsolatedDeclarationsOptions, IsolatedDeclarationsResult, NapiResolveOptions, ParseResult, ParserOptions, PreRenderedChunk, ResolveResult, ResolverFactory, TransformOptions, TransformResult, isolatedDeclaration, moduleRunnerTransform, transform };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding--Y47JZSL.cjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -309,8 +309,8 @@ declare class RolldownBuild {
|
|
|
309
309
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
310
310
|
close(): Promise<void>;
|
|
311
311
|
[Symbol.asyncDispose](): Promise<void>;
|
|
312
|
-
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutputPatch
|
|
313
|
-
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<
|
|
312
|
+
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutputPatch>;
|
|
313
|
+
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutputPatch>;
|
|
314
314
|
// TODO(underfin)
|
|
315
315
|
// The `watchFiles` method returns a promise, but Rollup does not.
|
|
316
316
|
// Converting it to a synchronous API might cause a deadlock if the user calls `write` and `watchFiles` simultaneously.
|
|
@@ -878,6 +878,7 @@ type HmrOptions = boolean | {
|
|
|
878
878
|
port?: number;
|
|
879
879
|
implement?: string;
|
|
880
880
|
};
|
|
881
|
+
type AttachDebugOptions = "none" | "simple" | "full";
|
|
881
882
|
interface RollupJsxOptions {
|
|
882
883
|
mode?: "classic" | "automatic" | "preserve";
|
|
883
884
|
factory?: string;
|
|
@@ -936,7 +937,7 @@ interface InputOptions {
|
|
|
936
937
|
viteMode?: boolean;
|
|
937
938
|
resolveNewUrlToAsset?: boolean;
|
|
938
939
|
hmr?: HmrOptions;
|
|
939
|
-
attachDebugInfo?:
|
|
940
|
+
attachDebugInfo?: AttachDebugOptions;
|
|
940
941
|
};
|
|
941
942
|
/**
|
|
942
943
|
* Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig,
|
|
1
|
+
import { BindingAssetPluginConfig, BindingBuildImportAnalysisPluginConfig, BindingBuiltinPluginName, BindingDynamicImportVarsPluginConfig, BindingHmrOutputPatch, BindingHookResolveIdExtraArgs, BindingImportGlobPluginConfig, BindingIsolatedDeclarationPluginConfig, BindingJsonPluginConfig, BindingManifestPluginConfig, BindingMfManifest, BindingMinifyOptions, BindingModuleFederationPluginOption, BindingModulePreloadPolyfillPluginConfig, BindingRemote, BindingRenderedChunk, BindingReporterPluginConfig, BindingTransformHookExtraArgs, BindingViteResolvePluginConfig, BindingWatcherEvent, Bundler, ParserOptions, PreRenderedChunk, TransformOptions } from "./binding-C_9au5Eg.mjs";
|
|
2
2
|
import { Program } from "@oxc-project/types";
|
|
3
3
|
import { TopLevelFilterExpression } from "@rolldown/pluginutils";
|
|
4
4
|
|
|
@@ -309,8 +309,8 @@ declare class RolldownBuild {
|
|
|
309
309
|
write(outputOptions?: OutputOptions): Promise<RolldownOutput>;
|
|
310
310
|
close(): Promise<void>;
|
|
311
311
|
[Symbol.asyncDispose](): Promise<void>;
|
|
312
|
-
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutputPatch
|
|
313
|
-
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<
|
|
312
|
+
generateHmrPatch(changedFiles: string[]): Promise<BindingHmrOutputPatch>;
|
|
313
|
+
hmrInvalidate(file: string, firstInvalidatedBy?: string): Promise<BindingHmrOutputPatch>;
|
|
314
314
|
// TODO(underfin)
|
|
315
315
|
// The `watchFiles` method returns a promise, but Rollup does not.
|
|
316
316
|
// Converting it to a synchronous API might cause a deadlock if the user calls `write` and `watchFiles` simultaneously.
|
|
@@ -878,6 +878,7 @@ type HmrOptions = boolean | {
|
|
|
878
878
|
port?: number;
|
|
879
879
|
implement?: string;
|
|
880
880
|
};
|
|
881
|
+
type AttachDebugOptions = "none" | "simple" | "full";
|
|
881
882
|
interface RollupJsxOptions {
|
|
882
883
|
mode?: "classic" | "automatic" | "preserve";
|
|
883
884
|
factory?: string;
|
|
@@ -936,7 +937,7 @@ interface InputOptions {
|
|
|
936
937
|
viteMode?: boolean;
|
|
937
938
|
resolveNewUrlToAsset?: boolean;
|
|
938
939
|
hmr?: HmrOptions;
|
|
939
|
-
attachDebugInfo?:
|
|
940
|
+
attachDebugInfo?: AttachDebugOptions;
|
|
940
941
|
};
|
|
941
942
|
/**
|
|
942
943
|
* Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __esm } from "./chunk-DSsiIF1Z.mjs";
|
|
2
|
-
import { init_rolldown, rolldown } from "./src-
|
|
2
|
+
import { init_rolldown, rolldown } from "./src-C_ps7iS5.mjs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { pathToFileURL } from "node:url";
|
|
5
5
|
import { cwd } from "node:process";
|
|
@@ -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-Cw7MpyXh.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"));
|
|
@@ -190,7 +190,7 @@ var init_logs = __esm({ "src/log/logs.ts"() {
|
|
|
190
190
|
} });
|
|
191
191
|
|
|
192
192
|
//#endregion
|
|
193
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
193
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.73.0/node_modules/oxc-parser/wrap.mjs
|
|
194
194
|
function wrap$1(result) {
|
|
195
195
|
let program, module, comments, errors;
|
|
196
196
|
return {
|
|
@@ -225,7 +225,7 @@ function applyFix(program, fixPath) {
|
|
|
225
225
|
node.value = RegExp(node.regex.pattern, node.regex.flags);
|
|
226
226
|
} catch (_err) {}
|
|
227
227
|
}
|
|
228
|
-
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.
|
|
228
|
+
var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.73.0/node_modules/oxc-parser/wrap.mjs"() {} });
|
|
229
229
|
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region src/parse-ast-index.ts
|
|
@@ -181,7 +181,7 @@ function augmentCodeLocation(properties, pos, source, id) {
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
//#endregion
|
|
184
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
184
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.73.0/node_modules/oxc-parser/wrap.mjs
|
|
185
185
|
function wrap$1(result) {
|
|
186
186
|
let program, module$1, comments, errors;
|
|
187
187
|
return {
|
|
@@ -270,7 +270,7 @@ async function prompt(message, opts = {}) {
|
|
|
270
270
|
if (typeof value !== "symbol" || value.toString() !== "Symbol(clack:cancel)") return value;
|
|
271
271
|
switch (opts.cancel) {
|
|
272
272
|
case "reject": {
|
|
273
|
-
const error = new Error("Prompt cancelled.");
|
|
273
|
+
const error = /* @__PURE__ */ new Error("Prompt cancelled.");
|
|
274
274
|
error.name = "ConsolaPromptCancelledError";
|
|
275
275
|
if (Error.captureStackTrace) Error.captureStackTrace(error, prompt);
|
|
276
276
|
throw error;
|
|
@@ -455,7 +455,7 @@ var init_prompt = __esm({ "../../node_modules/.pnpm/consola@3.4.2/node_modules/c
|
|
|
455
455
|
`)];
|
|
456
456
|
for (const [E, a] of o$1.entries()) {
|
|
457
457
|
if (e$1 += a, v.has(a)) {
|
|
458
|
-
const { groups: B$1 } = new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o$1.slice(E).join("")) || { groups: {} };
|
|
458
|
+
const { groups: B$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`)).exec(o$1.slice(E).join("")) || { groups: {} };
|
|
459
459
|
if (B$1.code !== void 0) {
|
|
460
460
|
const p = Number.parseFloat(B$1.code);
|
|
461
461
|
s = p === CD ? void 0 : p;
|
|
@@ -385,7 +385,7 @@ const iD = sD(), v = new Set(["\x1B", ""]), CD = 39, w$1 = "\x07", W$1 = "[",
|
|
|
385
385
|
`)];
|
|
386
386
|
for (const [E, a] of o$1.entries()) {
|
|
387
387
|
if (e$1 += a, v.has(a)) {
|
|
388
|
-
const { groups: B$1 } = new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o$1.slice(E).join("")) || { groups: {} };
|
|
388
|
+
const { groups: B$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`)).exec(o$1.slice(E).join("")) || { groups: {} };
|
|
389
389
|
if (B$1.code !== void 0) {
|
|
390
390
|
const p = Number.parseFloat(B$1.code);
|
|
391
391
|
s = p === CD ? void 0 : p;
|
|
@@ -808,7 +808,7 @@ async function prompt(message, opts = {}) {
|
|
|
808
808
|
if (typeof value !== "symbol" || value.toString() !== "Symbol(clack:cancel)") return value;
|
|
809
809
|
switch (opts.cancel) {
|
|
810
810
|
case "reject": {
|
|
811
|
-
const error = new Error("Prompt cancelled.");
|
|
811
|
+
const error = /* @__PURE__ */ new Error("Prompt cancelled.");
|
|
812
812
|
error.name = "ConsolaPromptCancelledError";
|
|
813
813
|
if (Error.captureStackTrace) Error.captureStackTrace(error, prompt);
|
|
814
814
|
throw error;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { __commonJS, __esm, __toESM } from "./chunk-DSsiIF1Z.mjs";
|
|
2
2
|
import { and, arraify, code, exclude, id, include, init_dist, init_misc, isNullish, moduleType, noop, or, unimplemented, unreachable, unsupported } from "./dist-DeDsdiza.mjs";
|
|
3
|
-
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-
|
|
4
|
-
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
3
|
+
import { augmentCodeLocation, error, init_logs, init_parse_ast_index, logCycleLoading, logInputHookInOutputPlugin, logInvalidLogPosition, logMultiplyNotifyOption, logPluginError, parseAst } from "./parse-ast-index-BjSB6ZTb.mjs";
|
|
4
|
+
import { BindingAttachDebugInfo, BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, ParallelJsPluginRegistry, shutdownAsyncRuntime, startAsyncRuntime } from "../rolldown-binding.wasi.cjs";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import os from "node:os";
|
|
8
8
|
import { Worker } from "node:worker_threads";
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
|
-
var version = "1.0.0-beta.
|
|
11
|
+
var version = "1.0.0-beta.16";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -2227,7 +2227,11 @@ var init_validator = __esm({ "src/utils/validator.ts"() {
|
|
|
2227
2227
|
resolveNewUrlToAsset: optional(boolean()),
|
|
2228
2228
|
strictExecutionOrder: optional(boolean()),
|
|
2229
2229
|
hmr: optional(HmrSchema),
|
|
2230
|
-
attachDebugInfo: optional(
|
|
2230
|
+
attachDebugInfo: optional(union([
|
|
2231
|
+
literal("none"),
|
|
2232
|
+
literal("simple"),
|
|
2233
|
+
literal("full")
|
|
2234
|
+
]))
|
|
2231
2235
|
})),
|
|
2232
2236
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2233
2237
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2465,7 +2469,7 @@ var init_sourcemap = __esm({ "src/types/sourcemap.ts"() {} });
|
|
|
2465
2469
|
//#endregion
|
|
2466
2470
|
//#region src/utils/error.ts
|
|
2467
2471
|
function normalizeErrors(rawErrors) {
|
|
2468
|
-
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(new Error(), {
|
|
2472
|
+
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2469
2473
|
kind: e$1.kind,
|
|
2470
2474
|
message: e$1.message,
|
|
2471
2475
|
stack: void 0
|
|
@@ -2568,7 +2572,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2568
2572
|
var init_transform_sourcemap = __esm({ "src/utils/transform-sourcemap.ts"() {} });
|
|
2569
2573
|
|
|
2570
2574
|
//#endregion
|
|
2571
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2575
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2572
2576
|
function u$1(o$1, n$1, a$2) {
|
|
2573
2577
|
let t$2 = (r$1) => o$1(r$1, ...n$1);
|
|
2574
2578
|
return a$2 === void 0 ? t$2 : Object.assign(t$2, {
|
|
@@ -2576,27 +2580,27 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2576
2580
|
lazyArgs: n$1
|
|
2577
2581
|
});
|
|
2578
2582
|
}
|
|
2579
|
-
var init_chunk_D6FCK2GA = __esm({ "../../node_modules/.pnpm/remeda@2.
|
|
2583
|
+
var init_chunk_D6FCK2GA = __esm({ "../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-D6FCK2GA.js"() {} });
|
|
2580
2584
|
|
|
2581
2585
|
//#endregion
|
|
2582
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2586
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2583
2587
|
function u(r$1, n$1, o$1) {
|
|
2584
2588
|
let a$2 = r$1.length - n$1.length;
|
|
2585
2589
|
if (a$2 === 0) return r$1(...n$1);
|
|
2586
2590
|
if (a$2 === 1) return u$1(r$1, n$1, o$1);
|
|
2587
2591
|
throw new Error("Wrong number of arguments");
|
|
2588
2592
|
}
|
|
2589
|
-
var init_chunk_WIMGWYZL = __esm({ "../../node_modules/.pnpm/remeda@2.
|
|
2593
|
+
var init_chunk_WIMGWYZL = __esm({ "../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-WIMGWYZL.js"() {
|
|
2590
2594
|
init_chunk_D6FCK2GA();
|
|
2591
2595
|
} });
|
|
2592
2596
|
|
|
2593
2597
|
//#endregion
|
|
2594
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2598
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2595
2599
|
function d(...r$1) {
|
|
2596
2600
|
return u(i, r$1);
|
|
2597
2601
|
}
|
|
2598
2602
|
var i;
|
|
2599
|
-
var init_chunk_3IFJP4R5 = __esm({ "../../node_modules/.pnpm/remeda@2.
|
|
2603
|
+
var init_chunk_3IFJP4R5 = __esm({ "../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-3IFJP4R5.js"() {
|
|
2600
2604
|
init_chunk_WIMGWYZL();
|
|
2601
2605
|
i = (r$1, t$2) => {
|
|
2602
2606
|
let a$2 = [[], []];
|
|
@@ -2606,17 +2610,17 @@ var init_chunk_3IFJP4R5 = __esm({ "../../node_modules/.pnpm/remeda@2.22.5/node_m
|
|
|
2606
2610
|
} });
|
|
2607
2611
|
|
|
2608
2612
|
//#endregion
|
|
2609
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2613
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
2610
2614
|
function t(...n$1) {
|
|
2611
2615
|
return u(Object.keys, n$1);
|
|
2612
2616
|
}
|
|
2613
|
-
var init_chunk_5NQBDF4H = __esm({ "../../node_modules/.pnpm/remeda@2.
|
|
2617
|
+
var init_chunk_5NQBDF4H = __esm({ "../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-5NQBDF4H.js"() {
|
|
2614
2618
|
init_chunk_WIMGWYZL();
|
|
2615
2619
|
} });
|
|
2616
2620
|
|
|
2617
2621
|
//#endregion
|
|
2618
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2619
|
-
var init_dist$1 = __esm({ "../../node_modules/.pnpm/remeda@2.
|
|
2622
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/index.js
|
|
2623
|
+
var init_dist$1 = __esm({ "../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/index.js"() {
|
|
2620
2624
|
init_chunk_3IFJP4R5();
|
|
2621
2625
|
init_chunk_5NQBDF4H();
|
|
2622
2626
|
} });
|
|
@@ -3375,13 +3379,13 @@ var init_normalized_output_options = __esm({ "src/options/normalized-output-opti
|
|
|
3375
3379
|
return this.normalizedOutputPlugins;
|
|
3376
3380
|
}
|
|
3377
3381
|
get preserveModules() {
|
|
3378
|
-
return this.
|
|
3382
|
+
return this.inner.preserveModules;
|
|
3379
3383
|
}
|
|
3380
3384
|
get preserveModulesRoot() {
|
|
3381
|
-
return this.
|
|
3385
|
+
return this.inner.preserveModulesRoot;
|
|
3382
3386
|
}
|
|
3383
3387
|
get virtualDirname() {
|
|
3384
|
-
return this.
|
|
3388
|
+
return this.inner.virtualDirname;
|
|
3385
3389
|
}
|
|
3386
3390
|
};
|
|
3387
3391
|
} });
|
|
@@ -4071,7 +4075,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
4071
4075
|
viteMode: inputOptions.experimental?.viteMode,
|
|
4072
4076
|
resolveNewUrlToAsset: inputOptions.experimental?.resolveNewUrlToAsset,
|
|
4073
4077
|
hmr: bindingifyHmr(inputOptions.experimental?.hmr),
|
|
4074
|
-
attachDebugInfo: inputOptions.experimental?.attachDebugInfo
|
|
4078
|
+
attachDebugInfo: bindingifyAttachDebugInfo(inputOptions.experimental?.attachDebugInfo)
|
|
4075
4079
|
},
|
|
4076
4080
|
profilerNames: inputOptions?.profilerNames,
|
|
4077
4081
|
jsx,
|
|
@@ -4103,6 +4107,14 @@ function bindingifyHmr(hmr) {
|
|
|
4103
4107
|
return hmr;
|
|
4104
4108
|
}
|
|
4105
4109
|
}
|
|
4110
|
+
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
4111
|
+
switch (attachDebugInfo) {
|
|
4112
|
+
case void 0: return void 0;
|
|
4113
|
+
case "full": return BindingAttachDebugInfo.Full;
|
|
4114
|
+
case "simple": return BindingAttachDebugInfo.Simple;
|
|
4115
|
+
case "none": return BindingAttachDebugInfo.None;
|
|
4116
|
+
}
|
|
4117
|
+
}
|
|
4106
4118
|
function bindingifyExternal(external) {
|
|
4107
4119
|
if (external) {
|
|
4108
4120
|
if (typeof external === "function") return (id$1, importer, isResolved) => {
|
|
@@ -4779,7 +4791,8 @@ var init_rolldown_build = __esm({ "src/api/rolldown/rolldown-build.ts"() {
|
|
|
4779
4791
|
return transformHmrPatchOutput(output);
|
|
4780
4792
|
}
|
|
4781
4793
|
async hmrInvalidate(file, firstInvalidatedBy) {
|
|
4782
|
-
|
|
4794
|
+
const output = await this.#bundler.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4795
|
+
return transformHmrPatchOutput(output);
|
|
4783
4796
|
}
|
|
4784
4797
|
get watchFiles() {
|
|
4785
4798
|
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
@@ -4980,8 +4993,9 @@ var init_src = __esm({ "src/index.ts"() {
|
|
|
4980
4993
|
init_build();
|
|
4981
4994
|
init_rolldown();
|
|
4982
4995
|
init_watch();
|
|
4996
|
+
init_define_config();
|
|
4983
4997
|
VERSION = version;
|
|
4984
4998
|
} });
|
|
4985
4999
|
|
|
4986
5000
|
//#endregion
|
|
4987
|
-
export { BuiltinPlugin, PluginContextData, PluginDriver, VERSION, ansis_default, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_ansis, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_normalize_string_or_regex, init_plugin_context_data, init_plugin_driver, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
|
5001
|
+
export { BuiltinPlugin, PluginContextData, PluginDriver, VERSION, ansis_default, assetPlugin, bindingifyPlugin, build, buildImportAnalysisPlugin, composeJsPlugins, createBundler, defineConfig, description$1 as description, dynamicImportVarsPlugin, getInputCliKeys, getJsonSchema, getOutputCliKeys, handleOutputErrors, importGlobPlugin, init_ansis, init_bindingify_plugin, init_compose_js_plugins, init_constructors, init_create_bundler, init_define_config, init_normalize_string_or_regex, init_plugin_context_data, init_plugin_driver, init_rolldown, init_src, init_transform_to_rollup_output, init_validator, init_watch, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, moduleFederationPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, rolldown, validateCliOptions, version, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, watch, webWorkerPostPlugin };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_chunk = require('./chunk-DDkG_k5U.cjs');
|
|
2
2
|
const require_dist = require('./dist-BMVjvV-v.cjs');
|
|
3
|
-
const require_parse_ast_index = require('./parse-ast-index-
|
|
3
|
+
const require_parse_ast_index = require('./parse-ast-index-X4pECV1E.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.16";
|
|
12
12
|
var description$1 = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
@@ -2136,7 +2136,11 @@ const InputOptionsSchema = strictObject({
|
|
|
2136
2136
|
resolveNewUrlToAsset: optional(boolean()),
|
|
2137
2137
|
strictExecutionOrder: optional(boolean()),
|
|
2138
2138
|
hmr: optional(HmrSchema),
|
|
2139
|
-
attachDebugInfo: optional(
|
|
2139
|
+
attachDebugInfo: optional(union([
|
|
2140
|
+
literal("none"),
|
|
2141
|
+
literal("simple"),
|
|
2142
|
+
literal("full")
|
|
2143
|
+
]))
|
|
2140
2144
|
})),
|
|
2141
2145
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2142
2146
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2410,7 +2414,7 @@ function bindingifySourcemap(map) {
|
|
|
2410
2414
|
//#endregion
|
|
2411
2415
|
//#region src/utils/error.ts
|
|
2412
2416
|
function normalizeErrors(rawErrors) {
|
|
2413
|
-
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(new Error(), {
|
|
2417
|
+
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2414
2418
|
kind: e$1.kind,
|
|
2415
2419
|
message: e$1.message,
|
|
2416
2420
|
stack: void 0
|
|
@@ -2507,7 +2511,7 @@ function normalizeTransformHookSourcemap(id$1, originalCode, rawMap) {
|
|
|
2507
2511
|
}
|
|
2508
2512
|
|
|
2509
2513
|
//#endregion
|
|
2510
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2514
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2511
2515
|
function u$1(o$1, n$1, a$2) {
|
|
2512
2516
|
let t$2 = (r$1) => o$1(r$1, ...n$1);
|
|
2513
2517
|
return a$2 === void 0 ? t$2 : Object.assign(t$2, {
|
|
@@ -2517,7 +2521,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2517
2521
|
}
|
|
2518
2522
|
|
|
2519
2523
|
//#endregion
|
|
2520
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2524
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2521
2525
|
function u(r$1, n$1, o$1) {
|
|
2522
2526
|
let a$2 = r$1.length - n$1.length;
|
|
2523
2527
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2526,7 +2530,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2526
2530
|
}
|
|
2527
2531
|
|
|
2528
2532
|
//#endregion
|
|
2529
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2533
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2530
2534
|
function d(...r$1) {
|
|
2531
2535
|
return u(i, r$1);
|
|
2532
2536
|
}
|
|
@@ -2537,7 +2541,7 @@ var i = (r$1, t$2) => {
|
|
|
2537
2541
|
};
|
|
2538
2542
|
|
|
2539
2543
|
//#endregion
|
|
2540
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2544
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
2541
2545
|
function t(...n$1) {
|
|
2542
2546
|
return u(Object.keys, n$1);
|
|
2543
2547
|
}
|
|
@@ -3242,13 +3246,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3242
3246
|
return this.normalizedOutputPlugins;
|
|
3243
3247
|
}
|
|
3244
3248
|
get preserveModules() {
|
|
3245
|
-
return this.
|
|
3249
|
+
return this.inner.preserveModules;
|
|
3246
3250
|
}
|
|
3247
3251
|
get preserveModulesRoot() {
|
|
3248
|
-
return this.
|
|
3252
|
+
return this.inner.preserveModulesRoot;
|
|
3249
3253
|
}
|
|
3250
3254
|
get virtualDirname() {
|
|
3251
|
-
return this.
|
|
3255
|
+
return this.inner.virtualDirname;
|
|
3252
3256
|
}
|
|
3253
3257
|
};
|
|
3254
3258
|
function normalizeAddon(value) {
|
|
@@ -3903,7 +3907,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
3903
3907
|
viteMode: inputOptions.experimental?.viteMode,
|
|
3904
3908
|
resolveNewUrlToAsset: inputOptions.experimental?.resolveNewUrlToAsset,
|
|
3905
3909
|
hmr: bindingifyHmr(inputOptions.experimental?.hmr),
|
|
3906
|
-
attachDebugInfo: inputOptions.experimental?.attachDebugInfo
|
|
3910
|
+
attachDebugInfo: bindingifyAttachDebugInfo(inputOptions.experimental?.attachDebugInfo)
|
|
3907
3911
|
},
|
|
3908
3912
|
profilerNames: inputOptions?.profilerNames,
|
|
3909
3913
|
jsx,
|
|
@@ -3935,6 +3939,14 @@ function bindingifyHmr(hmr) {
|
|
|
3935
3939
|
return hmr;
|
|
3936
3940
|
}
|
|
3937
3941
|
}
|
|
3942
|
+
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
3943
|
+
switch (attachDebugInfo) {
|
|
3944
|
+
case void 0: return void 0;
|
|
3945
|
+
case "full": return src_rolldown_binding_wasi_cjs.BindingAttachDebugInfo.Full;
|
|
3946
|
+
case "simple": return src_rolldown_binding_wasi_cjs.BindingAttachDebugInfo.Simple;
|
|
3947
|
+
case "none": return src_rolldown_binding_wasi_cjs.BindingAttachDebugInfo.None;
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3938
3950
|
function bindingifyExternal(external) {
|
|
3939
3951
|
if (external) {
|
|
3940
3952
|
if (typeof external === "function") return (id$1, importer, isResolved) => {
|
|
@@ -4563,7 +4575,8 @@ var RolldownBuild = class {
|
|
|
4563
4575
|
return transformHmrPatchOutput(output);
|
|
4564
4576
|
}
|
|
4565
4577
|
async hmrInvalidate(file, firstInvalidatedBy) {
|
|
4566
|
-
|
|
4578
|
+
const output = await this.#bundler.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4579
|
+
return transformHmrPatchOutput(output);
|
|
4567
4580
|
}
|
|
4568
4581
|
get watchFiles() {
|
|
4569
4582
|
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
1
|
+
import { BindingAttachDebugInfo, BindingCallableBuiltinPlugin, BindingHookSideEffects, BindingJsx, BindingLogLevel, BindingPluginOrder, BindingWatcher, Bundler, parseSync, shutdownAsyncRuntime, startAsyncRuntime } from "./rolldown-binding.wasi-browser.js";
|
|
2
2
|
|
|
3
3
|
//#region rolldown:runtime
|
|
4
4
|
var __create = Object.create;
|
|
@@ -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.16";
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/builtin-plugin/utils.ts
|
|
@@ -2347,7 +2347,11 @@ const InputOptionsSchema = strictObject({
|
|
|
2347
2347
|
resolveNewUrlToAsset: optional(boolean()),
|
|
2348
2348
|
strictExecutionOrder: optional(boolean()),
|
|
2349
2349
|
hmr: optional(HmrSchema),
|
|
2350
|
-
attachDebugInfo: optional(
|
|
2350
|
+
attachDebugInfo: optional(union([
|
|
2351
|
+
literal("none"),
|
|
2352
|
+
literal("simple"),
|
|
2353
|
+
literal("full")
|
|
2354
|
+
]))
|
|
2351
2355
|
})),
|
|
2352
2356
|
define: pipe(optional(record(string(), string())), description("Define global variables")),
|
|
2353
2357
|
inject: optional(record(string(), union([string(), tuple([string(), string()])]))),
|
|
@@ -2605,7 +2609,7 @@ function bindingifySourcemap(map) {
|
|
|
2605
2609
|
//#endregion
|
|
2606
2610
|
//#region src/utils/error.ts
|
|
2607
2611
|
function normalizeErrors(rawErrors) {
|
|
2608
|
-
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(new Error(), {
|
|
2612
|
+
const errors = rawErrors.map((e$1) => e$1 instanceof Error ? e$1 : Object.assign(/* @__PURE__ */ new Error(), {
|
|
2609
2613
|
kind: e$1.kind,
|
|
2610
2614
|
message: e$1.message,
|
|
2611
2615
|
stack: void 0
|
|
@@ -2786,7 +2790,7 @@ function exclude(expr) {
|
|
|
2786
2790
|
}
|
|
2787
2791
|
|
|
2788
2792
|
//#endregion
|
|
2789
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2793
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-D6FCK2GA.js
|
|
2790
2794
|
function u$1(o$1, n$1, a$2) {
|
|
2791
2795
|
let t$2 = (r$1) => o$1(r$1, ...n$1);
|
|
2792
2796
|
return a$2 === void 0 ? t$2 : Object.assign(t$2, {
|
|
@@ -2796,7 +2800,7 @@ function u$1(o$1, n$1, a$2) {
|
|
|
2796
2800
|
}
|
|
2797
2801
|
|
|
2798
2802
|
//#endregion
|
|
2799
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2803
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-WIMGWYZL.js
|
|
2800
2804
|
function u(r$1, n$1, o$1) {
|
|
2801
2805
|
let a$2 = r$1.length - n$1.length;
|
|
2802
2806
|
if (a$2 === 0) return r$1(...n$1);
|
|
@@ -2805,7 +2809,7 @@ function u(r$1, n$1, o$1) {
|
|
|
2805
2809
|
}
|
|
2806
2810
|
|
|
2807
2811
|
//#endregion
|
|
2808
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2812
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-3IFJP4R5.js
|
|
2809
2813
|
function d(...r$1) {
|
|
2810
2814
|
return u(i, r$1);
|
|
2811
2815
|
}
|
|
@@ -2816,7 +2820,7 @@ var i = (r$1, t$2) => {
|
|
|
2816
2820
|
};
|
|
2817
2821
|
|
|
2818
2822
|
//#endregion
|
|
2819
|
-
//#region ../../node_modules/.pnpm/remeda@2.
|
|
2823
|
+
//#region ../../node_modules/.pnpm/remeda@2.23.0/node_modules/remeda/dist/chunk-5NQBDF4H.js
|
|
2820
2824
|
function t(...n$1) {
|
|
2821
2825
|
return u(Object.keys, n$1);
|
|
2822
2826
|
}
|
|
@@ -2978,7 +2982,7 @@ function bindingPluginOrder(order) {
|
|
|
2978
2982
|
}
|
|
2979
2983
|
|
|
2980
2984
|
//#endregion
|
|
2981
|
-
//#region ../../node_modules/.pnpm/oxc-parser@0.
|
|
2985
|
+
//#region ../../node_modules/.pnpm/oxc-parser@0.73.0/node_modules/oxc-parser/wrap.mjs
|
|
2982
2986
|
function wrap$1(result) {
|
|
2983
2987
|
let program, module$1, comments, errors;
|
|
2984
2988
|
return {
|
|
@@ -3592,13 +3596,13 @@ var NormalizedOutputOptionsImpl = class {
|
|
|
3592
3596
|
return this.normalizedOutputPlugins;
|
|
3593
3597
|
}
|
|
3594
3598
|
get preserveModules() {
|
|
3595
|
-
return this.
|
|
3599
|
+
return this.inner.preserveModules;
|
|
3596
3600
|
}
|
|
3597
3601
|
get preserveModulesRoot() {
|
|
3598
|
-
return this.
|
|
3602
|
+
return this.inner.preserveModulesRoot;
|
|
3599
3603
|
}
|
|
3600
3604
|
get virtualDirname() {
|
|
3601
|
-
return this.
|
|
3605
|
+
return this.inner.virtualDirname;
|
|
3602
3606
|
}
|
|
3603
3607
|
};
|
|
3604
3608
|
function normalizeAddon(value) {
|
|
@@ -4253,7 +4257,7 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, normali
|
|
|
4253
4257
|
viteMode: inputOptions.experimental?.viteMode,
|
|
4254
4258
|
resolveNewUrlToAsset: inputOptions.experimental?.resolveNewUrlToAsset,
|
|
4255
4259
|
hmr: bindingifyHmr(inputOptions.experimental?.hmr),
|
|
4256
|
-
attachDebugInfo: inputOptions.experimental?.attachDebugInfo
|
|
4260
|
+
attachDebugInfo: bindingifyAttachDebugInfo(inputOptions.experimental?.attachDebugInfo)
|
|
4257
4261
|
},
|
|
4258
4262
|
profilerNames: inputOptions?.profilerNames,
|
|
4259
4263
|
jsx,
|
|
@@ -4285,6 +4289,14 @@ function bindingifyHmr(hmr) {
|
|
|
4285
4289
|
return hmr;
|
|
4286
4290
|
}
|
|
4287
4291
|
}
|
|
4292
|
+
function bindingifyAttachDebugInfo(attachDebugInfo) {
|
|
4293
|
+
switch (attachDebugInfo) {
|
|
4294
|
+
case void 0: return void 0;
|
|
4295
|
+
case "full": return BindingAttachDebugInfo.Full;
|
|
4296
|
+
case "simple": return BindingAttachDebugInfo.Simple;
|
|
4297
|
+
case "none": return BindingAttachDebugInfo.None;
|
|
4298
|
+
}
|
|
4299
|
+
}
|
|
4288
4300
|
function bindingifyExternal(external) {
|
|
4289
4301
|
if (external) {
|
|
4290
4302
|
if (typeof external === "function") return (id$1, importer, isResolved) => {
|
|
@@ -4851,7 +4863,8 @@ var RolldownBuild = class {
|
|
|
4851
4863
|
return transformHmrPatchOutput(output);
|
|
4852
4864
|
}
|
|
4853
4865
|
async hmrInvalidate(file, firstInvalidatedBy) {
|
|
4854
|
-
|
|
4866
|
+
const output = await this.#bundler.bundler.hmrInvalidate(file, firstInvalidatedBy);
|
|
4867
|
+
return transformHmrPatchOutput(output);
|
|
4855
4868
|
}
|
|
4856
4869
|
get watchFiles() {
|
|
4857
4870
|
return this.#bundler?.bundler.getWatchFiles() ?? Promise.resolve([]);
|
package/package.json
CHANGED