Skip to content

Interface: GeneratedCodeOptions

Properties

preset?

Allows choosing one of the presets listed above while overriding some options.

js
export default {
  output: {
    generatedCode: {
      preset: 'es2015',
      symbols: false
    }
  }
};

Default

ts
'es2015'

profilerNames?

  • Type: optional profilerNames: boolean

Whether to add readable names to internal variables for profiling purposes.

When enabled, generated code will use descriptive variable names that correspond to the original module names, making it easier to profile and debug the bundled code.

Default

false

Note

Enabling this option makes the generated output more difficult to minify effectively. For this reason, it should generally be avoided for libraries and production builds.

Only enable this option when you specifically need better profiling support during development or debugging.


symbols?

  • Type: optional symbols: boolean

Whether to use Symbol.toStringTag for namespace objects.

Default

ts
false

Released under the MIT License.