@rolldown/browser 1.0.0-beta.30 → 1.0.0-beta.31-commit.832324a
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 +21 -6
- package/dist/cli.mjs +21 -6
- package/dist/config.cjs +4 -4
- package/dist/config.d.cts +2 -2
- package/dist/config.d.mts +2 -2
- package/dist/config.mjs +4 -4
- package/dist/experimental-index.browser.mjs +1 -1
- package/dist/experimental-index.cjs +3 -3
- package/dist/experimental-index.d.cts +2 -2
- package/dist/experimental-index.d.mts +2 -2
- package/dist/experimental-index.mjs +3 -3
- package/dist/experimental-runtime-types.d.ts +9 -4
- package/dist/filter-index.cjs +1 -1
- package/dist/filter-index.d.cts +2 -2
- package/dist/filter-index.d.mts +2 -2
- package/dist/filter-index.mjs +1 -1
- package/dist/index.browser.mjs +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/parallel-plugin-worker.cjs +3 -3
- package/dist/parallel-plugin-worker.mjs +3 -3
- 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-BIqlUgrm.d.cts} +16 -1
- package/dist/shared/{binding-DUz1Q2JW.d.mts → binding-COE5UL-B.d.mts} +16 -1
- package/dist/shared/{define-config-5ALh7WDx.d.mts → define-config-Cf2D2abn.d.mts} +24 -6
- package/dist/shared/{define-config-CMH1jWhX.d.cts → define-config-DFC0Nu7H.d.cts} +24 -6
- package/dist/shared/{load-config-Uk19Sezh.mjs → load-config-CoJFc3w2.mjs} +1 -1
- package/dist/shared/{load-config-XQT0YfAt.cjs → load-config-Dw0YNzS-.cjs} +1 -1
- package/dist/shared/{parse-ast-index-Z-sG_A0I.mjs → parse-ast-index-CqHkFxPM.mjs} +1 -1
- package/dist/shared/{parse-ast-index-ZiMOspE_.cjs → parse-ast-index-DAsDnaa1.cjs} +1 -1
- package/dist/shared/{src-CkG0t1KT.mjs → src-38thNb51.mjs} +44 -26
- package/dist/shared/{src-CXCXfLrc.cjs → src-DEIlKgUM.cjs} +44 -26
- package/dist/{src-DGzv-S-Z.js → src-jf6KDQ1I.js} +234 -216
- package/package.json +2 -2
- /package/dist/shared/{dist-DvBwroyk.mjs → dist-ByKQkexh.mjs} +0 -0
- /package/dist/shared/{dist-BVAp8sOm.cjs → dist-CK0hotcm.cjs} +0 -0
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-
|
|
3
|
-
|
|
4
|
-
require('./shared/
|
|
5
|
-
const require_load_config = require('./shared/load-config-
|
|
2
|
+
const require_src = require('./shared/src-DEIlKgUM.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-DAsDnaa1.cjs');
|
|
4
|
+
const require_dist = require('./shared/dist-CK0hotcm.cjs');
|
|
5
|
+
const require_load_config = require('./shared/load-config-Dw0YNzS-.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.81.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.81.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-
|
|
2
|
-
import
|
|
3
|
-
import "./shared/
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
1
|
+
import { __commonJS, __toESM, ansis_default, description, getInputCliKeys, getJsonSchema, getOutputCliKeys, rolldown, validateCliOptions, version, watch } from "./shared/src-38thNb51.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CqHkFxPM.mjs";
|
|
3
|
+
import { arraify } from "./shared/dist-ByKQkexh.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-CoJFc3w2.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.81.0/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js
|
|
1437
|
+
var require_usingCtx = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.81.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-
|
|
2
|
-
require('./shared/
|
|
3
|
-
require('./shared/
|
|
4
|
-
const require_load_config = require('./shared/load-config-
|
|
1
|
+
const require_src = require('./shared/src-DEIlKgUM.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-DAsDnaa1.cjs');
|
|
3
|
+
require('./shared/dist-CK0hotcm.cjs');
|
|
4
|
+
const require_load_config = require('./shared/load-config-Dw0YNzS-.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-BIqlUgrm.cjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-DFC0Nu7H.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-COE5UL-B.mjs";
|
|
2
|
+
import { ConfigExport, defineConfig } from "./shared/define-config-Cf2D2abn.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-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
4
|
-
import { loadConfig } from "./shared/load-config-
|
|
1
|
+
import { defineConfig, version } from "./shared/src-38thNb51.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CqHkFxPM.mjs";
|
|
3
|
+
import "./shared/dist-ByKQkexh.mjs";
|
|
4
|
+
import { loadConfig } from "./shared/load-config-CoJFc3w2.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-jf6KDQ1I.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-
|
|
3
|
-
require('./shared/
|
|
4
|
-
require('./shared/
|
|
2
|
+
const require_src = require('./shared/src-DEIlKgUM.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-DAsDnaa1.cjs');
|
|
4
|
+
require('./shared/dist-CK0hotcm.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-BIqlUgrm.cjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-DFC0Nu7H.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-COE5UL-B.mjs";
|
|
2
|
+
import { BuiltinPlugin, InputOptions, assetPlugin, buildImportAnalysisPlugin, defineParallelPlugin, dynamicImportVarsPlugin, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/define-config-Cf2D2abn.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-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { BuiltinPlugin, PluginDriver, assetPlugin, buildImportAnalysisPlugin, createBundlerImpl, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, isolatedDeclarationPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, reporterPlugin, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin, webWorkerPostPlugin } from "./shared/src-38thNb51.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CqHkFxPM.mjs";
|
|
3
|
+
import "./shared/dist-ByKQkexh.mjs";
|
|
4
4
|
import { BindingBundler, ResolverFactory, isolatedDeclaration, moduleRunnerTransform, transform } from "./rolldown-binding.wasi.cjs";
|
|
5
5
|
import { pathToFileURL } from "node:url";
|
|
6
6
|
|
|
@@ -13,9 +13,9 @@ export class DevRuntime {
|
|
|
13
13
|
applyUpdates(_boundaries: string[]): void;
|
|
14
14
|
/**
|
|
15
15
|
* @param {string} id
|
|
16
|
-
* @param {{ exports: any }}
|
|
16
|
+
* @param {{ exports: any }} exportsHolder
|
|
17
17
|
*/
|
|
18
|
-
registerModule(id: string,
|
|
18
|
+
registerModule(id: string, exportsHolder: {
|
|
19
19
|
exports: any;
|
|
20
20
|
}): void;
|
|
21
21
|
/**
|
|
@@ -48,6 +48,8 @@ export class DevRuntime {
|
|
|
48
48
|
__export: any;
|
|
49
49
|
/** @internal */
|
|
50
50
|
__toDynamicImportESM: any;
|
|
51
|
+
/** @internal */
|
|
52
|
+
__reExport: any;
|
|
51
53
|
}
|
|
52
54
|
declare class Module {
|
|
53
55
|
/**
|
|
@@ -55,12 +57,15 @@ declare class Module {
|
|
|
55
57
|
*/
|
|
56
58
|
constructor(id: string);
|
|
57
59
|
/**
|
|
58
|
-
* @type {any}
|
|
60
|
+
* @type {{ exports: any }}
|
|
59
61
|
*/
|
|
60
|
-
|
|
62
|
+
exportsHolder: {
|
|
63
|
+
exports: any;
|
|
64
|
+
};
|
|
61
65
|
/**
|
|
62
66
|
* @type {string}
|
|
63
67
|
*/
|
|
64
68
|
id: string;
|
|
69
|
+
get exports(): any;
|
|
65
70
|
}
|
|
66
71
|
export {};
|
package/dist/filter-index.cjs
CHANGED
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-BIqlUgrm.cjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-DFC0Nu7H.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-COE5UL-B.mjs";
|
|
2
|
+
import { withFilter } from "./shared/define-config-Cf2D2abn.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, isPromiseLike, moduleType, not, or, queries, query } from "./shared/dist-
|
|
1
|
+
import { and, arraify, code, exclude, id, include, isPromiseLike, moduleType, not, or, queries, query } from "./shared/dist-ByKQkexh.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/plugin/with-filter.ts
|
|
4
4
|
function withFilterImpl(pluginOption, filterObjectList) {
|
package/dist/index.browser.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_src = require('./shared/src-
|
|
2
|
-
require('./shared/
|
|
3
|
-
require('./shared/
|
|
1
|
+
const require_src = require('./shared/src-DEIlKgUM.cjs');
|
|
2
|
+
require('./shared/parse-ast-index-DAsDnaa1.cjs');
|
|
3
|
+
require('./shared/dist-CK0hotcm.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-BIqlUgrm.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-DFC0Nu7H.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-COE5UL-B.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-Cf2D2abn.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-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { VERSION, build, defineConfig, rolldown, watch } from "./shared/src-38thNb51.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CqHkFxPM.mjs";
|
|
3
|
+
import "./shared/dist-ByKQkexh.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-
|
|
3
|
-
require('./shared/
|
|
4
|
-
require('./shared/
|
|
2
|
+
const require_src = require('./shared/src-DEIlKgUM.cjs');
|
|
3
|
+
require('./shared/parse-ast-index-DAsDnaa1.cjs');
|
|
4
|
+
require('./shared/dist-CK0hotcm.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-
|
|
2
|
-
import "./shared/
|
|
3
|
-
import "./shared/
|
|
1
|
+
import { PluginContextData, bindingifyPlugin } from "./shared/src-38thNb51.mjs";
|
|
2
|
+
import "./shared/parse-ast-index-CqHkFxPM.mjs";
|
|
3
|
+
import "./shared/dist-ByKQkexh.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-BIqlUgrm.cjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-DFC0Nu7H.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-COE5UL-B.mjs";
|
|
2
|
+
import { MaybePromise, Plugin } from "./shared/define-config-Cf2D2abn.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-DAsDnaa1.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;
|
|
@@ -1222,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
|
|
|
1222
1226
|
interface BindingManifestPluginConfig {
|
|
1223
1227
|
root: string;
|
|
1224
1228
|
outPath: string;
|
|
1229
|
+
cssEntries: () => Set<string>;
|
|
1225
1230
|
}
|
|
1226
1231
|
interface BindingMinifyOptions {
|
|
1227
1232
|
mangle?: boolean;
|
|
@@ -1235,6 +1240,16 @@ interface BindingModules {
|
|
|
1235
1240
|
values: Array<BindingRenderedModule>;
|
|
1236
1241
|
keys: Array<string>;
|
|
1237
1242
|
}
|
|
1243
|
+
interface BindingRenderBuiltUrlConfig {
|
|
1244
|
+
ssr: boolean;
|
|
1245
|
+
type: 'asset' | 'public';
|
|
1246
|
+
hostId: string;
|
|
1247
|
+
hostType: 'js' | 'css' | 'html';
|
|
1248
|
+
}
|
|
1249
|
+
interface BindingRenderBuiltUrlRet {
|
|
1250
|
+
relative?: boolean;
|
|
1251
|
+
runtime?: string;
|
|
1252
|
+
}
|
|
1238
1253
|
interface BindingReplacePluginConfig {
|
|
1239
1254
|
values: Record<string, string>;
|
|
1240
1255
|
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;
|
|
@@ -1222,6 +1226,7 @@ type BindingJsonPluginStringify = boolean | string;
|
|
|
1222
1226
|
interface BindingManifestPluginConfig {
|
|
1223
1227
|
root: string;
|
|
1224
1228
|
outPath: string;
|
|
1229
|
+
cssEntries: () => Set<string>;
|
|
1225
1230
|
}
|
|
1226
1231
|
interface BindingMinifyOptions {
|
|
1227
1232
|
mangle?: boolean;
|
|
@@ -1235,6 +1240,16 @@ interface BindingModules {
|
|
|
1235
1240
|
values: Array<BindingRenderedModule>;
|
|
1236
1241
|
keys: Array<string>;
|
|
1237
1242
|
}
|
|
1243
|
+
interface BindingRenderBuiltUrlConfig {
|
|
1244
|
+
ssr: boolean;
|
|
1245
|
+
type: 'asset' | 'public';
|
|
1246
|
+
hostId: string;
|
|
1247
|
+
hostType: 'js' | 'css' | 'html';
|
|
1248
|
+
}
|
|
1249
|
+
interface BindingRenderBuiltUrlRet {
|
|
1250
|
+
relative?: boolean;
|
|
1251
|
+
runtime?: string;
|
|
1252
|
+
}
|
|
1238
1253
|
interface BindingReplacePluginConfig {
|
|
1239
1254
|
values: Record<string, string>;
|
|
1240
1255
|
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-COE5UL-B.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;
|
|
@@ -240,6 +242,19 @@ interface OutputOptions {
|
|
|
240
242
|
* Allows you to do manual chunking. For deeper understanding, please refer to the in-depth [documentation](https://rolldown.rs/guide/in-depth/advanced-chunks).
|
|
241
243
|
*/
|
|
242
244
|
advancedChunks?: {
|
|
245
|
+
/**
|
|
246
|
+
* - Type: `boolean`
|
|
247
|
+
* - Default: `true`
|
|
248
|
+
*
|
|
249
|
+
* By default, each group will also include captured modules' dependencies. This reduces the chance of generating circular chunks.
|
|
250
|
+
*
|
|
251
|
+
* If you want to disable this behavior, it's recommended to both set
|
|
252
|
+
* - `preserveEntrySignatures: false`
|
|
253
|
+
* - `strictExecutionOrder: true`
|
|
254
|
+
*
|
|
255
|
+
* to avoid generating invalid chunks.
|
|
256
|
+
*/
|
|
257
|
+
includeDependenciesRecursively?: boolean;
|
|
243
258
|
/**
|
|
244
259
|
* - Type: `number`
|
|
245
260
|
*
|
|
@@ -542,6 +557,7 @@ interface NormalizedOutputOptions {
|
|
|
542
557
|
format: InternalModuleFormat;
|
|
543
558
|
exports: NonNullable<OutputOptions["exports"]>;
|
|
544
559
|
sourcemap: boolean | "inline" | "hidden";
|
|
560
|
+
sourcemapBaseUrl: string | undefined;
|
|
545
561
|
cssEntryFileNames: string | ChunkFileNamesFunction;
|
|
546
562
|
cssChunkFileNames: string | ChunkFileNamesFunction;
|
|
547
563
|
inlineDynamicImports: boolean;
|
|
@@ -708,7 +724,7 @@ interface EmittedAsset {
|
|
|
708
724
|
type: "asset";
|
|
709
725
|
name?: string;
|
|
710
726
|
fileName?: string;
|
|
711
|
-
originalFileName?: string
|
|
727
|
+
originalFileName?: string;
|
|
712
728
|
source: AssetSource;
|
|
713
729
|
}
|
|
714
730
|
interface EmittedChunk {
|
|
@@ -759,14 +775,14 @@ interface ModuleSideEffectsRule {
|
|
|
759
775
|
external?: boolean;
|
|
760
776
|
sideEffects: boolean;
|
|
761
777
|
}
|
|
762
|
-
type ModuleSideEffectsOption = boolean | ModuleSideEffectsRule[] | ((id: string,
|
|
778
|
+
type ModuleSideEffectsOption = boolean | readonly string[] | ModuleSideEffectsRule[] | ((id: string, external: boolean) => boolean | undefined) | "no-external";
|
|
763
779
|
type TreeshakingOptions = {
|
|
764
780
|
moduleSideEffects?: ModuleSideEffectsOption;
|
|
765
781
|
annotations?: boolean;
|
|
766
|
-
manualPureFunctions?: string[];
|
|
782
|
+
manualPureFunctions?: readonly string[];
|
|
767
783
|
unknownGlobalSideEffects?: boolean;
|
|
768
784
|
commonjs?: boolean;
|
|
769
|
-
}
|
|
785
|
+
};
|
|
770
786
|
//#endregion
|
|
771
787
|
//#region src/types/output-bundle.d.ts
|
|
772
788
|
interface OutputBundle {
|
|
@@ -1048,6 +1064,7 @@ interface WatcherOptions {
|
|
|
1048
1064
|
include?: StringOrRegExp | StringOrRegExp[];
|
|
1049
1065
|
exclude?: StringOrRegExp | StringOrRegExp[];
|
|
1050
1066
|
onInvalidate?: (id: string) => void;
|
|
1067
|
+
clearScreen?: boolean;
|
|
1051
1068
|
}
|
|
1052
1069
|
type MakeAbsoluteExternalsRelative = boolean | "ifRelativeSource";
|
|
1053
1070
|
type HmrOptions = boolean | {
|
|
@@ -1310,6 +1327,7 @@ interface InputOptions {
|
|
|
1310
1327
|
};
|
|
1311
1328
|
preserveEntrySignatures?: false | "strict" | "allow-extension" | "exports-only";
|
|
1312
1329
|
optimization?: OptimizationOptions;
|
|
1330
|
+
context?: string;
|
|
1313
1331
|
}
|
|
1314
1332
|
//#endregion
|
|
1315
1333
|
//#region src/types/rolldown-options.d.ts
|