Skip to content

Interface: ManglePropertiesOptions

Extends

  • Omit<BindingManglePropertiesOptions, "cache">

Properties

cache?

  • Type: Record<string, string | false>
  • Optional

Stable mappings from original names to output names. false reserves an original name. String targets must be valid identifiers and cannot be __proto__, constructor, or prototype. Generated mappings are returned as RolldownOutput.mangleCache.


debug?

  • Type: boolean
  • Optional

Generate readable _$name$_-style output names.

Default

ts
false

Inherited from

Omit.debug


exclude?

  • Type: RegExp
  • Optional

JavaScript RegExp excluding property names selected by include.

Inherited from

Omit.exclude


include

  • Type: RegExp

JavaScript RegExp selecting property names to mangle. The source and flags are compiled with Rust's regex engine. Flags i, m, s, and u are supported.

Inherited from

Omit.include


quoted?

  • Type: boolean
  • Optional

Mangle quoted property occurrences in addition to unquoted occurrences.

Default

ts
false

Inherited from

Omit.quoted


reserved?

  • Type: string[]
  • Optional

Exact names that are neither mangled nor emitted as automatic output names.

Inherited from

Omit.reserved

Was this page helpful?