rolldown 0.15.0 → 0.15.1

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.
Files changed (54) hide show
  1. package/dist/cjs/cli.cjs +249 -183
  2. package/dist/cjs/experimental-index.cjs +2 -2
  3. package/dist/cjs/index.cjs +1 -1
  4. package/dist/cjs/parallel-plugin-worker.cjs +2 -2
  5. package/dist/esm/cli.mjs +343 -277
  6. package/dist/esm/experimental-index.mjs +1 -1
  7. package/dist/esm/index.mjs +1 -1
  8. package/dist/esm/parallel-plugin-worker.mjs +1 -1
  9. package/dist/shared/{chunk-BK2Ye-xa.cjs → chunk-BFvIen8E.cjs} +0 -11
  10. package/dist/shared/{consola_36c0034f-_8_dG1Nr.cjs → consola_36c0034f-B7L-radJ.cjs} +2 -2
  11. package/dist/shared/{consola_36c0034f-DWsVjwtA.mjs → consola_36c0034f-D9ce-831.mjs} +10 -10
  12. package/dist/shared/{prompt-RFvZMmjc.cjs → prompt-BiXtYIJ2.cjs} +3 -3
  13. package/dist/shared/{prompt-DGW8ZJmn.mjs → prompt-DlQ-08lk.mjs} +2 -2
  14. package/dist/shared/{src-DEPa5yhI.mjs → src-BQ98i9JJ.mjs} +312 -225
  15. package/dist/shared/{src-COU7qQBJ.cjs → src-CkH9jtTi.cjs} +301 -208
  16. package/dist/tsconfig.dts.tsbuildinfo +1 -0
  17. package/dist/types/api/build.d.ts +2 -0
  18. package/dist/types/api/watch/index.d.ts +2 -2
  19. package/dist/types/api/watch/watch-emitter.d.ts +31 -0
  20. package/dist/types/api/watch/watcher.d.ts +7 -27
  21. package/dist/types/binding.d.ts +107 -17
  22. package/dist/types/builtin-plugin/constructors.d.ts +1 -5
  23. package/dist/types/cli/arguments/index.d.ts +5 -3
  24. package/dist/types/cli/arguments/schema.d.ts +10 -397
  25. package/dist/types/cli/colors.d.ts +11 -1
  26. package/dist/types/cli/load-config.d.ts +3 -0
  27. package/dist/types/cli/logger.d.ts +5 -0
  28. package/dist/types/constants/plugin.d.ts +8 -1
  29. package/dist/types/index.d.ts +3 -3
  30. package/dist/types/log/logging.d.ts +6 -6
  31. package/dist/types/log/logs.d.ts +1 -0
  32. package/dist/types/options/input-options-schema.d.ts +3 -595
  33. package/dist/types/options/input-options.d.ts +16 -1
  34. package/dist/types/options/normalized-input-options.d.ts +1 -1
  35. package/dist/types/options/normalized-output-options.d.ts +21 -17
  36. package/dist/types/options/output-options-schema.d.ts +2 -146
  37. package/dist/types/options/output-options.d.ts +1 -0
  38. package/dist/types/plugin/minimal-plugin-context.d.ts +3 -3
  39. package/dist/types/plugin/plugin-context-data.d.ts +2 -1
  40. package/dist/types/plugin/plugin-context.d.ts +14 -10
  41. package/dist/types/plugin/transform-plugin-context.d.ts +7 -4
  42. package/dist/types/rollup.d.ts +4 -0
  43. package/dist/types/treeshake/module-side-effects.d.ts +14 -115
  44. package/dist/types/types/module-info.d.ts +1 -0
  45. package/dist/types/types/rolldown-output.d.ts +6 -0
  46. package/dist/types/utils/bindingify-input-options.d.ts +1 -1
  47. package/dist/types/utils/create-bundler-option.d.ts +11 -0
  48. package/dist/types/utils/error.d.ts +2 -1
  49. package/dist/types/utils/misc.d.ts +1 -1
  50. package/dist/types/utils/transform-sourcemap.d.ts +1 -1
  51. package/dist/types/utils/zod-ext.d.ts +6 -5
  52. package/package.json +16 -16
  53. package/dist/types/cli/utils.d.ts +0 -6
  54. package/dist/types/log/locate-character/index.d.ts +0 -13
@@ -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-DEPa5yhI.mjs";
1
+ import { BuiltinPlugin, __toESM, buildImportAnalysisPlugin, composeJsPlugins, createBundler, dynamicImportVarsPlugin, handleOutputErrors, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, normalizedStringOrRegex, require_binding, viteResolvePlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src-BQ98i9JJ.mjs";
2
2
  import { pathToFileURL } from "node:url";
3
3
 
4
4
  //#region src/plugin/parallel-plugin.ts
@@ -1,3 +1,3 @@
1
- import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-DEPa5yhI.mjs";
1
+ import { VERSION, build, defineConfig, rolldown, watch } from "../shared/src-BQ98i9JJ.mjs";
2
2
 
3
3
  export { VERSION, build, defineConfig, rolldown, watch };
@@ -1,4 +1,4 @@
1
- import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src-DEPa5yhI.mjs";
1
+ import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src-BQ98i9JJ.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-BK2Ye-xa.cjs');
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-RFvZMmjc.cjs");
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$1) {
596
+ function detectProvider(env$2) {
597
597
  for (const provider of providers) {
598
598
  const envName = provider[1] || provider[0];
599
- if (env$1[envName]) return {
599
+ if (env$2[envName]) return {
600
600
  name: provider[0].toLowerCase(),
601
601
  ...provider[2]
602
602
  };
603
603
  }
604
- if (env$1.SHELL && env$1.SHELL === "/bin/jsh") return {
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-DGW8ZJmn.mjs").then((m) => m.prompt(...args)),
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-BK2Ye-xa.cjs');
3
- const require_consola_36c0034f = require('./consola_36c0034f-_8_dG1Nr.cjs');
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-DWsVjwtA.mjs";
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