rolldown 1.0.0-beta.9-commit.8371a90 → 1.0.0-beta.9-commit.273d50e

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 (37) hide show
  1. package/dist/cli.cjs +3 -3
  2. package/dist/cli.mjs +44 -55
  3. package/dist/config.cjs +3 -3
  4. package/dist/config.d.cts +2 -2
  5. package/dist/config.d.mts +2 -2
  6. package/dist/config.mjs +4 -5
  7. package/dist/experimental-index.cjs +2 -2
  8. package/dist/experimental-index.d.cts +2 -2
  9. package/dist/experimental-index.d.mts +2 -2
  10. package/dist/experimental-index.mjs +3 -4
  11. package/dist/filter-index.d.cts +2 -2
  12. package/dist/filter-index.d.mts +2 -2
  13. package/dist/filter-index.mjs +1 -2
  14. package/dist/index.cjs +2 -2
  15. package/dist/index.d.cts +3 -3
  16. package/dist/index.d.mts +3 -3
  17. package/dist/index.mjs +3 -3
  18. package/dist/parallel-plugin-worker.cjs +2 -2
  19. package/dist/parallel-plugin-worker.mjs +3 -3
  20. package/dist/parallel-plugin.d.cts +2 -2
  21. package/dist/parallel-plugin.d.mts +2 -2
  22. package/dist/parse-ast-index.cjs +1 -1
  23. package/dist/parse-ast-index.d.cts +1 -1
  24. package/dist/parse-ast-index.d.mts +1 -1
  25. package/dist/parse-ast-index.mjs +1 -1
  26. package/dist/shared/{binding.d-B9SSHAER.d.mts → binding.d-D3r4zbxz.d.mts} +6 -9
  27. package/dist/shared/{binding.d-CrH1UT-g.d.cts → binding.d-p8euY1Wh.d.cts} +6 -9
  28. package/dist/shared/{define-config.d-CUCXQ5Qr.d.mts → define-config.d-CPoyfJeO.d.mts} +5 -15
  29. package/dist/shared/{define-config.d-2mCqGCzl.d.cts → define-config.d-DsyTAkf3.d.cts} +5 -15
  30. package/dist/shared/{load-config-DaTbe02e.mjs → load-config-BK3hMJOe.mjs} +1 -1
  31. package/dist/shared/{load-config-B2LkbAmK.cjs → load-config-GL1xItfo.cjs} +1 -1
  32. package/dist/shared/{misc-DGAe2XOW.mjs → misc-F8g_dc1D.mjs} +1 -4
  33. package/dist/shared/{parse-ast-index-Bye5_Vy8.mjs → parse-ast-index-Bnh8Dob0.mjs} +4 -13
  34. package/dist/shared/{parse-ast-index-qKChTJzE.cjs → parse-ast-index-Cn_efzjO.cjs} +1 -0
  35. package/dist/shared/{src-CEJMSju3.mjs → src-CG2mUfiN.mjs} +180 -573
  36. package/dist/shared/{src-BwuVByD5.cjs → src-ndIZkCCf.cjs} +22 -41
  37. package/package.json +15 -15
@@ -1,5 +1,3 @@
1
- import { __esm } from "./chunk--iN_1bjD.mjs";
2
-
3
1
  //#region src/utils/misc.ts
4
2
  function arraify(value) {
5
3
  return Array.isArray(value) ? value : [value];
@@ -22,7 +20,6 @@ function unsupported(info) {
22
20
  throw new Error(`UNSUPPORTED: ${info}`);
23
21
  }
24
22
  function noop(..._args) {}
25
- var init_misc = __esm({ "src/utils/misc.ts"() {} });
26
23
 
27
24
  //#endregion
28
- export { arraify, init_misc, isNullish, isPromiseLike, noop, unimplemented, unreachable, unsupported };
25
+ export { arraify, isNullish, isPromiseLike, noop, unimplemented, unreachable, unsupported };
@@ -351,6 +351,7 @@ var require_binding = __commonJS({ "src/binding.js"(exports, module) {
351
351
  module.exports.ResolverFactory = nativeBinding.ResolverFactory;
352
352
  module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
353
353
  module.exports.BindingHookSideEffects = nativeBinding.BindingHookSideEffects;
354
+ module.exports.BindingJsx = nativeBinding.BindingJsx;
354
355
  module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
355
356
  module.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;
356
357
  module.exports.EnforceExtension = nativeBinding.EnforceExtension;
@@ -385,6 +386,9 @@ function spaces(index) {
385
386
  function tabsToSpaces(value) {
386
387
  return value.replace(/^\t+/, (match) => match.split(" ").join(" "));
387
388
  }
389
+ const LINE_TRUNCATE_LENGTH = 120;
390
+ const MIN_CHARACTERS_SHOWN_AFTER_LOCATION = 10;
391
+ const ELLIPSIS = "...";
388
392
  function getCodeFrame(source, line, column) {
389
393
  let lines = source.split("\n");
390
394
  if (line > lines.length) return "";
@@ -410,12 +414,6 @@ function getCodeFrame(source, line, column) {
410
414
  return `${lineNumber}: ${displayedLine}`;
411
415
  }).join("\n");
412
416
  }
413
- var LINE_TRUNCATE_LENGTH, MIN_CHARACTERS_SHOWN_AFTER_LOCATION, ELLIPSIS;
414
- var init_code_frame = __esm({ "src/utils/code-frame.ts"() {
415
- LINE_TRUNCATE_LENGTH = 120;
416
- MIN_CHARACTERS_SHOWN_AFTER_LOCATION = 10;
417
- ELLIPSIS = "...";
418
- } });
419
417
 
420
418
  //#endregion
421
419
  //#region src/log/locate-character/index.js
@@ -477,7 +475,6 @@ function getLocator(source, options = {}) {
477
475
  function locate(source, search, options) {
478
476
  return getLocator(source, options)(search, options && options.startIndex);
479
477
  }
480
- var init_locate_character = __esm({ "src/log/locate-character/index.js"() {} });
481
478
 
482
479
  //#endregion
483
480
  //#region src/log/logs.ts
@@ -559,8 +556,6 @@ function augmentCodeLocation(properties, pos, source, id) {
559
556
  }
560
557
  var INVALID_LOG_POSITION, PLUGIN_ERROR, INPUT_HOOK_IN_OUTPUT_PLUGIN, CYCLE_LOADING, MULTIPLY_NOTIFY_OPTION, PARSE_ERROR;
561
558
  var init_logs = __esm({ "src/log/logs.ts"() {
562
- init_code_frame();
563
- init_locate_character();
564
559
  INVALID_LOG_POSITION = "INVALID_LOG_POSITION", PLUGIN_ERROR = "PLUGIN_ERROR", INPUT_HOOK_IN_OUTPUT_PLUGIN = "INPUT_HOOK_IN_OUTPUT_PLUGIN", CYCLE_LOADING = "CYCLE_LOADING", MULTIPLY_NOTIFY_OPTION = "MULTIPLY_NOTIFY_OPTION", PARSE_ERROR = "PARSE_ERROR";
565
560
  } });
566
561
 
@@ -600,7 +595,6 @@ function applyFix(program, fixPath) {
600
595
  node.value = RegExp(node.regex.pattern, node.regex.flags);
601
596
  } catch (_err) {}
602
597
  }
603
- var init_wrap = __esm({ "../../node_modules/.pnpm/oxc-parser@0.72.0/node_modules/oxc-parser/wrap.mjs"() {} });
604
598
 
605
599
  //#endregion
606
600
  //#region src/parse-ast-index.ts
@@ -640,10 +634,7 @@ async function parseAstAsync(sourceText, options, filename) {
640
634
  var import_binding, defaultParserOptions;
641
635
  var init_parse_ast_index = __esm({ "src/parse-ast-index.ts"() {
642
636
  import_binding = __toESM(require_binding());
643
- init_locate_character();
644
637
  init_logs();
645
- init_code_frame();
646
- init_wrap();
647
638
  defaultParserOptions = {
648
639
  lang: "js",
649
640
  preserveParens: false
@@ -351,6 +351,7 @@ var require_binding = require_chunk.__commonJS({ "src/binding.js"(exports, modul
351
351
  module.exports.ResolverFactory = nativeBinding.ResolverFactory;
352
352
  module.exports.BindingBuiltinPluginName = nativeBinding.BindingBuiltinPluginName;
353
353
  module.exports.BindingHookSideEffects = nativeBinding.BindingHookSideEffects;
354
+ module.exports.BindingJsx = nativeBinding.BindingJsx;
354
355
  module.exports.BindingLogLevel = nativeBinding.BindingLogLevel;
355
356
  module.exports.BindingPluginOrder = nativeBinding.BindingPluginOrder;
356
357
  module.exports.EnforceExtension = nativeBinding.EnforceExtension;