rolldown 0.10.3 → 0.10.4

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 (74) hide show
  1. package/dist/cjs/cli.cjs +25 -597
  2. package/dist/cjs/index.cjs +20 -9
  3. package/dist/cjs/parallel-plugin-worker.cjs +8 -3
  4. package/dist/cjs/parallel-plugin.cjs +13 -2
  5. package/dist/esm/cli.mjs +21 -596
  6. package/dist/esm/index.mjs +6 -4
  7. package/dist/esm/parallel-plugin-worker.mjs +4 -2
  8. package/dist/esm/parallel-plugin.mjs +2 -1
  9. package/dist/shared/{chunk-WMSF1LUG.cjs → chunk-eib2uzZZ.cjs} +10 -3
  10. package/dist/shared/{rolldown-7z0huS4W.mjs → rolldown-ftFKbC6A.mjs} +5 -3
  11. package/dist/shared/{rolldown-pt4wPK1i.cjs → rolldown-l_Cw2GW3.cjs} +7 -3
  12. package/dist/shared/utils_index-D-jBnBMP.cjs +1375 -0
  13. package/dist/shared/utils_index-ywWHgCJG.mjs +1406 -0
  14. package/dist/types/cli/colors.d.ts +2 -0
  15. package/dist/types/cli/commands/bundle.d.ts +1 -0
  16. package/dist/types/cli/constants.d.ts +1 -0
  17. package/dist/types/cli/index.d.ts +1 -0
  18. package/dist/types/cli/utils.d.ts +6 -0
  19. package/dist/types/index.d.ts +12 -0
  20. package/dist/types/log/logHandler.d.ts +4 -0
  21. package/dist/types/log/logger.d.ts +13 -0
  22. package/dist/types/log/logging.d.ts +14 -0
  23. package/dist/types/log/logs.d.ts +13 -0
  24. package/dist/types/options/bindingify-input-options.d.ts +4 -0
  25. package/dist/types/options/bindingify-output-options.d.ts +3 -0
  26. package/dist/types/options/input-options.d.ts +93 -0
  27. package/dist/types/options/normalized-input-options.d.ts +10 -0
  28. package/dist/types/options/normalized-output-options.d.ts +20 -0
  29. package/dist/types/options/output-options.d.ts +40 -0
  30. package/dist/types/parallel-plugin-worker.d.ts +1 -0
  31. package/dist/types/parallel-plugin.d.ts +1 -0
  32. package/dist/types/plugin/bindingify-build-hooks.d.ts +10 -0
  33. package/dist/types/plugin/bindingify-output-hooks.d.ts +10 -0
  34. package/dist/types/plugin/bindingify-plugin.d.ts +5 -0
  35. package/dist/types/plugin/index.d.ts +65 -0
  36. package/dist/types/plugin/parallel-plugin-implementation.d.ts +10 -0
  37. package/dist/types/plugin/plugin-context.d.ts +12 -0
  38. package/dist/types/plugin/plugin-driver.d.ts +4 -0
  39. package/dist/types/plugin/transfrom-plugin-context.d.ts +13 -0
  40. package/dist/types/rolldown-build.d.ts +10 -0
  41. package/dist/types/rolldown.d.ts +9 -0
  42. package/dist/types/rollup-types.d.ts +1 -0
  43. package/dist/types/types/config-export.d.ts +5 -0
  44. package/dist/types/types/module-info.d.ts +13 -0
  45. package/dist/types/types/output-bundle.d.ts +4 -0
  46. package/dist/types/types/rendered-module.d.ts +2 -0
  47. package/dist/types/types/rolldown-options.d.ts +5 -0
  48. package/dist/types/types/rolldown-output.d.ts +38 -0
  49. package/dist/types/types/sourcemap.d.ts +10 -0
  50. package/dist/types/types/utils.d.ts +7 -0
  51. package/dist/types/utils/async-flatten.d.ts +1 -0
  52. package/dist/types/utils/code-frame.d.ts +1 -0
  53. package/dist/types/utils/create-bundler.d.ts +7 -0
  54. package/dist/types/utils/define-config.d.ts +2 -0
  55. package/dist/types/utils/ensure-array.d.ts +1 -0
  56. package/dist/types/utils/index.d.ts +13 -0
  57. package/dist/types/utils/initialize-parallel-plugins.d.ts +20 -0
  58. package/dist/types/utils/normalize-hook.d.ts +5 -0
  59. package/dist/types/utils/normalize-input-options.d.ts +3 -0
  60. package/dist/types/utils/normalize-output-options.d.ts +3 -0
  61. package/dist/types/utils/normalize-plugin-option.d.ts +8 -0
  62. package/dist/types/utils/transform-module-info.d.ts +3 -0
  63. package/dist/types/utils/transform-side-effects.d.ts +3 -0
  64. package/dist/types/utils/transform-sourcemap.d.ts +1 -0
  65. package/dist/types/utils/transform-to-rollup-output.d.ts +5 -0
  66. package/dist/types/utils/type-assert.d.ts +12 -0
  67. package/dist/types/utils/zod-ext.d.ts +15 -0
  68. package/package.json +22 -22
  69. package/dist/shared/consola_36c0034f-ED9jtJgC.mjs +0 -942
  70. package/dist/shared/consola_36c0034f-RVbq7gBJ.cjs +0 -945
  71. package/dist/shared/prompt-Q6AgPcFh.cjs +0 -859
  72. package/dist/shared/prompt-uoOfg_gh.mjs +0 -860
  73. package/dist/shared/utils_index-0Q22WhZL.cjs +0 -5331
  74. package/dist/shared/utils_index-Wfcc8MjH.mjs +0 -5361
@@ -1,9 +1,9 @@
1
1
  import __node_module__ from 'node:module';
2
2
  const require = __node_module__.createRequire(import.meta.url)
3
- import { __toESM, bindingifyPlugin, require_binding } from "../shared/utils_index-Wfcc8MjH.mjs";
3
+ import { __toESM, bindingifyPlugin, require_binding } from "../shared/utils_index-ywWHgCJG.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
6
- // src/parallel-plugin-worker.ts
6
+ //#region src/parallel-plugin-worker.ts
7
7
  var import_binding = __toESM(require_binding());
8
8
  const {registryId, pluginInfos, threadNumber} = workerData;
9
9
  (async() => {
@@ -31,3 +31,5 @@ const {registryId, pluginInfos, threadNumber} = workerData;
31
31
  }finally{
32
32
  parentPort.unref();
33
33
  }})();
34
+
35
+ //#endregion
@@ -1,9 +1,10 @@
1
1
  import __node_module__ from 'node:module';
2
2
  const require = __node_module__.createRequire(import.meta.url)
3
3
 
4
- // src/plugin/parallel-plugin-implementation.ts
4
+ //#region src/plugin/parallel-plugin-implementation.ts
5
5
  function defineParallelPluginImplementation(plugin) {
6
6
  return plugin;
7
7
  }
8
8
 
9
+ //#endregion
9
10
  export { defineParallelPluginImplementation };
@@ -1,5 +1,6 @@
1
+ "use strict";
1
2
 
2
- // \0<runtime>
3
+ //#region rolldown:runtime
3
4
  var __create = Object.create;
4
5
  var __defProp = Object.defineProperty;
5
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -16,7 +17,7 @@ var __export = (target, all) => {
16
17
  });
17
18
  };
18
19
  var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === 'object' || typeof from === 'function') for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ if (from && typeof from === 'object' || typeof from === 'function') for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
21
  key = keys[i];
21
22
  if ( !__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
23
  get:(k => from[k]).bind(null, key),
@@ -27,11 +28,17 @@ var __copyProps = (to, from, except, desc) => {
27
28
 
28
29
  return to;
29
30
  };
30
- var __toESM = (mod, isNodeMode, target) => ((target = mod != null ? __create(__getProtoOf(mod)) : {}),__copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, 'default', {
31
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {},__copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, 'default', {
31
32
  value:mod,
32
33
  enumerable:true
33
34
  }) : target, mod));
35
+ var __toCommonJS = mod => __copyProps(__defProp({}, '__esModule', {
36
+ value:true
37
+ }), mod);
38
+
39
+ //#endregion
34
40
 
35
41
  exports.__commonJSMin = __commonJSMin;
36
42
  exports.__export = __export;
43
+ exports.__toCommonJS = __toCommonJS;
37
44
  exports.__toESM = __toESM;
@@ -1,8 +1,8 @@
1
1
  import __node_module__ from 'node:module';
2
2
  const require = __node_module__.createRequire(import.meta.url)
3
- import { createBundler, transformToRollupOutput } from "./utils_index-Wfcc8MjH.mjs";
3
+ import { createBundler, transformToRollupOutput } from "./utils_index-ywWHgCJG.mjs";
4
4
 
5
- // src/rolldown-build.ts
5
+ //#region src/rolldown-build.ts
6
6
  class RolldownBuild {
7
7
  #inputOptions;
8
8
 
@@ -36,7 +36,8 @@ class RolldownBuild {
36
36
  }
37
37
  }
38
38
 
39
- // src/rolldown.ts
39
+ //#endregion
40
+ //#region src/rolldown.ts
40
41
  const rolldown = async input => {
41
42
  return new RolldownBuild(input);
42
43
  };
@@ -46,4 +47,5 @@ const experimental_scan = async input => {
46
47
  await stopWorkers?.();
47
48
  };
48
49
 
50
+ //#endregion
49
51
  export { experimental_scan, rolldown };
@@ -1,6 +1,8 @@
1
- const { createBundler, transformToRollupOutput } = require("./utils_index-0Q22WhZL.cjs");
1
+ "use strict";
2
2
 
3
- // src/rolldown-build.ts
3
+ const { createBundler, transformToRollupOutput } = require("./utils_index-D-jBnBMP.cjs");
4
+
5
+ //#region src/rolldown-build.ts
4
6
  class RolldownBuild {
5
7
  #inputOptions;
6
8
 
@@ -34,7 +36,8 @@ class RolldownBuild {
34
36
  }
35
37
  }
36
38
 
37
- // src/rolldown.ts
39
+ //#endregion
40
+ //#region src/rolldown.ts
38
41
  const rolldown = async input => {
39
42
  return new RolldownBuild(input);
40
43
  };
@@ -44,5 +47,6 @@ const experimental_scan = async input => {
44
47
  await stopWorkers?.();
45
48
  };
46
49
 
50
+ //#endregion
47
51
  exports.experimental_scan = experimental_scan;
48
52
  exports.rolldown = rolldown;