Skip to content

Interface: GeneratedCodeOptions

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:192

Properties

preset?

ts
optional preset: GeneratedCodePreset;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:212

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

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

profilerNames?

ts
optional profilerNames: boolean;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:223

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?

ts
optional symbols: boolean;

Defined in: node_modules/.pnpm/rolldown@1.0.0-beta.53/node_modules/rolldown/dist/shared/define-config-BS8Bt-r8.d.mts:197

Whether to use Symbol.toStringTag for namespace objects.

Default

ts
false

Released under the MIT License.