rolldown 1.0.0-beta.3-commit.7b515c0 → 1.0.0-beta.3-commit.306867e

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
3
- const require_binding = require('./binding-orkvONpS.cjs');
3
+ const require_binding = require('./binding-B9_Bsc0_.cjs');
4
4
  const node_path = require_chunk.__toESM(require("node:path"));
5
5
  const node_buffer = require_chunk.__toESM(require("node:buffer"));
6
6
  const node_worker_threads = require_chunk.__toESM(require("node:worker_threads"));
@@ -19,7 +19,7 @@ function arraify(value) {
19
19
  return Array.isArray(value) ? value : [value];
20
20
  }
21
21
  function isNullish(value) {
22
- return value === null || value === undefined;
22
+ return value === null || value === void 0;
23
23
  }
24
24
  function unimplemented(info) {
25
25
  if (info) throw new Error(`unimplemented: ${info}`);
@@ -372,9 +372,9 @@ var PluginDriver = class {
372
372
  };
373
373
  function getObjectPlugins(plugins) {
374
374
  return plugins.filter((plugin) => {
375
- if (!plugin) return undefined;
376
- if ("_parallel" in plugin) return undefined;
377
- if (plugin instanceof BuiltinPlugin) return undefined;
375
+ if (!plugin) return void 0;
376
+ if ("_parallel" in plugin) return void 0;
377
+ if (plugin instanceof BuiltinPlugin) return void 0;
378
378
  return plugin;
379
379
  });
380
380
  }
@@ -419,11 +419,11 @@ function bindingAssetSource(source) {
419
419
  function bindingifySourcemap$1(map) {
420
420
  if (map == null) return;
421
421
  return { inner: typeof map === "string" ? map : {
422
- file: map.file ?? undefined,
422
+ file: map.file ?? void 0,
423
423
  mappings: map.mappings,
424
424
  sourceRoot: map.sourceRoot,
425
- sources: map.sources?.map((s) => s ?? undefined),
426
- sourcesContent: map.sourcesContent?.map((s) => s ?? undefined),
425
+ sources: map.sources?.map((s) => s ?? void 0),
426
+ sourcesContent: map.sourcesContent?.map((s) => s ?? void 0),
427
427
  names: map.names
428
428
  } };
429
429
  }
@@ -434,7 +434,7 @@ function normalizeErrors(rawErrors) {
434
434
  const errors = rawErrors.map((e) => e instanceof Error ? e : Object.assign(new Error(), {
435
435
  kind: e.kind,
436
436
  message: e.message,
437
- stack: undefined
437
+ stack: void 0
438
438
  }));
439
439
  let summary = `Build failed with ${errors.length} error${errors.length < 2 ? "" : "s"}:\n`;
440
440
  for (let i = 0; i < errors.length; i++) {
@@ -601,7 +601,7 @@ function transformToRollupOutputAsset(bindingAsset, changed) {
601
601
  get source() {
602
602
  return transformAssetSource(bindingAsset.source);
603
603
  },
604
- name: bindingAsset.name ?? undefined,
604
+ name: bindingAsset.name ?? void 0,
605
605
  names: bindingAsset.names
606
606
  };
607
607
  const cache = {};
@@ -654,11 +654,11 @@ function collectChangedBundle(changed, bundle) {
654
654
  modules: {},
655
655
  imports: item.imports,
656
656
  dynamicImports: item.dynamicImports,
657
- facadeModuleId: item.facadeModuleId || undefined,
657
+ facadeModuleId: item.facadeModuleId || void 0,
658
658
  isDynamicEntry: item.isDynamicEntry,
659
659
  moduleIds: item.moduleIds,
660
660
  map: bindingifySourcemap$1(item.map),
661
- sourcemapFilename: item.sourcemapFileName || undefined,
661
+ sourcemapFilename: item.sourcemapFileName || void 0,
662
662
  preliminaryFilename: item.preliminaryFileName
663
663
  });
664
664
  }
@@ -736,7 +736,7 @@ function bindingifySideEffects(sideEffects) {
736
736
  case false: return require_binding.import_binding.BindingHookSideEffects.False;
737
737
  case "no-treeshake": return require_binding.import_binding.BindingHookSideEffects.NoTreeshake;
738
738
  case null:
739
- case undefined: return undefined;
739
+ case void 0: return void 0;
740
740
  default: throw new Error(`Unexpected side effects: ${sideEffects}`);
741
741
  }
742
742
  }
@@ -781,7 +781,7 @@ var PluginContext = class extends MinimalPluginContext {
781
781
  return this.data.getModuleInfo(id, this.context);
782
782
  }
783
783
  async resolve(source, importer, options) {
784
- let receipt = undefined;
784
+ let receipt = void 0;
785
785
  if (options != null) receipt = this.data.saveResolveOptions(options);
786
786
  const res = await this.context.resolve(source, importer, {
787
787
  custom: receipt,
@@ -798,11 +798,11 @@ var PluginContext = class extends MinimalPluginContext {
798
798
  emitFile(file) {
799
799
  if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
800
800
  if (file.type === "chunk") return this.context.emitChunk(file);
801
- const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? undefined : this.outputOptions.sanitizeFileName(file.name || "asset");
802
- const filename = file.fileName ? undefined : this.getAssetFileNames(file);
801
+ const fnSanitizedFileName = file.fileName || typeof this.outputOptions.sanitizeFileName !== "function" ? void 0 : this.outputOptions.sanitizeFileName(file.name || "asset");
802
+ const filename = file.fileName ? void 0 : this.getAssetFileNames(file);
803
803
  return this.context.emitFile({
804
804
  ...file,
805
- originalFileName: file.originalFileName || undefined,
805
+ originalFileName: file.originalFileName || void 0,
806
806
  source: bindingAssetSource(file.source)
807
807
  }, filename, fnSanitizedFileName);
808
808
  }
@@ -875,7 +875,7 @@ function bindingPluginOrder(order) {
875
875
  case "post": return require_binding.import_binding.BindingPluginOrder.Post;
876
876
  case "pre": return require_binding.import_binding.BindingPluginOrder.Pre;
877
877
  case null:
878
- case undefined: return undefined;
878
+ case void 0: return void 0;
879
879
  default: throw new Error(`Unknown plugin order: ${order}`);
880
880
  }
881
881
  }
@@ -890,25 +890,25 @@ function bindingifyStringFilter(matcher) {
890
890
  if (typeof matcher === "string" || matcher instanceof RegExp) return { include: [matcher] };
891
891
  if (Array.isArray(matcher)) return { include: matcher };
892
892
  return {
893
- include: matcher.include ? arraify(matcher.include) : undefined,
894
- exclude: matcher.exclude ? arraify(matcher.exclude) : undefined
893
+ include: matcher.include ? arraify(matcher.include) : void 0,
894
+ exclude: matcher.exclude ? arraify(matcher.exclude) : void 0
895
895
  };
896
896
  }
897
897
  function bindingifyResolveIdFilter(filterOption) {
898
- return filterOption?.id ? bindingifyStringFilter(filterOption.id) : undefined;
898
+ return filterOption?.id ? bindingifyStringFilter(filterOption.id) : void 0;
899
899
  }
900
900
  function bindingifyLoadFilter(filterOption) {
901
- return filterOption?.id ? bindingifyStringFilter(filterOption.id) : undefined;
901
+ return filterOption?.id ? bindingifyStringFilter(filterOption.id) : void 0;
902
902
  }
903
903
  function bindingifyTransformFilter(filterOption) {
904
- if (!filterOption) return undefined;
904
+ if (!filterOption) return void 0;
905
905
  const { id, code, moduleType } = filterOption;
906
906
  let moduleTypeRet;
907
907
  if (moduleType) if (Array.isArray(moduleType)) moduleTypeRet = moduleType;
908
908
  else moduleTypeRet = moduleType.include;
909
909
  return {
910
- id: id ? bindingifyStringFilter(id) : undefined,
911
- code: code ? bindingifyStringFilter(code) : undefined,
910
+ id: id ? bindingifyStringFilter(id) : void 0,
911
+ code: code ? bindingifyStringFilter(code) : void 0,
912
912
  moduleType: moduleTypeRet
913
913
  };
914
914
  }
@@ -928,7 +928,7 @@ var NormalizedInputOptionsImpl = class {
928
928
  return this.inner.input;
929
929
  }
930
930
  get cwd() {
931
- return this.inner.cwd ?? undefined;
931
+ return this.inner.cwd ?? void 0;
932
932
  }
933
933
  get platform() {
934
934
  return this.inner.platform;
@@ -954,7 +954,7 @@ function bindingifyBuildEnd(args) {
954
954
  const { handler, meta } = normalizeHook(hook);
955
955
  return {
956
956
  plugin: async (ctx, err) => {
957
- await handler.call(new PluginContext(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel), err ? normalizeErrors(err) : undefined);
957
+ await handler.call(new PluginContext(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel), err ? normalizeErrors(err) : void 0);
958
958
  },
959
959
  meta: bindingifyPluginHookMeta(meta)
960
960
  };
@@ -965,13 +965,13 @@ function bindingifyResolveId(args) {
965
965
  const { handler, meta, options } = normalizeHook(hook);
966
966
  return {
967
967
  plugin: async (ctx, specifier, importer, extraOptions) => {
968
- const contextResolveOptions = extraOptions.custom != null ? args.pluginContextData.getSavedResolveOptions(extraOptions.custom) : undefined;
968
+ const contextResolveOptions = extraOptions.custom != null ? args.pluginContextData.getSavedResolveOptions(extraOptions.custom) : void 0;
969
969
  const newExtraOptions = {
970
970
  ...extraOptions,
971
971
  custom: contextResolveOptions?.custom,
972
972
  [SYMBOL_FOR_RESOLVE_CALLER_THAT_SKIP_SELF]: contextResolveOptions?.[SYMBOL_FOR_RESOLVE_CALLER_THAT_SKIP_SELF]
973
973
  };
974
- const ret = await handler.call(new PluginContext(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel), specifier, importer ?? undefined, newExtraOptions);
974
+ const ret = await handler.call(new PluginContext(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel), specifier, importer ?? void 0, newExtraOptions);
975
975
  if (ret == null) return;
976
976
  if (ret === false) return {
977
977
  id: specifier,
@@ -998,7 +998,7 @@ function bindingifyResolveDynamicImport(args) {
998
998
  const { handler, meta } = normalizeHook(hook);
999
999
  return {
1000
1000
  plugin: async (ctx, specifier, importer) => {
1001
- const ret = await handler.call(new PluginContext(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel), specifier, importer ?? undefined);
1001
+ const ret = await handler.call(new PluginContext(args.outputOptions, ctx, args.plugin, args.pluginContextData, args.onLog, args.logLevel), specifier, importer ?? void 0);
1002
1002
  if (ret == null) return;
1003
1003
  if (ret === false) return {
1004
1004
  id: specifier,
@@ -1026,7 +1026,7 @@ function bindingifyTransform(args) {
1026
1026
  return {
1027
1027
  plugin: async (ctx, code, id, meta$1) => {
1028
1028
  const ret = await handler.call(new TransformPluginContext(args.outputOptions, ctx.inner(), args.plugin, args.pluginContextData, ctx, id, code, args.onLog, args.logLevel), code, id, meta$1);
1029
- if (ret == null) return undefined;
1029
+ if (ret == null) return void 0;
1030
1030
  if (typeof ret === "string") return { code: ret };
1031
1031
  args.pluginContextData.updateModuleOption(id, {
1032
1032
  meta: ret.meta || {},
@@ -1103,7 +1103,7 @@ var NormalizedOutputOptionsImpl = class {
1103
1103
  this.inner = inner;
1104
1104
  }
1105
1105
  get dir() {
1106
- return this.inner.dir ?? undefined;
1106
+ return this.inner.dir ?? void 0;
1107
1107
  }
1108
1108
  get entryFileNames() {
1109
1109
  return mapFunctionOption(this.inner.entryFilenames, "entryFileNames");
@@ -1133,10 +1133,10 @@ var NormalizedOutputOptionsImpl = class {
1133
1133
  return this.inner.shimMissingExports;
1134
1134
  }
1135
1135
  get name() {
1136
- return this.inner.name ?? undefined;
1136
+ return this.inner.name ?? void 0;
1137
1137
  }
1138
1138
  get file() {
1139
- return this.inner.file ?? undefined;
1139
+ return this.inner.file ?? void 0;
1140
1140
  }
1141
1141
  get inlineDynamicImports() {
1142
1142
  return this.inner.inlineDynamicImports;
@@ -1145,16 +1145,16 @@ var NormalizedOutputOptionsImpl = class {
1145
1145
  return this.inner.externalLiveBindings;
1146
1146
  }
1147
1147
  get banner() {
1148
- return mapFunctionOption(this.inner.banner, "banner") ?? undefined;
1148
+ return mapFunctionOption(this.inner.banner, "banner") ?? void 0;
1149
1149
  }
1150
1150
  get footer() {
1151
- return mapFunctionOption(this.inner.footer, "footer") ?? undefined;
1151
+ return mapFunctionOption(this.inner.footer, "footer") ?? void 0;
1152
1152
  }
1153
1153
  get intro() {
1154
- return mapFunctionOption(this.inner.intro, "intro") ?? undefined;
1154
+ return mapFunctionOption(this.inner.intro, "intro") ?? void 0;
1155
1155
  }
1156
1156
  get outro() {
1157
- return mapFunctionOption(this.inner.outro, "outro") ?? undefined;
1157
+ return mapFunctionOption(this.inner.outro, "outro") ?? void 0;
1158
1158
  }
1159
1159
  get esModule() {
1160
1160
  return this.inner.esModule;
@@ -1469,7 +1469,7 @@ function wrapHandlers(plugin) {
1469
1469
  } catch (e) {
1470
1470
  return require_binding.error(require_binding.logPluginError(e, plugin.name, {
1471
1471
  hook: hookName,
1472
- id: hookName === "transform" ? args[2] : undefined
1472
+ id: hookName === "transform" ? args[2] : void 0
1473
1473
  }));
1474
1474
  }
1475
1475
  };
@@ -1530,7 +1530,7 @@ var PluginContextData = class {
1530
1530
  //#endregion
1531
1531
  //#region src/utils/normalize-string-or-regex.ts
1532
1532
  function normalizedStringOrRegex(pattern) {
1533
- if (!pattern) return undefined;
1533
+ if (!pattern) return void 0;
1534
1534
  if (!Array.isArray(pattern)) pattern = [pattern];
1535
1535
  return pattern;
1536
1536
  }
@@ -1540,7 +1540,7 @@ function normalizedStringOrRegex(pattern) {
1540
1540
  function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, onLog, logLevel) {
1541
1541
  const pluginContextData = new PluginContextData();
1542
1542
  const plugins = rawPlugins.map((plugin) => {
1543
- if ("_parallel" in plugin) return undefined;
1543
+ if ("_parallel" in plugin) return void 0;
1544
1544
  if (plugin instanceof BuiltinPlugin) return bindingifyBuiltInPlugin(plugin);
1545
1545
  return bindingifyPlugin(plugin, inputOptions, outputOptions, pluginContextData, onLog, logLevel);
1546
1546
  });
@@ -1556,14 +1556,14 @@ function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, onLog,
1556
1556
  onLog,
1557
1557
  treeshake: bindingifyTreeshakeOptions(inputOptions.treeshake),
1558
1558
  moduleTypes: inputOptions.moduleTypes,
1559
- define: inputOptions.define ? Object.entries(inputOptions.define) : undefined,
1559
+ define: inputOptions.define ? Object.entries(inputOptions.define) : void 0,
1560
1560
  inject: bindingifyInject(inputOptions.inject),
1561
1561
  experimental: {
1562
1562
  strictExecutionOrder: inputOptions.experimental?.strictExecutionOrder,
1563
1563
  disableLiveBindings: inputOptions.experimental?.disableLiveBindings,
1564
1564
  viteMode: inputOptions.experimental?.viteMode,
1565
1565
  resolveNewUrlToAsset: inputOptions.experimental?.resolveNewUrlToAsset,
1566
- developmentMode: inputOptions.experimental?.developmentMode
1566
+ hmr: inputOptions.experimental?.hmr
1567
1567
  },
1568
1568
  profilerNames: inputOptions?.profilerNames,
1569
1569
  jsx: bindingifyJsx(inputOptions.jsx),
@@ -1595,11 +1595,11 @@ function bindingifyResolve(resolve) {
1595
1595
  alias: alias ? Object.entries(alias).map(([name, replacement]) => ({
1596
1596
  find: name,
1597
1597
  replacements: arraify(replacement)
1598
- })) : undefined,
1598
+ })) : void 0,
1599
1599
  extensionAlias: extensionAlias ? Object.entries(extensionAlias).map(([name, value]) => ({
1600
1600
  target: name,
1601
1601
  replacements: value
1602
- })) : undefined,
1602
+ })) : void 0,
1603
1603
  ...rest
1604
1604
  };
1605
1605
  }
@@ -1636,7 +1636,7 @@ function bindingifyLogLevel(logLevel) {
1636
1636
  }
1637
1637
  }
1638
1638
  function bindingifyInput(input) {
1639
- if (input === undefined) return [];
1639
+ if (input === void 0) return [];
1640
1640
  if (typeof input === "string") return [{ import: input }];
1641
1641
  if (Array.isArray(input)) return input.map((src) => ({ import: src }));
1642
1642
  return Object.entries(input).map((value) => {
@@ -1655,7 +1655,7 @@ function bindingifyJsx(input) {
1655
1655
  type: "Enable",
1656
1656
  field0: {
1657
1657
  runtime: mode,
1658
- importSource: mode === "classic" ? input.importSource : mode === "automatic" ? input.jsxImportSource : undefined,
1658
+ importSource: mode === "classic" ? input.importSource : mode === "automatic" ? input.jsxImportSource : void 0,
1659
1659
  pragma: input.factory,
1660
1660
  pragmaFrag: input.fragment,
1661
1661
  development: input.development,
@@ -1676,13 +1676,13 @@ function bindingifyWatch(watch$1) {
1676
1676
  }
1677
1677
  }
1678
1678
  function bindingifyTreeshakeOptions(config) {
1679
- if (config === false) return undefined;
1680
- if (config === true || config === undefined) return {
1679
+ if (config === false) return void 0;
1680
+ if (config === true || config === void 0) return {
1681
1681
  moduleSideEffects: true,
1682
1682
  annotations: true
1683
1683
  };
1684
1684
  let normalizedConfig = { moduleSideEffects: true };
1685
- if (config.moduleSideEffects === undefined) normalizedConfig.moduleSideEffects = true;
1685
+ if (config.moduleSideEffects === void 0) normalizedConfig.moduleSideEffects = true;
1686
1686
  else if (config.moduleSideEffects === "no-external") normalizedConfig.moduleSideEffects = [{
1687
1687
  external: true,
1688
1688
  sideEffects: false
@@ -1701,7 +1701,7 @@ function bindingifyOutputOptions(outputOptions) {
1701
1701
  const { dir, format, exports: exports$1, hashCharacters, sourcemap, sourcemapIgnoreList, sourcemapPathTransform, name, assetFileNames, entryFileNames, chunkFileNames, cssEntryFileNames, cssChunkFileNames, banner, footer, intro, outro, esModule, globals, file, sanitizeFileName } = outputOptions;
1702
1702
  return {
1703
1703
  dir,
1704
- file: file == null ? undefined : file,
1704
+ file: file == null ? void 0 : file,
1705
1705
  format: bindingifyFormat(format),
1706
1706
  exports: exports$1,
1707
1707
  hashCharacters,
@@ -1739,7 +1739,7 @@ function bindingifyAddon(configAddon) {
1739
1739
  }
1740
1740
  function bindingifyFormat(format) {
1741
1741
  switch (format) {
1742
- case undefined:
1742
+ case void 0:
1743
1743
  case "es":
1744
1744
  case "esm":
1745
1745
  case "module": return "es";
@@ -1756,7 +1756,7 @@ function bindingifySourcemap(sourcemap) {
1756
1756
  case true: return "file";
1757
1757
  case "inline": return "inline";
1758
1758
  case false:
1759
- case undefined: return undefined;
1759
+ case void 0: return void 0;
1760
1760
  case "hidden": return "hidden";
1761
1761
  default: throw new Error(`unknown sourcemap: ${sourcemap}`);
1762
1762
  }
@@ -1777,26 +1777,26 @@ function bindingifyAssetFilenames(assetFileNames) {
1777
1777
  }
1778
1778
 
1779
1779
  //#endregion
1780
- //#region ../../node_modules/.pnpm/remeda@2.19.1/node_modules/remeda/dist/chunk-K26VP6CL.js
1781
- function u$1(t$1, n, a) {
1782
- let o = (r) => t$1(r, ...n);
1783
- return a === void 0 ? o : Object.assign(o, {
1780
+ //#region ../../node_modules/.pnpm/remeda@2.20.1/node_modules/remeda/dist/chunk-D6FCK2GA.js
1781
+ function u$1(o, n, a) {
1782
+ let t$1 = (r) => o(r, ...n);
1783
+ return a === void 0 ? t$1 : Object.assign(t$1, {
1784
1784
  lazy: a,
1785
1785
  lazyArgs: n
1786
1786
  });
1787
1787
  }
1788
1788
 
1789
1789
  //#endregion
1790
- //#region ../../node_modules/.pnpm/remeda@2.19.1/node_modules/remeda/dist/chunk-RAAYCPUM.js
1791
- function u(r, n, a) {
1792
- let o = r.length - n.length;
1793
- if (o === 0) return r(...n);
1794
- if (o === 1) return u$1(r, n, a);
1790
+ //#region ../../node_modules/.pnpm/remeda@2.20.1/node_modules/remeda/dist/chunk-WIMGWYZL.js
1791
+ function u(r, n, o) {
1792
+ let a = r.length - n.length;
1793
+ if (a === 0) return r(...n);
1794
+ if (a === 1) return u$1(r, n, o);
1795
1795
  throw new Error("Wrong number of arguments");
1796
1796
  }
1797
1797
 
1798
1798
  //#endregion
1799
- //#region ../../node_modules/.pnpm/remeda@2.19.1/node_modules/remeda/dist/chunk-NMJS7ULY.js
1799
+ //#region ../../node_modules/.pnpm/remeda@2.20.1/node_modules/remeda/dist/chunk-5NQBDF4H.js
1800
1800
  function t(...n) {
1801
1801
  return u(Object.keys, n);
1802
1802
  }
@@ -1975,10 +1975,10 @@ function createComposedPlugin(plugins) {
1975
1975
  const batchedHandlers = batchedHooks.transform;
1976
1976
  composed.transform = async function(initialCode, id, moduleType) {
1977
1977
  let code = initialCode;
1978
- let moduleSideEffects = undefined;
1978
+ let moduleSideEffects = void 0;
1979
1979
  function updateOutput(newCode, newModuleSideEffects) {
1980
1980
  code = newCode;
1981
- moduleSideEffects = newModuleSideEffects ?? undefined;
1981
+ moduleSideEffects = newModuleSideEffects ?? void 0;
1982
1982
  }
1983
1983
  for (const [handler, plugin] of batchedHandlers) {
1984
1984
  const { handler: handlerFn } = normalizeHook(handler);
@@ -2130,7 +2130,7 @@ async function initializeParallelPlugins(plugins) {
2130
2130
  options
2131
2131
  });
2132
2132
  }
2133
- if (pluginInfos.length <= 0) return undefined;
2133
+ if (pluginInfos.length <= 0) return void 0;
2134
2134
  const count = Math.min((0, node_os.availableParallelism)(), 8);
2135
2135
  const parallelJsPluginRegistry = new require_binding.import_binding.ParallelJsPluginRegistry(count);
2136
2136
  const registryId = parallelJsPluginRegistry.id;
@@ -2147,7 +2147,7 @@ function initializeWorkers(registryId, count, pluginInfos) {
2147
2147
  return Promise.all(Array.from({ length: count }, (_, i) => initializeWorker(registryId, pluginInfos, i)));
2148
2148
  }
2149
2149
  async function initializeWorker(registryId, pluginInfos, threadNumber) {
2150
- const urlString = undefined("#parallel-plugin-worker");
2150
+ const urlString = (void 0)("#parallel-plugin-worker");
2151
2151
  const workerData = {
2152
2152
  registryId,
2153
2153
  pluginInfos,
@@ -2271,7 +2271,7 @@ const InputOptionsSchema = valibot.strictObject({
2271
2271
  enableComposingJsPlugins: valibot.optional(valibot.boolean()),
2272
2272
  resolveNewUrlToAsset: valibot.optional(valibot.boolean()),
2273
2273
  strictExecutionOrder: valibot.optional(valibot.boolean()),
2274
- developmentMode: valibot.optional(valibot.boolean())
2274
+ hmr: valibot.optional(valibot.boolean())
2275
2275
  })),
2276
2276
  define: valibot.pipe(valibot.optional(valibot.record(valibot.string(), valibot.string())), valibot.description("Define global variables")),
2277
2277
  inject: valibot.optional(valibot.record(valibot.string(), valibot.union([valibot.string(), valibot.tuple([valibot.string(), valibot.string()])]))),
@@ -2421,7 +2421,7 @@ function validateTreeShakingOptions(options) {
2421
2421
  }
2422
2422
  function validateCliOptions(options) {
2423
2423
  let parsed = valibot.safeParse(CliOptionsSchema, options);
2424
- return [parsed.output, parsed.issues?.map((issue) => issue.path?.join(", ")).filter((v) => v !== undefined)];
2424
+ return [parsed.output, parsed.issues?.map((issue) => issue.path?.join(", ")).filter((v) => v !== void 0)];
2425
2425
  }
2426
2426
  function getInputCliKeys() {
2427
2427
  return valibot.keyof(InputCliOptionsSchema).options;
@@ -2436,7 +2436,7 @@ function getJsonSchema() {
2436
2436
  //#endregion
2437
2437
  //#region src/utils/create-bundler-option.ts
2438
2438
  async function createBundlerOptions(inputOptions, outputOptions) {
2439
- if (inputOptions.treeshake !== undefined) validateTreeShakingOptions(inputOptions.treeshake);
2439
+ if (inputOptions.treeshake !== void 0) validateTreeShakingOptions(inputOptions.treeshake);
2440
2440
  const inputPlugins = await normalizePluginOption(inputOptions.plugins);
2441
2441
  const outputPlugins = await normalizePluginOption(outputOptions.plugins);
2442
2442
  const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
@@ -2647,7 +2647,7 @@ const watch = (input) => {
2647
2647
 
2648
2648
  //#endregion
2649
2649
  //#region package.json
2650
- var version = "1.0.0-beta.3-commit.7b515c0";
2650
+ var version = "1.0.0-beta.3-commit.306867e";
2651
2651
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
2652
2652
 
2653
2653
  //#endregion
@@ -306,7 +306,7 @@ export interface BindingExperimentalOptions {
306
306
  disableLiveBindings?: boolean
307
307
  viteMode?: boolean
308
308
  resolveNewUrlToAsset?: boolean
309
- developmentMode?: boolean
309
+ hmr?: boolean
310
310
  }
311
311
 
312
312
  export interface BindingGeneralHookFilter {
@@ -75,7 +75,7 @@ export interface InputOptions {
75
75
  disableLiveBindings?: boolean;
76
76
  viteMode?: boolean;
77
77
  resolveNewUrlToAsset?: boolean;
78
- developmentMode?: boolean;
78
+ hmr?: boolean;
79
79
  };
80
80
  /**
81
81
  * Replace global variables or [property accessors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors) with the provided values.
@@ -40,7 +40,7 @@ export function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions,
40
40
  disableLiveBindings: inputOptions.experimental?.disableLiveBindings,
41
41
  viteMode: inputOptions.experimental?.viteMode,
42
42
  resolveNewUrlToAsset: inputOptions.experimental?.resolveNewUrlToAsset,
43
- developmentMode: inputOptions.experimental?.developmentMode,
43
+ hmr: inputOptions.experimental?.hmr,
44
44
  },
45
45
  profilerNames: inputOptions?.profilerNames,
46
46
  jsx: bindingifyJsx(inputOptions.jsx),
@@ -106,7 +106,7 @@ const InputOptionsSchema = v.strictObject({
106
106
  enableComposingJsPlugins: v.optional(v.boolean()),
107
107
  resolveNewUrlToAsset: v.optional(v.boolean()),
108
108
  strictExecutionOrder: v.optional(v.boolean()),
109
- developmentMode: v.optional(v.boolean()),
109
+ hmr: v.optional(v.boolean()),
110
110
  })),
111
111
  define: v.pipe(v.optional(v.record(v.string(), v.string())), v.description('Define global variables')),
112
112
  inject: v.optional(v.record(v.string(), v.union([v.string(), v.tuple([v.string(), v.string()])]))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "1.0.0-beta.3-commit.7b515c0",
3
+ "version": "1.0.0-beta.3-commit.306867e",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "repository": {
@@ -85,9 +85,9 @@
85
85
  "dtsHeader": "type MaybePromise<T> = T | Promise<T>\ntype Nullable<T> = T | null | undefined\ntype VoidNullable<T = void> = T | null | undefined | void\nexport type BindingStringOrRegex = string | RegExp\n\n"
86
86
  },
87
87
  "dependencies": {
88
- "@oxc-project/types": "0.46.0",
89
- "@valibot/to-json-schema": "1.0.0-beta.4",
90
- "valibot": "1.0.0-beta.12"
88
+ "@oxc-project/types": "0.48.2",
89
+ "@valibot/to-json-schema": "1.0.0-beta.5",
90
+ "valibot": "1.0.0-beta.14"
91
91
  },
92
92
  "peerDependencies": {
93
93
  "@babel/runtime": ">=7"
@@ -101,7 +101,7 @@
101
101
  "@jridgewell/sourcemap-codec": "^1.5.0",
102
102
  "@napi-rs/cli": "^3.0.0-alpha.70",
103
103
  "@napi-rs/wasm-runtime": "^0.2.4",
104
- "@oxc-node/core": "^0.0.17",
104
+ "@oxc-node/core": "^0.0.19",
105
105
  "@types/fs-extra": "^11.0.4",
106
106
  "@types/lodash-es": "^4.17.12",
107
107
  "colorette": "^2.0.20",
@@ -123,21 +123,21 @@
123
123
  "unbuild": "^3.0.0",
124
124
  "why-is-node-running": "^3.0.0",
125
125
  "@rolldown/testing": "0.0.1",
126
- "rolldown": "1.0.0-beta.3-commit.7b515c0"
126
+ "rolldown": "1.0.0-beta.3-commit.306867e"
127
127
  },
128
128
  "optionalDependencies": {
129
- "@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.7b515c0",
130
- "@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.7b515c0",
131
- "@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.7b515c0",
132
- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.7b515c0",
133
- "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.7b515c0",
134
- "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.7b515c0",
135
- "@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.7b515c0",
136
- "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.7b515c0",
137
- "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.7b515c0",
138
- "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.7b515c0",
139
- "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.7b515c0",
140
- "@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.7b515c0"
129
+ "@rolldown/binding-darwin-arm64": "1.0.0-beta.3-commit.306867e",
130
+ "@rolldown/binding-darwin-x64": "1.0.0-beta.3-commit.306867e",
131
+ "@rolldown/binding-freebsd-x64": "1.0.0-beta.3-commit.306867e",
132
+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-beta.3-commit.306867e",
133
+ "@rolldown/binding-linux-arm64-musl": "1.0.0-beta.3-commit.306867e",
134
+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-beta.3-commit.306867e",
135
+ "@rolldown/binding-linux-x64-musl": "1.0.0-beta.3-commit.306867e",
136
+ "@rolldown/binding-wasm32-wasi": "1.0.0-beta.3-commit.306867e",
137
+ "@rolldown/binding-linux-x64-gnu": "1.0.0-beta.3-commit.306867e",
138
+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-beta.3-commit.306867e",
139
+ "@rolldown/binding-win32-ia32-msvc": "1.0.0-beta.3-commit.306867e",
140
+ "@rolldown/binding-win32-x64-msvc": "1.0.0-beta.3-commit.306867e"
141
141
  },
142
142
  "scripts": {
143
143
  "# Scrips for binding #": "_",