generatedCode
- Type:
Partial<object with the properties below> - Optional
Which language features Rolldown can safely use in generated code.
This will not transpile any user code but only change the code Rolldown uses in wrappers and helpers.
preset?
- Type:
GeneratedCodePreset - Optional
Allows choosing one of the presets listed above while overriding some options.
export default {
output: {
generatedCode: {
preset: 'es2015',
symbols: false
}
}
};Default
'es2015'profilerNames?
- Type:
boolean - Optional
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:
boolean - Optional
Whether to use Symbol.toStringTag for namespace objects.
Default
false