rolldown 0.14.0-snapshot-b739329-20241109003240 → 0.14.0-snapshot-a07909e-20241111003354

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.
package/dist/cjs/cli.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const { __export, __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
4
- const { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, arraify, description, rolldown, version, watch } = require("../shared/src_index-__hrBC_u.cjs");
4
+ const { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, arraify, description, rolldown, version, watch } = require("../shared/src_index-moiBhfVO.cjs");
5
5
  const { createConsola } = require("../shared/consola.36c0034f-HcmWcfPe.cjs");
6
6
  const { default: nodePath, default: path } = __toESM(require("node:path"));
7
7
  const { ZodFirstPartyTypeKind, ZodFirstPartyTypeKind: ZodFirstPartyTypeKind$1, ZodFirstPartyTypeKind: ZodFirstPartyTypeKind$2, z, z: z$1, z: z$2, z: z$3 } = __toESM(require("zod"));
@@ -1587,29 +1587,29 @@ const inputOptionsSchema = z$2.strictObject({
1587
1587
  symlinks: (z$2.boolean()).optional(),
1588
1588
  tsconfigFilename: (z$2.string()).optional()
1589
1589
  })).optional(),
1590
- cwd: ((z$2.string()).describe("current working directory.")).optional(),
1591
- platform: ((((z$2.literal("node")).or(z$2.literal("browser"))).or(z$2.literal("neutral"))).describe(`platform for which the code should be generated (node, ${underline("browser")}, neutral).`)).optional(),
1592
- shimMissingExports: (z$2.boolean()).optional(),
1590
+ cwd: ((z$2.string()).describe("Current working directory")).optional(),
1591
+ platform: ((((z$2.literal("node")).or(z$2.literal("browser"))).or(z$2.literal("neutral"))).describe(`Platform for which the code should be generated (node, ${underline("browser")}, neutral)`)).optional(),
1592
+ shimMissingExports: ((z$2.boolean()).describe(`Create shim variables for missing exports`)).optional(),
1593
1593
  treeshake: (phantom()).optional(),
1594
- logLevel: (LogLevelOptionSchema.describe(`log level (${dim("silent")}, ${underline(gray("info"))}, debug, ${yellow("warn")})`)).optional(),
1594
+ logLevel: (LogLevelOptionSchema.describe(`Log level (${dim("silent")}, ${underline(gray("info"))}, debug, ${yellow("warn")})`)).optional(),
1595
1595
  onLog: ((z$2.function()).args(LogLevelSchema, RollupLogSchema, (z$2.function()).args(LogLevelWithErrorSchema, RollupLogWithStringSchema))).optional(),
1596
1596
  onwarn: ((z$2.function()).args(RollupLogSchema, (z$2.function()).args(RollupLogWithStringSchema.or((z$2.function()).returns(RollupLogWithStringSchema))))).optional(),
1597
- moduleTypes: (moduleTypesSchema.describe("module types for customized extensions.")).optional(),
1597
+ moduleTypes: (moduleTypesSchema.describe("Module types for customized extensions")).optional(),
1598
1598
  experimental: (z$2.strictObject({
1599
1599
  enableComposingJsPlugins: (z$2.boolean()).optional(),
1600
1600
  strictExecutionOrder: (z$2.boolean()).optional(),
1601
1601
  disableLiveBindings: (z$2.boolean()).optional()
1602
1602
  })).optional(),
1603
- define: ((z$2.record(z$2.string())).describe("define global variables")).optional(),
1603
+ define: ((z$2.record(z$2.string())).describe("Define global variables")).optional(),
1604
1604
  inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
1605
1605
  profilerNames: (z$2.boolean()).optional(),
1606
1606
  jsx: jsxOptionsSchema.optional(),
1607
1607
  watch: (watchOptionsSchema.or(z$2.literal(false))).optional(),
1608
- dropLabels: (z$2.array(z$2.string())).optional()
1608
+ dropLabels: ((z$2.array(z$2.string())).describe("Remove labeled statements with these label names")).optional()
1609
1609
  });
1610
1610
  const inputCliOptionsSchema = (inputOptionsSchema.extend({
1611
1611
  external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
1612
- inject: ((z$2.record(z$2.string())).describe("inject import statements on demand")).optional(),
1612
+ inject: ((z$2.record(z$2.string())).describe("Inject import statements on demand")).optional(),
1613
1613
  treeshake: (((z$2.boolean()).describe("enable treeshaking")).default(true)).optional()
1614
1614
  })).omit({
1615
1615
  input: true,
@@ -1624,33 +1624,34 @@ const inputCliOptionsSchema = (inputOptionsSchema.extend({
1624
1624
 
1625
1625
  //#endregion
1626
1626
  //#region src/options/output-options.ts
1627
- const ModuleFormatSchema = (((((((z$1.literal("es")).or(z$1.literal("cjs"))).or(z$1.literal("esm"))).or(z$1.literal("module"))).or(z$1.literal("commonjs"))).or(z$1.literal("iife"))).or(z$1.literal("umd"))).describe(`output format of the generated bundle (supports ${underline("esm")}, cjs, and iife).`);
1627
+ const ModuleFormatSchema = (((((((z$1.literal("es")).or(z$1.literal("cjs"))).or(z$1.literal("esm"))).or(z$1.literal("module"))).or(z$1.literal("commonjs"))).or(z$1.literal("iife"))).or(z$1.literal("umd"))).describe(`Output format of the generated bundle (supports ${underline("esm")}, cjs, and iife)`);
1628
1628
  const addonFunctionSchema = ((z$1.function()).args(phantom())).returns((z$1.string()).or(z$1.promise(z$1.string())));
1629
1629
  const chunkFileNamesFunctionSchema = ((z$1.function()).args(phantom())).returns(z$1.string());
1630
1630
  const outputOptionsSchema = z$1.strictObject({
1631
- dir: ((z$1.string()).describe("Output directory, defaults to `dist` if `file` is not set.")).optional(),
1631
+ dir: ((z$1.string()).describe("Output directory, defaults to `dist` if `file` is not set")).optional(),
1632
1632
  file: ((z$1.string()).describe("Single output file")).optional(),
1633
- exports: (((((z$1.literal("auto")).or(z$1.literal("named"))).or(z$1.literal("default"))).or(z$1.literal("none"))).describe(`specify a export mode (${underline("auto")}, named, default, none)`)).optional(),
1633
+ exports: (((((z$1.literal("auto")).or(z$1.literal("named"))).or(z$1.literal("default"))).or(z$1.literal("none"))).describe(`Specify a export mode (${underline("auto")}, named, default, none)`)).optional(),
1634
+ hashCharacters: ((((z$1.literal("base64")).or(z$1.literal("base36"))).or(z$1.literal("hex"))).describe("Use the specified character set for file hashes")).optional(),
1634
1635
  format: ModuleFormatSchema.optional(),
1635
- sourcemap: ((((z$1.boolean()).or(z$1.literal("inline"))).or(z$1.literal("hidden"))).describe(`generate sourcemap (\`-s inline\` for inline, or ${bold("pass the `-s` on the last argument if you want to generate `.map` file")}).`)).optional(),
1636
+ sourcemap: ((((z$1.boolean()).or(z$1.literal("inline"))).or(z$1.literal("hidden"))).describe(`Generate sourcemap (\`-s inline\` for inline, or ${bold("pass the `-s` on the last argument if you want to generate `.map` file")})`)).optional(),
1636
1637
  sourcemapIgnoreList: ((z$1.boolean()).or(phantom())).optional(),
1637
1638
  sourcemapPathTransform: (phantom()).optional(),
1638
1639
  banner: ((z$1.string()).or(addonFunctionSchema)).optional(),
1639
1640
  footer: ((z$1.string()).or(addonFunctionSchema)).optional(),
1640
1641
  intro: ((z$1.string()).or(addonFunctionSchema)).optional(),
1641
1642
  outro: ((z$1.string()).or(addonFunctionSchema)).optional(),
1642
- extend: ((z$1.boolean()).describe("extend global variable defined by name in IIFE / UMD formats")).optional(),
1643
+ extend: ((z$1.boolean()).describe("Extend global variable defined by name in IIFE / UMD formats")).optional(),
1643
1644
  esModule: ((z$1.literal("if-default-prop")).or(z$1.boolean())).optional(),
1644
- assetFileNames: (z$1.string()).optional(),
1645
- entryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1646
- chunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1647
- cssEntryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1648
- cssChunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1649
- minify: ((z$1.boolean()).describe("minify the bundled file.")).optional(),
1650
- name: ((z$1.string()).describe("name for UMD / IIFE format outputs")).optional(),
1651
- globals: ((z$1.record(z$1.string())).describe("global variable of UMD / IIFE dependencies (syntax: `key=value`)")).optional(),
1645
+ assetFileNames: ((z$1.string()).describe("Name pattern for asset files")).optional(),
1646
+ entryFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted entry chunks")).optional(),
1647
+ chunkFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted secondary chunks")).optional(),
1648
+ cssEntryFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted css entry chunks")).optional(),
1649
+ cssChunkFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted css secondary chunks")).optional(),
1650
+ minify: ((z$1.boolean()).describe("Minify the bundled file.")).optional(),
1651
+ name: ((z$1.string()).describe("Name for UMD / IIFE format outputs")).optional(),
1652
+ globals: ((z$1.record(z$1.string())).describe("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")).optional(),
1652
1653
  externalLiveBindings: (((z$1.boolean()).describe("external live bindings")).default(true)).optional(),
1653
- inlineDynamicImports: (((z$1.boolean()).describe("inline dynamic imports")).default(false)).optional(),
1654
+ inlineDynamicImports: (((z$1.boolean()).describe("Inline dynamic imports")).default(false)).optional(),
1654
1655
  advancedChunks: (z$1.strictObject({
1655
1656
  minSize: (z$1.number()).optional(),
1656
1657
  minShareCount: (z$1.number()).optional(),
@@ -1662,20 +1663,20 @@ const outputOptionsSchema = z$1.strictObject({
1662
1663
  minShareCount: (z$1.number()).optional()
1663
1664
  }))).optional()
1664
1665
  })).optional(),
1665
- comments: (z$1.enum(["none", "preserve-legal"])).optional()
1666
+ comments: ((z$1.enum(["none", "preserve-legal"])).describe("Control comments in the output")).optional()
1666
1667
  });
1667
1668
  const getAddonDescription = (placement, wrapper) => {
1668
- return `code to insert the ${bold(placement)} of the bundled file (${bold(wrapper)} the wrapper function).`;
1669
+ return `Code to insert the ${bold(placement)} of the bundled file (${bold(wrapper)} the wrapper function)`;
1669
1670
  };
1670
1671
  const outputCliOptionsSchema = (outputOptionsSchema.extend({
1671
1672
  banner: ((z$1.string()).describe(getAddonDescription("top", "outside"))).optional(),
1672
1673
  footer: ((z$1.string()).describe(getAddonDescription("bottom", "outside"))).optional(),
1673
1674
  intro: ((z$1.string()).describe(getAddonDescription("top", "inside"))).optional(),
1674
1675
  outro: ((z$1.string()).describe(getAddonDescription("bottom", "inside"))).optional(),
1675
- esModule: ((z$1.boolean()).describe("always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable).")).optional(),
1676
+ esModule: ((z$1.boolean()).describe("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")).optional(),
1676
1677
  advancedChunks: (z$1.strictObject({
1677
- minSize: ((z$1.number()).describe("minimum size of the chunk")).optional(),
1678
- minShareCount: ((z$1.number()).describe("minimum share count of the chunk")).optional()
1678
+ minSize: ((z$1.number()).describe("Minimum size of the chunk")).optional(),
1679
+ minShareCount: ((z$1.number()).describe("Minimum share count of the chunk")).optional()
1679
1680
  })).optional()
1680
1681
  })).omit({
1681
1682
  sourcemapPathTransform: true,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const { __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
4
- const { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } = require("../shared/src_index-__hrBC_u.cjs");
4
+ const { aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } = require("../shared/src_index-moiBhfVO.cjs");
5
5
  const { pathToFileURL } = __toESM(require("node:url"));
6
6
 
7
7
  //#region src/plugin/parallel-plugin.ts
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- const { VERSION, defineConfig, rolldown, watch } = require("../shared/src_index-__hrBC_u.cjs");
3
+ const { VERSION, defineConfig, rolldown, watch } = require("../shared/src_index-moiBhfVO.cjs");
4
4
 
5
5
  Object.defineProperty(exports, '__esModule', { value: true });
6
6
  exports.VERSION = VERSION;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  const { __toESM } = require("../shared/chunk-JoMxl5V2.cjs");
4
- const { PluginContextData, bindingifyPlugin, require_binding } = require("../shared/src_index-__hrBC_u.cjs");
4
+ const { PluginContextData, bindingifyPlugin, require_binding } = require("../shared/src_index-moiBhfVO.cjs");
5
5
  const { parentPort, workerData } = __toESM(require("node:worker_threads"));
6
6
 
7
7
  //#region src/parallel-plugin-worker.ts
package/dist/esm/cli.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import __node_module__ from 'node:module';
2
2
  const require = __node_module__.createRequire(import.meta.url)
3
- import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src_index-p8EqHxvt.mjs";
3
+ import { LogLevelOptionSchema, LogLevelSchema, LogLevelWithErrorSchema, RollupLogSchema, RollupLogWithStringSchema, __export, arraify, description, rolldown, version, watch } from "../shared/src_index-zKlGNTjP.mjs";
4
4
  import { createConsola } from "../shared/consola.36c0034f-Xyw7SC_7.mjs";
5
5
  import { default as nodePath, default as path } from "node:path";
6
6
  import { ZodFirstPartyTypeKind, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$1, ZodFirstPartyTypeKind as ZodFirstPartyTypeKind$2, z, z as z$1, z as z$2, z as z$3 } from "zod";
@@ -1586,29 +1586,29 @@ const inputOptionsSchema = z$2.strictObject({
1586
1586
  symlinks: (z$2.boolean()).optional(),
1587
1587
  tsconfigFilename: (z$2.string()).optional()
1588
1588
  })).optional(),
1589
- cwd: ((z$2.string()).describe("current working directory.")).optional(),
1590
- platform: ((((z$2.literal("node")).or(z$2.literal("browser"))).or(z$2.literal("neutral"))).describe(`platform for which the code should be generated (node, ${underline("browser")}, neutral).`)).optional(),
1591
- shimMissingExports: (z$2.boolean()).optional(),
1589
+ cwd: ((z$2.string()).describe("Current working directory")).optional(),
1590
+ platform: ((((z$2.literal("node")).or(z$2.literal("browser"))).or(z$2.literal("neutral"))).describe(`Platform for which the code should be generated (node, ${underline("browser")}, neutral)`)).optional(),
1591
+ shimMissingExports: ((z$2.boolean()).describe(`Create shim variables for missing exports`)).optional(),
1592
1592
  treeshake: (phantom()).optional(),
1593
- logLevel: (LogLevelOptionSchema.describe(`log level (${dim("silent")}, ${underline(gray("info"))}, debug, ${yellow("warn")})`)).optional(),
1593
+ logLevel: (LogLevelOptionSchema.describe(`Log level (${dim("silent")}, ${underline(gray("info"))}, debug, ${yellow("warn")})`)).optional(),
1594
1594
  onLog: ((z$2.function()).args(LogLevelSchema, RollupLogSchema, (z$2.function()).args(LogLevelWithErrorSchema, RollupLogWithStringSchema))).optional(),
1595
1595
  onwarn: ((z$2.function()).args(RollupLogSchema, (z$2.function()).args(RollupLogWithStringSchema.or((z$2.function()).returns(RollupLogWithStringSchema))))).optional(),
1596
- moduleTypes: (moduleTypesSchema.describe("module types for customized extensions.")).optional(),
1596
+ moduleTypes: (moduleTypesSchema.describe("Module types for customized extensions")).optional(),
1597
1597
  experimental: (z$2.strictObject({
1598
1598
  enableComposingJsPlugins: (z$2.boolean()).optional(),
1599
1599
  strictExecutionOrder: (z$2.boolean()).optional(),
1600
1600
  disableLiveBindings: (z$2.boolean()).optional()
1601
1601
  })).optional(),
1602
- define: ((z$2.record(z$2.string())).describe("define global variables")).optional(),
1602
+ define: ((z$2.record(z$2.string())).describe("Define global variables")).optional(),
1603
1603
  inject: (z$2.record((z$2.string()).or(z$2.tuple([z$2.string(), z$2.string()])))).optional(),
1604
1604
  profilerNames: (z$2.boolean()).optional(),
1605
1605
  jsx: jsxOptionsSchema.optional(),
1606
1606
  watch: (watchOptionsSchema.or(z$2.literal(false))).optional(),
1607
- dropLabels: (z$2.array(z$2.string())).optional()
1607
+ dropLabels: ((z$2.array(z$2.string())).describe("Remove labeled statements with these label names")).optional()
1608
1608
  });
1609
1609
  const inputCliOptionsSchema = (inputOptionsSchema.extend({
1610
1610
  external: ((z$2.array(z$2.string())).describe("Comma-separated list of module ids to exclude from the bundle `<module-id>,...`")).optional(),
1611
- inject: ((z$2.record(z$2.string())).describe("inject import statements on demand")).optional(),
1611
+ inject: ((z$2.record(z$2.string())).describe("Inject import statements on demand")).optional(),
1612
1612
  treeshake: (((z$2.boolean()).describe("enable treeshaking")).default(true)).optional()
1613
1613
  })).omit({
1614
1614
  input: true,
@@ -1623,33 +1623,34 @@ const inputCliOptionsSchema = (inputOptionsSchema.extend({
1623
1623
 
1624
1624
  //#endregion
1625
1625
  //#region src/options/output-options.ts
1626
- const ModuleFormatSchema = (((((((z$1.literal("es")).or(z$1.literal("cjs"))).or(z$1.literal("esm"))).or(z$1.literal("module"))).or(z$1.literal("commonjs"))).or(z$1.literal("iife"))).or(z$1.literal("umd"))).describe(`output format of the generated bundle (supports ${underline("esm")}, cjs, and iife).`);
1626
+ const ModuleFormatSchema = (((((((z$1.literal("es")).or(z$1.literal("cjs"))).or(z$1.literal("esm"))).or(z$1.literal("module"))).or(z$1.literal("commonjs"))).or(z$1.literal("iife"))).or(z$1.literal("umd"))).describe(`Output format of the generated bundle (supports ${underline("esm")}, cjs, and iife)`);
1627
1627
  const addonFunctionSchema = ((z$1.function()).args(phantom())).returns((z$1.string()).or(z$1.promise(z$1.string())));
1628
1628
  const chunkFileNamesFunctionSchema = ((z$1.function()).args(phantom())).returns(z$1.string());
1629
1629
  const outputOptionsSchema = z$1.strictObject({
1630
- dir: ((z$1.string()).describe("Output directory, defaults to `dist` if `file` is not set.")).optional(),
1630
+ dir: ((z$1.string()).describe("Output directory, defaults to `dist` if `file` is not set")).optional(),
1631
1631
  file: ((z$1.string()).describe("Single output file")).optional(),
1632
- exports: (((((z$1.literal("auto")).or(z$1.literal("named"))).or(z$1.literal("default"))).or(z$1.literal("none"))).describe(`specify a export mode (${underline("auto")}, named, default, none)`)).optional(),
1632
+ exports: (((((z$1.literal("auto")).or(z$1.literal("named"))).or(z$1.literal("default"))).or(z$1.literal("none"))).describe(`Specify a export mode (${underline("auto")}, named, default, none)`)).optional(),
1633
+ hashCharacters: ((((z$1.literal("base64")).or(z$1.literal("base36"))).or(z$1.literal("hex"))).describe("Use the specified character set for file hashes")).optional(),
1633
1634
  format: ModuleFormatSchema.optional(),
1634
- sourcemap: ((((z$1.boolean()).or(z$1.literal("inline"))).or(z$1.literal("hidden"))).describe(`generate sourcemap (\`-s inline\` for inline, or ${bold("pass the `-s` on the last argument if you want to generate `.map` file")}).`)).optional(),
1635
+ sourcemap: ((((z$1.boolean()).or(z$1.literal("inline"))).or(z$1.literal("hidden"))).describe(`Generate sourcemap (\`-s inline\` for inline, or ${bold("pass the `-s` on the last argument if you want to generate `.map` file")})`)).optional(),
1635
1636
  sourcemapIgnoreList: ((z$1.boolean()).or(phantom())).optional(),
1636
1637
  sourcemapPathTransform: (phantom()).optional(),
1637
1638
  banner: ((z$1.string()).or(addonFunctionSchema)).optional(),
1638
1639
  footer: ((z$1.string()).or(addonFunctionSchema)).optional(),
1639
1640
  intro: ((z$1.string()).or(addonFunctionSchema)).optional(),
1640
1641
  outro: ((z$1.string()).or(addonFunctionSchema)).optional(),
1641
- extend: ((z$1.boolean()).describe("extend global variable defined by name in IIFE / UMD formats")).optional(),
1642
+ extend: ((z$1.boolean()).describe("Extend global variable defined by name in IIFE / UMD formats")).optional(),
1642
1643
  esModule: ((z$1.literal("if-default-prop")).or(z$1.boolean())).optional(),
1643
- assetFileNames: (z$1.string()).optional(),
1644
- entryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1645
- chunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1646
- cssEntryFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1647
- cssChunkFileNames: ((z$1.string()).or(chunkFileNamesFunctionSchema)).optional(),
1648
- minify: ((z$1.boolean()).describe("minify the bundled file.")).optional(),
1649
- name: ((z$1.string()).describe("name for UMD / IIFE format outputs")).optional(),
1650
- globals: ((z$1.record(z$1.string())).describe("global variable of UMD / IIFE dependencies (syntax: `key=value`)")).optional(),
1644
+ assetFileNames: ((z$1.string()).describe("Name pattern for asset files")).optional(),
1645
+ entryFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted entry chunks")).optional(),
1646
+ chunkFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted secondary chunks")).optional(),
1647
+ cssEntryFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted css entry chunks")).optional(),
1648
+ cssChunkFileNames: (((z$1.string()).or(chunkFileNamesFunctionSchema)).describe("Name pattern for emitted css secondary chunks")).optional(),
1649
+ minify: ((z$1.boolean()).describe("Minify the bundled file.")).optional(),
1650
+ name: ((z$1.string()).describe("Name for UMD / IIFE format outputs")).optional(),
1651
+ globals: ((z$1.record(z$1.string())).describe("Global variable of UMD / IIFE dependencies (syntax: `key=value`)")).optional(),
1651
1652
  externalLiveBindings: (((z$1.boolean()).describe("external live bindings")).default(true)).optional(),
1652
- inlineDynamicImports: (((z$1.boolean()).describe("inline dynamic imports")).default(false)).optional(),
1653
+ inlineDynamicImports: (((z$1.boolean()).describe("Inline dynamic imports")).default(false)).optional(),
1653
1654
  advancedChunks: (z$1.strictObject({
1654
1655
  minSize: (z$1.number()).optional(),
1655
1656
  minShareCount: (z$1.number()).optional(),
@@ -1661,20 +1662,20 @@ const outputOptionsSchema = z$1.strictObject({
1661
1662
  minShareCount: (z$1.number()).optional()
1662
1663
  }))).optional()
1663
1664
  })).optional(),
1664
- comments: (z$1.enum(["none", "preserve-legal"])).optional()
1665
+ comments: ((z$1.enum(["none", "preserve-legal"])).describe("Control comments in the output")).optional()
1665
1666
  });
1666
1667
  const getAddonDescription = (placement, wrapper) => {
1667
- return `code to insert the ${bold(placement)} of the bundled file (${bold(wrapper)} the wrapper function).`;
1668
+ return `Code to insert the ${bold(placement)} of the bundled file (${bold(wrapper)} the wrapper function)`;
1668
1669
  };
1669
1670
  const outputCliOptionsSchema = (outputOptionsSchema.extend({
1670
1671
  banner: ((z$1.string()).describe(getAddonDescription("top", "outside"))).optional(),
1671
1672
  footer: ((z$1.string()).describe(getAddonDescription("bottom", "outside"))).optional(),
1672
1673
  intro: ((z$1.string()).describe(getAddonDescription("top", "inside"))).optional(),
1673
1674
  outro: ((z$1.string()).describe(getAddonDescription("bottom", "inside"))).optional(),
1674
- esModule: ((z$1.boolean()).describe("always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable).")).optional(),
1675
+ esModule: ((z$1.boolean()).describe("Always generate `__esModule` marks in non-ESM formats, defaults to `if-default-prop` (use `--no-esModule` to always disable)")).optional(),
1675
1676
  advancedChunks: (z$1.strictObject({
1676
- minSize: ((z$1.number()).describe("minimum size of the chunk")).optional(),
1677
- minShareCount: ((z$1.number()).describe("minimum share count of the chunk")).optional()
1677
+ minSize: ((z$1.number()).describe("Minimum size of the chunk")).optional(),
1678
+ minShareCount: ((z$1.number()).describe("Minimum share count of the chunk")).optional()
1678
1679
  })).optional()
1679
1680
  })).omit({
1680
1681
  sourcemapPathTransform: true,
@@ -1,6 +1,6 @@
1
1
  import __node_module__ from 'node:module';
2
2
  const require = __node_module__.createRequire(import.meta.url)
3
- import { __toESM, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src_index-p8EqHxvt.mjs";
3
+ import { __toESM, aliasPlugin, buildImportAnalysisPlugin, composeJsPlugins, dynamicImportVarsPlugin, experimental_scan, importGlobPlugin, jsonPlugin, loadFallbackPlugin, manifestPlugin, modulePreloadPolyfillPlugin, replacePlugin, require_binding, transformPlugin, wasmFallbackPlugin, wasmHelperPlugin } from "../shared/src_index-zKlGNTjP.mjs";
4
4
  import { pathToFileURL } from "node:url";
5
5
 
6
6
  //#region src/plugin/parallel-plugin.ts
@@ -1,5 +1,5 @@
1
1
  import __node_module__ from 'node:module';
2
2
  const require = __node_module__.createRequire(import.meta.url)
3
- import { VERSION, defineConfig, rolldown, watch } from "../shared/src_index-p8EqHxvt.mjs";
3
+ import { VERSION, defineConfig, rolldown, watch } from "../shared/src_index-zKlGNTjP.mjs";
4
4
 
5
5
  export { VERSION, defineConfig, rolldown, watch };
@@ -1,6 +1,6 @@
1
1
  import __node_module__ from 'node:module';
2
2
  const require = __node_module__.createRequire(import.meta.url)
3
- import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src_index-p8EqHxvt.mjs";
3
+ import { PluginContextData, __toESM, bindingifyPlugin, require_binding } from "../shared/src_index-zKlGNTjP.mjs";
4
4
  import { parentPort, workerData } from "node:worker_threads";
5
5
 
6
6
  //#region src/parallel-plugin-worker.ts
@@ -773,7 +773,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
773
773
  }
774
774
 
775
775
  //#endregion
776
- //#region src/options/utils.ts
776
+ //#region src/utils/normalize-string-or-regex.ts
777
777
  function normalizedStringOrRegex(pattern) {
778
778
  if (!pattern) {
779
779
  return undefined;
@@ -964,6 +964,9 @@ class PluginDriver {
964
964
  }
965
965
  function getObjectPlugins(plugins) {
966
966
  return plugins.filter((plugin) => {
967
+ if (!plugin) {
968
+ return undefined;
969
+ }
967
970
  if ("_parallel"in plugin) {
968
971
  return undefined;
969
972
  }
@@ -2484,12 +2487,13 @@ async function normalizeInputOptions(config) {
2484
2487
  //#endregion
2485
2488
  //#region src/utils/normalize-output-options.ts
2486
2489
  function normalizeOutputOptions(opts) {
2487
- const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, name: name, esModule: esModule, file: file } = opts;
2490
+ const { dir: dir, format: format, exports: exports, hashCharacters: hashCharacters, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, name: name, esModule: esModule, file: file } = opts;
2488
2491
  return {
2489
2492
  dir: dir,
2490
2493
  file,
2491
2494
  format: getFormat(format),
2492
2495
  exports: exports ?? "auto",
2496
+ hashCharacters: hashCharacters ?? "base64",
2493
2497
  sourcemap: sourcemap ?? false,
2494
2498
  sourcemapIgnoreList: typeof sourcemapIgnoreList === "function" ? sourcemapIgnoreList : sourcemapIgnoreList === false ? () => false : (relativeSourcePath, _sourcemapPath) => relativeSourcePath.includes("node_modules"),
2495
2499
  sourcemapPathTransform,
@@ -2547,7 +2551,7 @@ const getAddon = (config, name) => {
2547
2551
  //#endregion
2548
2552
  //#region src/options/bindingify-output-options.ts
2549
2553
  function bindingifyOutputOptions(outputOptions) {
2550
- const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, banner: banner, footer: footer, intro: intro, outro: outro, esModule: esModule, globals: globals, file: file } = outputOptions;
2554
+ const { dir: dir, format: format, exports: exports, hashCharacters: hashCharacters, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, banner: banner, footer: footer, intro: intro, outro: outro, esModule: esModule, globals: globals, file: file } = outputOptions;
2551
2555
  return {
2552
2556
  dir,
2553
2557
  file: file == null ? undefined : file,
@@ -2560,6 +2564,7 @@ function bindingifyOutputOptions(outputOptions) {
2560
2564
  }
2561
2565
  }(),
2562
2566
  exports,
2567
+ hashCharacters,
2563
2568
  sourcemap: bindingifySourcemap(sourcemap),
2564
2569
  sourcemapIgnoreList,
2565
2570
  sourcemapPathTransform,
@@ -803,7 +803,7 @@ function getLogHandler(level, code, logger, pluginName, logLevel) {
803
803
  }
804
804
 
805
805
  //#endregion
806
- //#region src/options/utils.ts
806
+ //#region src/utils/normalize-string-or-regex.ts
807
807
  function normalizedStringOrRegex(pattern) {
808
808
  if (!pattern) {
809
809
  return undefined;
@@ -994,6 +994,9 @@ class PluginDriver {
994
994
  }
995
995
  function getObjectPlugins(plugins) {
996
996
  return plugins.filter((plugin) => {
997
+ if (!plugin) {
998
+ return undefined;
999
+ }
997
1000
  if ("_parallel"in plugin) {
998
1001
  return undefined;
999
1002
  }
@@ -2514,12 +2517,13 @@ async function normalizeInputOptions(config) {
2514
2517
  //#endregion
2515
2518
  //#region src/utils/normalize-output-options.ts
2516
2519
  function normalizeOutputOptions(opts) {
2517
- const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, name: name, esModule: esModule, file: file } = opts;
2520
+ const { dir: dir, format: format, exports: exports, hashCharacters: hashCharacters, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, globals: globals, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, name: name, esModule: esModule, file: file } = opts;
2518
2521
  return {
2519
2522
  dir: dir,
2520
2523
  file,
2521
2524
  format: getFormat(format),
2522
2525
  exports: exports ?? "auto",
2526
+ hashCharacters: hashCharacters ?? "base64",
2523
2527
  sourcemap: sourcemap ?? false,
2524
2528
  sourcemapIgnoreList: typeof sourcemapIgnoreList === "function" ? sourcemapIgnoreList : sourcemapIgnoreList === false ? () => false : (relativeSourcePath, _sourcemapPath) => relativeSourcePath.includes("node_modules"),
2525
2529
  sourcemapPathTransform,
@@ -2577,7 +2581,7 @@ const getAddon = (config, name) => {
2577
2581
  //#endregion
2578
2582
  //#region src/options/bindingify-output-options.ts
2579
2583
  function bindingifyOutputOptions(outputOptions) {
2580
- const { dir: dir, format: format, exports: exports, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, banner: banner, footer: footer, intro: intro, outro: outro, esModule: esModule, globals: globals, file: file } = outputOptions;
2584
+ const { dir: dir, format: format, exports: exports, hashCharacters: hashCharacters, sourcemap: sourcemap, sourcemapIgnoreList: sourcemapIgnoreList, sourcemapPathTransform: sourcemapPathTransform, name: name, assetFileNames: assetFileNames, entryFileNames: entryFileNames, chunkFileNames: chunkFileNames, cssEntryFileNames: cssEntryFileNames, cssChunkFileNames: cssChunkFileNames, banner: banner, footer: footer, intro: intro, outro: outro, esModule: esModule, globals: globals, file: file } = outputOptions;
2581
2585
  return {
2582
2586
  dir,
2583
2587
  file: file == null ? undefined : file,
@@ -2590,6 +2594,7 @@ function bindingifyOutputOptions(outputOptions) {
2590
2594
  }
2591
2595
  }(),
2592
2596
  exports,
2597
+ hashCharacters,
2593
2598
  sourcemap: bindingifySourcemap(sourcemap),
2594
2599
  sourcemapIgnoreList,
2595
2600
  sourcemapPathTransform,
@@ -302,6 +302,7 @@ export interface BindingOutputOptions {
302
302
  footer?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>>
303
303
  format?: 'es' | 'cjs' | 'iife' | 'umd'
304
304
  globals?: Record<string, string>
305
+ hashCharacters?: 'base64' | 'base36' | 'hex'
305
306
  inlineDynamicImports?: boolean
306
307
  intro?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>>
307
308
  outro?: (chunk: RenderedChunk) => MaybePromise<VoidNullable<string>>
@@ -138,6 +138,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
138
138
  dir: z.ZodOptional<z.ZodString>;
139
139
  file: z.ZodOptional<z.ZodString>;
140
140
  exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
141
+ hashCharacters: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"base64">, z.ZodLiteral<"base36">]>, z.ZodLiteral<"hex">]>>;
141
142
  format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>;
142
143
  sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;
143
144
  sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<import("../../rollup").SourcemapIgnoreListOption, z.ZodTypeDef, import("../../rollup").SourcemapIgnoreListOption>]>>;
@@ -225,7 +226,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
225
226
  platform?: "node" | "browser" | "neutral" | undefined;
226
227
  shimMissingExports?: boolean | undefined;
227
228
  logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
228
- moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
229
+ moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
229
230
  define?: Record<string, string> | undefined;
230
231
  inject?: Record<string, string> | undefined;
231
232
  jsx?: {
@@ -252,6 +253,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
252
253
  minShareCount?: number | undefined;
253
254
  } | undefined;
254
255
  dir?: string | undefined;
256
+ hashCharacters?: "base64" | "base36" | "hex" | undefined;
255
257
  format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
256
258
  sourcemap?: boolean | "inline" | "hidden" | undefined;
257
259
  extend?: boolean | undefined;
@@ -275,7 +277,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
275
277
  platform?: "node" | "browser" | "neutral" | undefined;
276
278
  shimMissingExports?: boolean | undefined;
277
279
  logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
278
- moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
280
+ moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
279
281
  define?: Record<string, string> | undefined;
280
282
  inject?: Record<string, string> | undefined;
281
283
  jsx?: {
@@ -302,6 +304,7 @@ export declare const cliOptionsSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
302
304
  minShareCount?: number | undefined;
303
305
  } | undefined;
304
306
  dir?: string | undefined;
307
+ hashCharacters?: "base64" | "base36" | "hex" | undefined;
305
308
  format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
306
309
  sourcemap?: boolean | "inline" | "hidden" | undefined;
307
310
  extend?: boolean | undefined;
@@ -150,7 +150,7 @@ export declare const inputOptionsSchema: z.ZodObject<{
150
150
  logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
151
151
  onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
152
152
  onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
153
- moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
153
+ moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
154
154
  experimental?: {
155
155
  strictExecutionOrder?: boolean | undefined;
156
156
  disableLiveBindings?: boolean | undefined;
@@ -203,7 +203,7 @@ export declare const inputOptionsSchema: z.ZodObject<{
203
203
  logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
204
204
  onLog?: ((args_0: "info" | "debug" | "warn", args_1: any, args_2: (args_0: "info" | "debug" | "warn" | "error", args_1: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
205
205
  onwarn?: ((args_0: any, args_1: (args_0: any, ...args: unknown[]) => unknown, ...args: unknown[]) => unknown) | undefined;
206
- moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
206
+ moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
207
207
  experimental?: {
208
208
  strictExecutionOrder?: boolean | undefined;
209
209
  disableLiveBindings?: boolean | undefined;
@@ -369,7 +369,7 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
369
369
  platform?: "node" | "browser" | "neutral" | undefined;
370
370
  shimMissingExports?: boolean | undefined;
371
371
  logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
372
- moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
372
+ moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
373
373
  define?: Record<string, string> | undefined;
374
374
  inject?: Record<string, string> | undefined;
375
375
  jsx?: {
@@ -389,7 +389,7 @@ export declare const inputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.extend
389
389
  platform?: "node" | "browser" | "neutral" | undefined;
390
390
  shimMissingExports?: boolean | undefined;
391
391
  logLevel?: "info" | "debug" | "warn" | "silent" | undefined;
392
- moduleTypes?: Record<string, "jsx" | "js" | "ts" | "tsx" | "json" | "text" | "base64" | "dataurl" | "binary" | "empty" | "css"> | undefined;
392
+ moduleTypes?: Record<string, "jsx" | "base64" | "js" | "ts" | "tsx" | "json" | "text" | "dataurl" | "binary" | "empty" | "css"> | undefined;
393
393
  define?: Record<string, string> | undefined;
394
394
  inject?: Record<string, string> | undefined;
395
395
  jsx?: {
@@ -5,6 +5,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
5
5
  dir: z.ZodOptional<z.ZodString>;
6
6
  file: z.ZodOptional<z.ZodString>;
7
7
  exports: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"named">]>, z.ZodLiteral<"default">]>, z.ZodLiteral<"none">]>>;
8
+ hashCharacters: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"base64">, z.ZodLiteral<"base36">]>, z.ZodLiteral<"hex">]>>;
8
9
  format: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"es">, z.ZodLiteral<"cjs">]>, z.ZodLiteral<"esm">]>, z.ZodLiteral<"module">]>, z.ZodLiteral<"commonjs">]>, z.ZodLiteral<"iife">]>, z.ZodLiteral<"umd">]>>;
9
10
  sourcemap: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodBoolean, z.ZodLiteral<"inline">]>, z.ZodLiteral<"hidden">]>>;
10
11
  sourcemapIgnoreList: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodType<SourcemapIgnoreListOption, z.ZodTypeDef, SourcemapIgnoreListOption>]>>;
@@ -99,6 +100,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
99
100
  minShareCount?: number | undefined;
100
101
  } | undefined;
101
102
  dir?: string | undefined;
103
+ hashCharacters?: "base64" | "base36" | "hex" | undefined;
102
104
  format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
103
105
  sourcemap?: boolean | "inline" | "hidden" | undefined;
104
106
  extend?: boolean | undefined;
@@ -126,6 +128,7 @@ export declare const outputCliOptionsSchema: z.ZodObject<Omit<z.objectUtil.exten
126
128
  minShareCount?: number | undefined;
127
129
  } | undefined;
128
130
  dir?: string | undefined;
131
+ hashCharacters?: "base64" | "base36" | "hex" | undefined;
129
132
  format?: "es" | "cjs" | "esm" | "module" | "commonjs" | "iife" | "umd" | undefined;
130
133
  sourcemap?: boolean | "inline" | "hidden" | undefined;
131
134
  extend?: boolean | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { MaybeArray } from '../types/utils';
2
- import type { StringOrRegExp } from '../constants/types';
2
+ import type { StringOrRegExp } from '../types/utils';
3
3
  import type { ModuleType } from '../index';
4
4
  export type StringFilter = MaybeArray<StringOrRegExp> | {
5
5
  include?: MaybeArray<StringOrRegExp>;
@@ -119,5 +119,6 @@ export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
119
119
  api?: A;
120
120
  }
121
121
  export type RolldownPlugin<A = any> = Plugin<A> | BuiltinPlugin | ParallelPlugin;
122
- export type RolldownPluginRec<A = any> = RolldownPlugin<A> | RolldownPlugin<A>[];
122
+ export type RolldownPluginOption<A = any> = NullValue<RolldownPlugin<A>> | false;
123
+ export type RolldownPluginRec<A = any> = RolldownPluginOption<A> | RolldownPluginOption<A>[];
123
124
  export {};
@@ -8,6 +8,7 @@ export interface OutputOptions {
8
8
  dir?: string;
9
9
  file?: string;
10
10
  exports?: 'auto' | 'named' | 'default' | 'none';
11
+ hashCharacters?: 'base64' | 'base36' | 'hex';
11
12
  format?: ModuleFormat;
12
13
  sourcemap?: boolean | 'inline' | 'hidden';
13
14
  sourcemapIgnoreList?: boolean | SourcemapIgnoreListOption;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rolldown",
3
- "version": "0.14.0-snapshot-b739329-20241109003240",
3
+ "version": "0.14.0-snapshot-a07909e-20241111003354",
4
4
  "description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
5
5
  "homepage": "https://rolldown.rs/",
6
6
  "repository": {
@@ -104,21 +104,21 @@
104
104
  "why-is-node-running": "^3.0.0",
105
105
  "zod-to-json-schema": "^3.23.2",
106
106
  "@rolldown/testing": "0.0.1",
107
- "rolldown": "0.14.0-snapshot-b739329-20241109003240"
107
+ "rolldown": "0.14.0-snapshot-a07909e-20241111003354"
108
108
  },
109
109
  "optionalDependencies": {
110
- "@rolldown/binding-darwin-arm64": "0.14.0-snapshot-b739329-20241109003240",
111
- "@rolldown/binding-darwin-x64": "0.14.0-snapshot-b739329-20241109003240",
112
- "@rolldown/binding-freebsd-x64": "0.14.0-snapshot-b739329-20241109003240",
113
- "@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-b739329-20241109003240",
114
- "@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-b739329-20241109003240",
115
- "@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-b739329-20241109003240",
116
- "@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-b739329-20241109003240",
117
- "@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-b739329-20241109003240",
118
- "@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-b739329-20241109003240",
119
- "@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-b739329-20241109003240",
120
- "@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-b739329-20241109003240",
121
- "@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-b739329-20241109003240"
110
+ "@rolldown/binding-darwin-arm64": "0.14.0-snapshot-a07909e-20241111003354",
111
+ "@rolldown/binding-darwin-x64": "0.14.0-snapshot-a07909e-20241111003354",
112
+ "@rolldown/binding-freebsd-x64": "0.14.0-snapshot-a07909e-20241111003354",
113
+ "@rolldown/binding-linux-arm-gnueabihf": "0.14.0-snapshot-a07909e-20241111003354",
114
+ "@rolldown/binding-linux-arm64-gnu": "0.14.0-snapshot-a07909e-20241111003354",
115
+ "@rolldown/binding-linux-x64-gnu": "0.14.0-snapshot-a07909e-20241111003354",
116
+ "@rolldown/binding-linux-x64-musl": "0.14.0-snapshot-a07909e-20241111003354",
117
+ "@rolldown/binding-linux-arm64-musl": "0.14.0-snapshot-a07909e-20241111003354",
118
+ "@rolldown/binding-wasm32-wasi": "0.14.0-snapshot-a07909e-20241111003354",
119
+ "@rolldown/binding-win32-arm64-msvc": "0.14.0-snapshot-a07909e-20241111003354",
120
+ "@rolldown/binding-win32-x64-msvc": "0.14.0-snapshot-a07909e-20241111003354",
121
+ "@rolldown/binding-win32-ia32-msvc": "0.14.0-snapshot-a07909e-20241111003354"
122
122
  },
123
123
  "scripts": {
124
124
  "# Scrips for binding #": "_",
@@ -1 +0,0 @@
1
- export type StringOrRegExp = string | RegExp;