Interface: GeneratedCodeOptions
Defined in: options/output-options.ts:12
Properties
preset?
- Type:
optionalpreset:GeneratedCodePreset
Defined in: options/output-options.ts:34
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:
optionalprofilerNames:boolean
Defined in: options/output-options.ts:45
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:
optionalsymbols:boolean
Defined in: options/output-options.ts:17
Whether to use Symbol.toStringTag for namespace objects.
Default
ts
false