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
    }
  }
};

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.

Note: Enabling this option makes the output more difficult to minify effectively.

Default

ts
false

symbols?

  • Type: optional symbols: boolean

Whether to use Symbol.toStringTag for namespace objects.

Default

ts
false

Released under the MIT License.