rolldown 0.15.0 → 0.15.1-commit.10b045b
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/cjs/cli.cjs +249 -183
- package/dist/cjs/experimental-index.cjs +2 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/parallel-plugin-worker.cjs +2 -2
- package/dist/esm/cli.mjs +343 -277
- package/dist/esm/experimental-index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/parallel-plugin-worker.mjs +1 -1
- package/dist/shared/{chunk-BK2Ye-xa.cjs → chunk-BFvIen8E.cjs} +0 -11
- package/dist/shared/{consola_36c0034f-_8_dG1Nr.cjs → consola_36c0034f-B7L-radJ.cjs} +2 -2
- package/dist/shared/{consola_36c0034f-DWsVjwtA.mjs → consola_36c0034f-D9ce-831.mjs} +10 -10
- package/dist/shared/{prompt-RFvZMmjc.cjs → prompt-BiXtYIJ2.cjs} +3 -3
- package/dist/shared/{prompt-DGW8ZJmn.mjs → prompt-DlQ-08lk.mjs} +2 -2
- package/dist/shared/{src-COU7qQBJ.cjs → src--iQGF1P9.cjs} +321 -216
- package/dist/shared/{src-DEPa5yhI.mjs → src-2pTf5dIo.mjs} +332 -233
- package/dist/tsconfig.dts.tsbuildinfo +1 -0
- package/dist/types/api/build.d.ts +2 -0
- package/dist/types/api/watch/index.d.ts +2 -2
- package/dist/types/api/watch/watch-emitter.d.ts +31 -0
- package/dist/types/api/watch/watcher.d.ts +7 -27
- package/dist/types/binding.d.ts +114 -19
- package/dist/types/builtin-plugin/constructors.d.ts +1 -5
- package/dist/types/cli/arguments/index.d.ts +5 -3
- package/dist/types/cli/arguments/schema.d.ts +10 -397
- package/dist/types/cli/colors.d.ts +11 -1
- package/dist/types/cli/load-config.d.ts +3 -0
- package/dist/types/cli/logger.d.ts +5 -0
- package/dist/types/constants/plugin.d.ts +8 -1
- package/dist/types/index.d.ts +4 -5
- package/dist/types/log/logHandler.d.ts +1 -1
- package/dist/types/log/logger.d.ts +1 -1
- package/dist/types/log/logging.d.ts +6 -6
- package/dist/types/log/logs.d.ts +3 -1
- package/dist/types/options/input-options-schema.d.ts +3 -595
- package/dist/types/options/input-options.d.ts +26 -3
- package/dist/types/options/normalized-input-options.d.ts +2 -2
- package/dist/types/options/normalized-output-options.d.ts +22 -18
- package/dist/types/options/output-options-schema.d.ts +2 -146
- package/dist/types/options/output-options.d.ts +4 -3
- package/dist/types/plugin/bindingify-plugin.d.ts +1 -1
- package/dist/types/plugin/index.d.ts +6 -6
- package/dist/types/plugin/minimal-plugin-context.d.ts +4 -4
- package/dist/types/plugin/plugin-context-data.d.ts +2 -1
- package/dist/types/plugin/plugin-context.d.ts +15 -11
- package/dist/types/plugin/transform-plugin-context.d.ts +8 -5
- package/dist/types/treeshake/module-side-effects.d.ts +14 -115
- package/dist/types/types/misc.d.ts +40 -0
- package/dist/types/types/module-info.d.ts +1 -0
- package/dist/types/types/output-bundle.d.ts +2 -2
- package/dist/types/types/rolldown-output.d.ts +14 -11
- package/dist/types/utils/bindingify-input-options.d.ts +2 -2
- package/dist/types/utils/create-bundler-option.d.ts +11 -0
- package/dist/types/utils/error.d.ts +2 -1
- package/dist/types/utils/misc.d.ts +1 -1
- package/dist/types/utils/normalize-plugin-option.d.ts +1 -1
- package/dist/types/utils/transform-rendered-chunk.d.ts +4 -4
- package/dist/types/utils/transform-rendered-module.d.ts +2 -2
- package/dist/types/utils/transform-sourcemap.d.ts +1 -1
- package/dist/types/utils/zod-ext.d.ts +6 -5
- package/package.json +16 -16
- package/dist/types/cli/utils.d.ts +0 -6
- package/dist/types/log/locate-character/index.d.ts +0 -13
- package/dist/types/rollup-types.d.ts +0 -1
- package/dist/types/rollup.d.ts +0 -1114
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BuiltinPlugin, __toESM, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, require_binding, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-
|
|
1
|
+
import { BuiltinPlugin, __toESM, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, require_binding, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-2pTf5dIo.mjs";
|
|
2
2
|
import { pathToFileURL } from "node:url";
|
|
3
3
|
|
|
4
4
|
//#region src/plugin/parallel-plugin.ts
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src-
|
|
1
|
+
import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src-2pTf5dIo.mjs";
|
|
2
2
|
import { parentPort, workerData } from "node:worker_threads";
|
|
3
3
|
|
|
4
4
|
//#region src/parallel-plugin-worker.ts
|
|
@@ -9,12 +9,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
9
9
|
var __commonJS = (cb, mod) => function() {
|
|
10
10
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
11
|
};
|
|
12
|
-
var __export = (target, all) => {
|
|
13
|
-
for (var name in all) __defProp(target, name, {
|
|
14
|
-
get: all[name],
|
|
15
|
-
enumerable: true
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
12
|
var __copyProps = (to, from, except, desc) => {
|
|
19
13
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
20
14
|
key = keys[i];
|
|
@@ -37,11 +31,6 @@ Object.defineProperty(exports, '__commonJS', {
|
|
|
37
31
|
get: function () {
|
|
38
32
|
return __commonJS;
|
|
39
33
|
}
|
|
40
|
-
});Object.defineProperty(exports, '__export', {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () {
|
|
43
|
-
return __export;
|
|
44
|
-
}
|
|
45
34
|
});Object.defineProperty(exports, '__toESM', {
|
|
46
35
|
enumerable: true,
|
|
47
36
|
get: function () {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_chunk = require('./chunk-
|
|
2
|
+
const require_chunk = require('./chunk-BFvIen8E.cjs');
|
|
3
3
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
4
4
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
5
5
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
@@ -818,7 +818,7 @@ function createConsola(options = {}) {
|
|
|
818
818
|
stdout: process.stdout,
|
|
819
819
|
stderr: process.stderr,
|
|
820
820
|
prompt: (...args) => Promise.resolve().then(function() {
|
|
821
|
-
return require("./prompt-
|
|
821
|
+
return require("./prompt-BiXtYIJ2.cjs");
|
|
822
822
|
}).then((m) => m.prompt(...args)),
|
|
823
823
|
reporters: options.reporters || [options.fancy ?? !(isCI || isTest) ? new FancyReporter() : new BasicReporter()],
|
|
824
824
|
...options
|
|
@@ -348,13 +348,13 @@ var BasicReporter = class {
|
|
|
348
348
|
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/utils.mjs
|
|
351
|
-
const { env = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
|
|
352
|
-
const isDisabled = "NO_COLOR" in env || argv.includes("--no-color");
|
|
353
|
-
const isForced = "FORCE_COLOR" in env || argv.includes("--color");
|
|
351
|
+
const { env: env$1 = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
|
|
352
|
+
const isDisabled = "NO_COLOR" in env$1 || argv.includes("--no-color");
|
|
353
|
+
const isForced = "FORCE_COLOR" in env$1 || argv.includes("--color");
|
|
354
354
|
const isWindows = platform === "win32";
|
|
355
|
-
const isDumbTerminal = env.TERM === "dumb";
|
|
356
|
-
const isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;
|
|
357
|
-
const isCI$1 = "CI" in env && ("GITHUB_ACTIONS" in env || "GITLAB_CI" in env || "CIRCLECI" in env);
|
|
355
|
+
const isDumbTerminal = env$1.TERM === "dumb";
|
|
356
|
+
const isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env$1.TERM && !isDumbTerminal;
|
|
357
|
+
const isCI$1 = "CI" in env$1 && ("GITHUB_ACTIONS" in env$1 || "GITLAB_CI" in env$1 || "CIRCLECI" in env$1);
|
|
358
358
|
const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI$1);
|
|
359
359
|
function replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {
|
|
360
360
|
return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
|
|
@@ -593,15 +593,15 @@ const providers = [
|
|
|
593
593
|
["STORMKIT"],
|
|
594
594
|
["CLEAVR"]
|
|
595
595
|
];
|
|
596
|
-
function detectProvider(env$
|
|
596
|
+
function detectProvider(env$2) {
|
|
597
597
|
for (const provider of providers) {
|
|
598
598
|
const envName = provider[1] || provider[0];
|
|
599
|
-
if (env$
|
|
599
|
+
if (env$2[envName]) return {
|
|
600
600
|
name: provider[0].toLowerCase(),
|
|
601
601
|
...provider[2]
|
|
602
602
|
};
|
|
603
603
|
}
|
|
604
|
-
if (env$
|
|
604
|
+
if (env$2.SHELL && env$2.SHELL === "/bin/jsh") return {
|
|
605
605
|
name: "stackblitz",
|
|
606
606
|
ci: false
|
|
607
607
|
};
|
|
@@ -815,7 +815,7 @@ function createConsola(options = {}) {
|
|
|
815
815
|
defaults: { level },
|
|
816
816
|
stdout: process.stdout,
|
|
817
817
|
stderr: process.stderr,
|
|
818
|
-
prompt: (...args) => import("./prompt-
|
|
818
|
+
prompt: (...args) => import("./prompt-DlQ-08lk.mjs").then((m) => m.prompt(...args)),
|
|
819
819
|
reporters: options.reporters || [options.fancy ?? !(isCI || isTest) ? new FancyReporter() : new BasicReporter()],
|
|
820
820
|
...options
|
|
821
821
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const require_chunk = require('./chunk-
|
|
3
|
-
const require_consola_36c0034f = require('./consola_36c0034f-
|
|
2
|
+
const require_chunk = require('./chunk-BFvIen8E.cjs');
|
|
3
|
+
const require_consola_36c0034f = require('./consola_36c0034f-B7L-radJ.cjs');
|
|
4
4
|
const node_path = require_chunk.__toESM(require("node:path"));
|
|
5
5
|
const node_process = require_chunk.__toESM(require("node:process"));
|
|
6
|
+
const tty = require_chunk.__toESM(require("tty"));
|
|
6
7
|
const node_util = require_chunk.__toESM(require("node:util"));
|
|
7
8
|
const node_tty = require_chunk.__toESM(require("node:tty"));
|
|
8
|
-
const tty = require_chunk.__toESM(require("tty"));
|
|
9
9
|
const node_readline = require_chunk.__toESM(require("node:readline"));
|
|
10
10
|
|
|
11
11
|
//#region ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/chunks/prompt.mjs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { colors, getDefaultExportFromCjs, isUnicodeSupported } from "./consola_36c0034f-
|
|
1
|
+
import { colors, getDefaultExportFromCjs, isUnicodeSupported } from "./consola_36c0034f-D9ce-831.mjs";
|
|
2
2
|
import { stdin, stdout } from "node:process";
|
|
3
|
-
import { WriteStream } from "node:tty";
|
|
4
3
|
import require$$0 from "tty";
|
|
4
|
+
import { WriteStream } from "node:tty";
|
|
5
5
|
import f from "node:readline";
|
|
6
6
|
|
|
7
7
|
//#region ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/chunks/prompt.mjs
|