rolldown 1.0.0-beta.1-commit.2fe52d4 → 1.0.0-beta.1-commit.35fb1f8

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,13 +1,11 @@
1
1
  "use strict";
2
2
  const require_chunk = require('./chunk-qZFfknuJ.cjs');
3
- const require_binding$1 = require('./binding-Cw1COxB5.cjs');
3
+ const require_binding = require('./binding-fhgdIkpS.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"));
7
7
  const node_os = require_chunk.__toESM(require("node:os"));
8
8
  const valibot = require_chunk.__toESM(require("valibot"));
9
- const node_process = require_chunk.__toESM(require("node:process"));
10
- const tty = require_chunk.__toESM(require("tty"));
11
9
  const __valibot_to_json_schema = require_chunk.__toESM(require("@valibot/to-json-schema"));
12
10
 
13
11
  //#region src/utils/define-config.ts
@@ -56,7 +54,7 @@ const normalizeLog = (log) => typeof log === "string" ? { message: log } : typeo
56
54
  function getLogHandler(level, code, logger, pluginName, logLevel) {
57
55
  if (logLevelPriority[level] < logLevelPriority[logLevel]) return noop;
58
56
  return (log, pos) => {
59
- if (pos != null) logger(LOG_LEVEL_WARN, require_binding$1.logInvalidLogPosition(pluginName));
57
+ if (pos != null) logger(LOG_LEVEL_WARN, require_binding.logInvalidLogPosition(pluginName));
60
58
  log = normalizeLog(log);
61
59
  if (log.code && !log.pluginCode) log.pluginCode = log.code;
62
60
  log.code = code;
@@ -102,7 +100,7 @@ function getLogger(plugins, onLog, logLevel) {
102
100
  const handler = "handler" in pluginOnLog ? pluginOnLog.handler : pluginOnLog;
103
101
  if (handler.call({
104
102
  debug: getLogHandler$1(LOG_LEVEL_DEBUG),
105
- error: (log$1) => require_binding$1.error(normalizeLog(log$1)),
103
+ error: (log$1) => require_binding.error(normalizeLog(log$1)),
106
104
  info: getLogHandler$1(LOG_LEVEL_INFO),
107
105
  meta: {
108
106
  rollupVersion: "4.23.0",
@@ -124,7 +122,7 @@ const getOnLog = (config, logLevel, printLog = defaultPrintLog) => {
124
122
  if (onLog) {
125
123
  const minimalPriority = logLevelPriority[logLevel];
126
124
  return (level, log) => onLog(level, addLogToString(log), (level$1, handledLog) => {
127
- if (level$1 === LOG_LEVEL_ERROR) return require_binding$1.error(normalizeLog(handledLog));
125
+ if (level$1 === LOG_LEVEL_ERROR) return require_binding.error(normalizeLog(handledLog));
128
126
  if (logLevelPriority[level$1] >= minimalPriority) defaultOnLog(level$1, normalizeLog(handledLog));
129
127
  });
130
128
  }
@@ -162,9 +160,8 @@ function relativeId(id) {
162
160
 
163
161
  //#endregion
164
162
  //#region src/builtin-plugin/utils.ts
165
- var import_binding$6 = require_chunk.__toESM(require_binding$1.require_binding());
166
163
  function makeBuiltinPluginCallable(plugin) {
167
- let callablePlugin = new import_binding$6.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
164
+ let callablePlugin = new require_binding.import_binding.BindingCallableBuiltinPlugin(bindingifyBuiltInPlugin(plugin));
168
165
  const wrappedPlugin = plugin;
169
166
  for (const key in callablePlugin) wrappedPlugin[key] = function(...args) {
170
167
  return callablePlugin[key](...args);
@@ -222,6 +219,15 @@ function viteResolvePlugin(config) {
222
219
  });
223
220
  return makeBuiltinPluginCallable(builtinPlugin);
224
221
  }
222
+ function moduleFederationPlugin(config) {
223
+ return new BuiltinPlugin("builtin:module-federation", {
224
+ ...config,
225
+ remotes: config.remotes && Object.values(config.remotes).map((entry) => {
226
+ if (typeof entry === "string") return { entry };
227
+ return entry;
228
+ })
229
+ });
230
+ }
225
231
 
226
232
  //#endregion
227
233
  //#region src/utils/async-flatten.ts
@@ -297,7 +303,7 @@ const normalizePluginOption = async (plugins) => (await asyncFlatten([plugins]))
297
303
  function checkOutputPluginOption(plugins, onLog) {
298
304
  for (const plugin of plugins) for (const hook of ENUMERATED_INPUT_PLUGIN_HOOK_NAMES) if (hook in plugin) {
299
305
  delete plugin[hook];
300
- onLog(LOG_LEVEL_WARN, require_binding$1.logInputHookInOutputPlugin(plugin.name, hook));
306
+ onLog(LOG_LEVEL_WARN, require_binding.logInputHookInOutputPlugin(plugin.name, hook));
301
307
  }
302
308
  return plugins;
303
309
  }
@@ -326,7 +332,7 @@ var PluginDriver = class {
326
332
  const { handler } = normalizeHook(options);
327
333
  const result = await handler.call({
328
334
  debug: getLogHandler(LOG_LEVEL_DEBUG, "PLUGIN_LOG", logger, name, logLevel),
329
- error: (e) => require_binding$1.error(require_binding$1.logPluginError(normalizeLog(e), name, { hook: "onLog" })),
335
+ error: (e) => require_binding.error(require_binding.logPluginError(normalizeLog(e), name, { hook: "onLog" })),
330
336
  info: getLogHandler(LOG_LEVEL_INFO, "PLUGIN_LOG", logger, name, logLevel),
331
337
  meta: {
332
338
  rollupVersion: "4.23.0",
@@ -708,18 +714,17 @@ var MinimalPluginContext = class {
708
714
  };
709
715
  }
710
716
  error(e) {
711
- return require_binding$1.error(require_binding$1.logPluginError(normalizeLog(e), this.pluginName));
717
+ return require_binding.error(require_binding.logPluginError(normalizeLog(e), this.pluginName));
712
718
  }
713
719
  };
714
720
 
715
721
  //#endregion
716
722
  //#region src/utils/transform-side-effects.ts
717
- var import_binding$5 = require_chunk.__toESM(require_binding$1.require_binding());
718
723
  function bindingifySideEffects(sideEffects) {
719
724
  switch (sideEffects) {
720
- case true: return import_binding$5.BindingHookSideEffects.True;
721
- case false: return import_binding$5.BindingHookSideEffects.False;
722
- case "no-treeshake": return import_binding$5.BindingHookSideEffects.NoTreeshake;
725
+ case true: return require_binding.import_binding.BindingHookSideEffects.True;
726
+ case false: return require_binding.import_binding.BindingHookSideEffects.False;
727
+ case "no-treeshake": return require_binding.import_binding.BindingHookSideEffects.NoTreeshake;
723
728
  case null:
724
729
  case undefined: return undefined;
725
730
  default: throw new Error(`Unexpected side effects: ${sideEffects}`);
@@ -738,7 +743,7 @@ var PluginContext = class extends MinimalPluginContext {
738
743
  }
739
744
  async load(options) {
740
745
  const id = options.id;
741
- if (id === this.currentLoadingModule) this.onLog(LOG_LEVEL_WARN, require_binding$1.logCycleLoading(this.pluginName, this.currentLoadingModule));
746
+ if (id === this.currentLoadingModule) this.onLog(LOG_LEVEL_WARN, require_binding.logCycleLoading(this.pluginName, this.currentLoadingModule));
742
747
  const moduleInfo = this.data.getModuleInfo(id, this.context);
743
748
  if (moduleInfo && moduleInfo.code !== null) return moduleInfo;
744
749
  const rawOptions = {
@@ -780,16 +785,14 @@ var PluginContext = class extends MinimalPluginContext {
780
785
  };
781
786
  }
782
787
  emitFile(file) {
783
- if (file.type !== "asset") return unimplemented("PluginContext.emitFile: only asset type is supported");
788
+ if (file.type === "prebuilt-chunk") return unimplemented("PluginContext.emitFile with type prebuilt-chunk");
789
+ if (file.type === "chunk") return this.context.emitChunk(file);
784
790
  return this.context.emitFile({
785
791
  ...file,
786
792
  originalFileName: file.originalFileName || undefined,
787
793
  source: bindingAssetSource(file.source)
788
794
  });
789
795
  }
790
- async emitChunk(chunk) {
791
- return this.context.emitChunk(chunk);
792
- }
793
796
  getFileName(referenceId) {
794
797
  return this.context.getFileName(referenceId);
795
798
  }
@@ -820,7 +823,7 @@ var TransformPluginContext = class extends PluginContext {
820
823
  this.moduleSource = moduleSource;
821
824
  const getLogHandler$1 = (handler) => (log, pos) => {
822
825
  log = normalizeLog(log);
823
- if (pos) require_binding$1.augmentCodeLocation(log, pos, moduleSource, moduleId);
826
+ if (pos) require_binding.augmentCodeLocation(log, pos, moduleSource, moduleId);
824
827
  log.id = moduleId;
825
828
  log.hook = "transform";
826
829
  handler(log);
@@ -831,10 +834,10 @@ var TransformPluginContext = class extends PluginContext {
831
834
  }
832
835
  error(e, pos) {
833
836
  if (typeof e === "string") e = { message: e };
834
- if (pos) require_binding$1.augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);
837
+ if (pos) require_binding.augmentCodeLocation(e, pos, this.moduleSource, this.moduleId);
835
838
  e.id = this.moduleId;
836
839
  e.hook = "transform";
837
- return require_binding$1.error(require_binding$1.logPluginError(normalizeLog(e), this.pluginName));
840
+ return require_binding.error(require_binding.logPluginError(normalizeLog(e), this.pluginName));
838
841
  }
839
842
  getCombinedSourcemap() {
840
843
  return JSON.parse(this.inner.getCombinedSourcemap());
@@ -843,14 +846,13 @@ var TransformPluginContext = class extends PluginContext {
843
846
 
844
847
  //#endregion
845
848
  //#region src/plugin/bindingify-plugin-hook-meta.ts
846
- var import_binding$4 = require_chunk.__toESM(require_binding$1.require_binding());
847
849
  function bindingifyPluginHookMeta(options) {
848
850
  return { order: bindingPluginOrder(options.order) };
849
851
  }
850
852
  function bindingPluginOrder(order) {
851
853
  switch (order) {
852
- case "post": return import_binding$4.BindingPluginOrder.Post;
853
- case "pre": return import_binding$4.BindingPluginOrder.Pre;
854
+ case "post": return require_binding.import_binding.BindingPluginOrder.Post;
855
+ case "pre": return require_binding.import_binding.BindingPluginOrder.Pre;
854
856
  case null:
855
857
  case undefined: return undefined;
856
858
  default: throw new Error(`Unknown plugin order: ${order}`);
@@ -1444,7 +1446,7 @@ function wrapHandlers(plugin) {
1444
1446
  try {
1445
1447
  return await handler(...args);
1446
1448
  } catch (e) {
1447
- return require_binding$1.error(require_binding$1.logPluginError(e, plugin.name, {
1449
+ return require_binding.error(require_binding.logPluginError(e, plugin.name, {
1448
1450
  hook: hookName,
1449
1451
  id: hookName === "transform" ? args[2] : undefined
1450
1452
  }));
@@ -1514,7 +1516,6 @@ function normalizedStringOrRegex(pattern) {
1514
1516
 
1515
1517
  //#endregion
1516
1518
  //#region src/utils/bindingify-input-options.ts
1517
- var import_binding$3 = require_chunk.__toESM(require_binding$1.require_binding());
1518
1519
  function bindingifyInputOptions(rawPlugins, inputOptions, outputOptions, onLog, logLevel) {
1519
1520
  const pluginContextData = new PluginContextData();
1520
1521
  const plugins = rawPlugins.map((plugin) => {
@@ -1605,10 +1606,10 @@ function bindingifyInject(inject) {
1605
1606
  }
1606
1607
  function bindingifyLogLevel(logLevel) {
1607
1608
  switch (logLevel) {
1608
- case "silent": return import_binding$3.BindingLogLevel.Silent;
1609
- case "debug": return import_binding$3.BindingLogLevel.Debug;
1610
- case "warn": return import_binding$3.BindingLogLevel.Warn;
1611
- case "info": return import_binding$3.BindingLogLevel.Info;
1609
+ case "silent": return require_binding.import_binding.BindingLogLevel.Silent;
1610
+ case "debug": return require_binding.import_binding.BindingLogLevel.Debug;
1611
+ case "warn": return require_binding.import_binding.BindingLogLevel.Warn;
1612
+ case "info": return require_binding.import_binding.BindingLogLevel.Info;
1612
1613
  default: throw new Error(`Unexpected log level: ${logLevel}`);
1613
1614
  }
1614
1615
  }
@@ -2085,7 +2086,6 @@ function composeJsPlugins(plugins) {
2085
2086
 
2086
2087
  //#endregion
2087
2088
  //#region src/utils/initialize-parallel-plugins.ts
2088
- var import_binding$2 = require_chunk.__toESM(require_binding$1.require_binding());
2089
2089
  async function initializeParallelPlugins(plugins) {
2090
2090
  const pluginInfos = [];
2091
2091
  for (const [index, plugin] of plugins.entries()) if ("_parallel" in plugin) {
@@ -2098,7 +2098,7 @@ async function initializeParallelPlugins(plugins) {
2098
2098
  }
2099
2099
  if (pluginInfos.length <= 0) return undefined;
2100
2100
  const count = Math.min((0, node_os.availableParallelism)(), 8);
2101
- const parallelJsPluginRegistry = new import_binding$2.ParallelJsPluginRegistry(count);
2101
+ const parallelJsPluginRegistry = new require_binding.import_binding.ParallelJsPluginRegistry(count);
2102
2102
  const registryId = parallelJsPluginRegistry.id;
2103
2103
  const workers = await initializeWorkers(registryId, count, pluginInfos);
2104
2104
  const stopWorkers = async () => {
@@ -2136,83 +2136,6 @@ async function initializeWorker(registryId, pluginInfos, threadNumber) {
2136
2136
  }
2137
2137
  }
2138
2138
 
2139
- //#endregion
2140
- //#region ../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.js
2141
- const { env: env$1 = {}, argv = [], platform = "" } = typeof process === "undefined" ? {} : process;
2142
- const isDisabled = "NO_COLOR" in env$1 || argv.includes("--no-color");
2143
- const isForced = "FORCE_COLOR" in env$1 || argv.includes("--color");
2144
- const isWindows = platform === "win32";
2145
- const isDumbTerminal = env$1.TERM === "dumb";
2146
- const isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env$1.TERM && !isDumbTerminal;
2147
- const isCI = "CI" in env$1 && ("GITHUB_ACTIONS" in env$1 || "GITLAB_CI" in env$1 || "CIRCLECI" in env$1);
2148
- const isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);
2149
- const replaceClose = (index, string, close, replace, head = string.substring(0, index) + replace, tail = string.substring(index + close.length), next = tail.indexOf(close)) => head + (next < 0 ? tail : replaceClose(next, tail, close, replace));
2150
- const clearBleed = (index, string, open, close, replace) => index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;
2151
- const filterEmpty = (open, close, replace = open, at = open.length + 1) => (string) => string || !(string === "" || string === undefined) ? clearBleed(("" + string).indexOf(close, at), string, open, close, replace) : "";
2152
- const init = (open, close, replace) => filterEmpty(`\x1b[${open}m`, `\x1b[${close}m`, replace);
2153
- const colors$1 = {
2154
- reset: init(0, 0),
2155
- bold: init(1, 22, "\x1B[22m\x1B[1m"),
2156
- dim: init(2, 22, "\x1B[22m\x1B[2m"),
2157
- italic: init(3, 23),
2158
- underline: init(4, 24),
2159
- inverse: init(7, 27),
2160
- hidden: init(8, 28),
2161
- strikethrough: init(9, 29),
2162
- black: init(30, 39),
2163
- red: init(31, 39),
2164
- green: init(32, 39),
2165
- yellow: init(33, 39),
2166
- blue: init(34, 39),
2167
- magenta: init(35, 39),
2168
- cyan: init(36, 39),
2169
- white: init(37, 39),
2170
- gray: init(90, 39),
2171
- bgBlack: init(40, 49),
2172
- bgRed: init(41, 49),
2173
- bgGreen: init(42, 49),
2174
- bgYellow: init(43, 49),
2175
- bgBlue: init(44, 49),
2176
- bgMagenta: init(45, 49),
2177
- bgCyan: init(46, 49),
2178
- bgWhite: init(47, 49),
2179
- blackBright: init(90, 39),
2180
- redBright: init(91, 39),
2181
- greenBright: init(92, 39),
2182
- yellowBright: init(93, 39),
2183
- blueBright: init(94, 39),
2184
- magentaBright: init(95, 39),
2185
- cyanBright: init(96, 39),
2186
- whiteBright: init(97, 39),
2187
- bgBlackBright: init(100, 49),
2188
- bgRedBright: init(101, 49),
2189
- bgGreenBright: init(102, 49),
2190
- bgYellowBright: init(103, 49),
2191
- bgBlueBright: init(104, 49),
2192
- bgMagentaBright: init(105, 49),
2193
- bgCyanBright: init(106, 49),
2194
- bgWhiteBright: init(107, 49)
2195
- };
2196
- const createColors = ({ useColor = isColorSupported } = {}) => useColor ? colors$1 : Object.keys(colors$1).reduce((colors$2, key) => ({
2197
- ...colors$2,
2198
- [key]: String
2199
- }), {});
2200
- const { reset, bold: bold$1, dim: dim$1, italic, underline: underline$1, inverse, hidden, strikethrough, black, red: red$1, green: green$1, yellow: yellow$1, blue, magenta, cyan: cyan$1, white, gray: gray$1, bgBlack, bgRed, bgGreen, bgYellow, bgBlue, bgMagenta, bgCyan, bgWhite, blackBright, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright, bgBlackBright, bgRedBright, bgGreenBright, bgYellowBright, bgBlueBright, bgMagentaBright, bgCyanBright, bgWhiteBright } = createColors();
2201
-
2202
- //#endregion
2203
- //#region src/cli/colors.ts
2204
- const { bold, cyan, dim, gray, green, red, underline, yellow } = createColors({ useColor: node_process.env.FORCE_COLOR !== "0" && !node_process.env.NO_COLOR });
2205
- const colors = {
2206
- bold,
2207
- cyan,
2208
- dim,
2209
- gray,
2210
- green,
2211
- red,
2212
- underline,
2213
- yellow
2214
- };
2215
-
2216
2139
  //#endregion
2217
2140
  //#region src/utils/validator.ts
2218
2141
  const StringOrRegExpSchema = valibot.union([valibot.string(), valibot.instance(RegExp)]);
@@ -2302,10 +2225,10 @@ const InputOptionsSchema = valibot.strictObject({
2302
2225
  valibot.literal("browser"),
2303
2226
  valibot.literal("neutral"),
2304
2227
  valibot.literal("node")
2305
- ])), valibot.description(`Platform for which the code should be generated (node, ${colors.underline("browser")}, neutral)`)),
2228
+ ])), valibot.description(`Platform for which the code should be generated (node, ${require_binding.colors.underline("browser")}, neutral)`)),
2306
2229
  shimMissingExports: valibot.pipe(valibot.optional(valibot.boolean()), valibot.description("Create shim variables for missing exports")),
2307
2230
  treeshake: valibot.optional(TreeshakingOptionsSchema),
2308
- logLevel: valibot.pipe(valibot.optional(LogLevelOptionSchema), valibot.description(`Log level (${colors.dim("silent")}, ${colors.underline(colors.gray("info"))}, debug, ${colors.yellow("warn")})`)),
2231
+ logLevel: valibot.pipe(valibot.optional(LogLevelOptionSchema), valibot.description(`Log level (${require_binding.colors.dim("silent")}, ${require_binding.colors.underline(require_binding.colors.gray("info"))}, debug, ${require_binding.colors.yellow("warn")})`)),
2309
2232
  onLog: valibot.optional(OnLogSchema),
2310
2233
  onwarn: valibot.optional(OnwarnSchema),
2311
2234
  moduleTypes: valibot.pipe(valibot.optional(ModuleTypesSchema), valibot.description("Module types for customized extensions")),
@@ -2387,18 +2310,18 @@ const OutputOptionsSchema = valibot.strictObject({
2387
2310
  valibot.literal("named"),
2388
2311
  valibot.literal("default"),
2389
2312
  valibot.literal("none")
2390
- ])), valibot.description(`Specify a export mode (${colors.underline("auto")}, named, default, none)`)),
2313
+ ])), valibot.description(`Specify a export mode (${require_binding.colors.underline("auto")}, named, default, none)`)),
2391
2314
  hashCharacters: valibot.pipe(valibot.optional(valibot.union([
2392
2315
  valibot.literal("base64"),
2393
2316
  valibot.literal("base36"),
2394
2317
  valibot.literal("hex")
2395
2318
  ])), valibot.description("Use the specified character set for file hashes")),
2396
- format: valibot.pipe(valibot.optional(ModuleFormatSchema), valibot.description(`Output format of the generated bundle (supports ${colors.underline("esm")}, cjs, and iife)`)),
2319
+ format: valibot.pipe(valibot.optional(ModuleFormatSchema), valibot.description(`Output format of the generated bundle (supports ${require_binding.colors.underline("esm")}, cjs, and iife)`)),
2397
2320
  sourcemap: valibot.pipe(valibot.optional(valibot.union([
2398
2321
  valibot.boolean(),
2399
2322
  valibot.literal("inline"),
2400
2323
  valibot.literal("hidden")
2401
- ])), valibot.description(`Generate sourcemap (\`-s inline\` for inline, or ${colors.bold("pass the `-s` on the last argument if you want to generate `.map` file")})`)),
2324
+ ])), valibot.description(`Generate sourcemap (\`-s inline\` for inline, or ${require_binding.colors.bold("pass the `-s` on the last argument if you want to generate `.map` file")})`)),
2402
2325
  sourcemapIgnoreList: valibot.optional(valibot.union([valibot.boolean(), valibot.custom(() => true)])),
2403
2326
  sourcemapPathTransform: valibot.optional(valibot.custom(() => true)),
2404
2327
  banner: valibot.optional(valibot.union([valibot.string(), AddonFunctionSchema])),
@@ -2422,7 +2345,7 @@ const OutputOptionsSchema = valibot.strictObject({
2422
2345
  target: valibot.pipe(valibot.optional(valibot.enum(ESTarget)), valibot.description("The JavaScript target environment"))
2423
2346
  });
2424
2347
  const getAddonDescription = (placement, wrapper) => {
2425
- return `Code to insert the ${colors.bold(placement)} of the bundled file (${colors.bold(wrapper)} the wrapper function)`;
2348
+ return `Code to insert the ${require_binding.colors.bold(placement)} of the bundled file (${require_binding.colors.bold(wrapper)} the wrapper function)`;
2426
2349
  };
2427
2350
  const OutputCliOverrideSchema = valibot.strictObject({
2428
2351
  entryFileNames: valibot.pipe(valibot.optional(valibot.string()), valibot.description("Name pattern for emitted entry chunks")),
@@ -2478,7 +2401,7 @@ async function createBundlerOptions(inputOptions, outputOptions) {
2478
2401
  const logLevel = inputOptions.logLevel || LOG_LEVEL_INFO;
2479
2402
  const onLog = getLogger(getObjectPlugins(inputPlugins), getOnLog(inputOptions, logLevel), logLevel);
2480
2403
  outputOptions = PluginDriver.callOutputOptionsHook([...inputPlugins, ...outputPlugins], outputOptions);
2481
- if (outputOptions.minify === true) onLog(LOG_LEVEL_WARN, require_binding$1.logMinifyWarning());
2404
+ if (outputOptions.minify === true) onLog(LOG_LEVEL_WARN, require_binding.logMinifyWarning());
2482
2405
  let plugins = [...normalizePlugins(inputPlugins, ANONYMOUS_PLUGIN_PREFIX), ...checkOutputPluginOption(normalizePlugins(await normalizePluginOption(outputOptions.plugins), ANONYMOUS_OUTPUT_PLUGIN_PREFIX), onLog)];
2483
2406
  if (inputOptions.experimental?.enableComposingJsPlugins ?? false) plugins = composeJsPlugins(plugins);
2484
2407
  const parallelPluginInitResult = await initializeParallelPlugins(plugins);
@@ -2503,12 +2426,11 @@ async function createBundlerOptions(inputOptions, outputOptions) {
2503
2426
 
2504
2427
  //#endregion
2505
2428
  //#region src/utils/create-bundler.ts
2506
- var import_binding$1 = require_chunk.__toESM(require_binding$1.require_binding());
2507
2429
  async function createBundler(inputOptions, outputOptions) {
2508
2430
  const option = await createBundlerOptions(inputOptions, outputOptions);
2509
2431
  try {
2510
2432
  return {
2511
- bundler: new import_binding$1.Bundler(option.bundlerOptions),
2433
+ bundler: new require_binding.import_binding.Bundler(option.bundlerOptions),
2512
2434
  stopWorkers: option.stopWorkers
2513
2435
  };
2514
2436
  } catch (e) {
@@ -2626,7 +2548,6 @@ var WatcherEmitter = class {
2626
2548
 
2627
2549
  //#endregion
2628
2550
  //#region src/api/watch/watcher.ts
2629
- var import_binding = require_chunk.__toESM(require_binding$1.require_binding());
2630
2551
  var Watcher = class {
2631
2552
  closed;
2632
2553
  inner;
@@ -2660,7 +2581,7 @@ async function createWatcher(emitter, input) {
2660
2581
  return createBundlerOptions(inputOptions, output);
2661
2582
  })).flat());
2662
2583
  const notifyOptions = getValidNotifyOption(bundlerOptions);
2663
- const bindingWatcher = new import_binding.BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), notifyOptions);
2584
+ const bindingWatcher = new require_binding.import_binding.BindingWatcher(bundlerOptions.map((option) => option.bundlerOptions), notifyOptions);
2664
2585
  const watcher = new Watcher(emitter, bindingWatcher, bundlerOptions.map((option) => option.stopWorkers));
2665
2586
  watcher.start();
2666
2587
  }
@@ -2669,7 +2590,7 @@ function getValidNotifyOption(bundlerOptions) {
2669
2590
  for (const option of bundlerOptions) if (option.inputOptions.watch) {
2670
2591
  const notifyOption = option.inputOptions.watch.notify;
2671
2592
  if (notifyOption) if (result) {
2672
- option.onLog(LOG_LEVEL_WARN, require_binding$1.logMultiplyNotifyOption());
2593
+ option.onLog(LOG_LEVEL_WARN, require_binding.logMultiplyNotifyOption());
2673
2594
  return result;
2674
2595
  } else result = notifyOption;
2675
2596
  }
@@ -2685,7 +2606,7 @@ const watch = (input) => {
2685
2606
 
2686
2607
  //#endregion
2687
2608
  //#region package.json
2688
- var version = "1.0.0-beta.1-commit.2fe52d4";
2609
+ var version = "1.0.0-beta.1-commit.35fb1f8";
2689
2610
  var description = "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.";
2690
2611
 
2691
2612
  //#endregion
@@ -2751,12 +2672,6 @@ Object.defineProperty(exports, 'buildImportAnalysisPlugin', {
2751
2672
  return buildImportAnalysisPlugin;
2752
2673
  }
2753
2674
  });
2754
- Object.defineProperty(exports, 'colors', {
2755
- enumerable: true,
2756
- get: function () {
2757
- return colors;
2758
- }
2759
- });
2760
2675
  Object.defineProperty(exports, 'composeJsPlugins', {
2761
2676
  enumerable: true,
2762
2677
  get: function () {
@@ -2835,6 +2750,12 @@ Object.defineProperty(exports, 'manifestPlugin', {
2835
2750
  return manifestPlugin;
2836
2751
  }
2837
2752
  });
2753
+ Object.defineProperty(exports, 'moduleFederationPlugin', {
2754
+ enumerable: true,
2755
+ get: function () {
2756
+ return moduleFederationPlugin;
2757
+ }
2758
+ });
2838
2759
  Object.defineProperty(exports, 'modulePreloadPolyfillPlugin', {
2839
2760
  enumerable: true,
2840
2761
  get: function () {