-
-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Clear and concise description of the problem
Currently, it's challenging to create type-safe configuration generators because:
- Critical option types aren't exported
- Arrayable wrapping forces unnecessary array handling when creating single configs
Suggested solution
- Export key option types
export type {} from 'rolldown'
// src/index.ts
export type {
// region re-export from options, and maybe more
Format,
Sourcemap,
// endregion
Options,
ResolvedOptions,
UserConfig,
UserConfigFn,
} from './options'
export {
ExternalOption,
InputOption,
InputOptions,
InternalModuleFormat,
MinifyOptions,
ModuleFormat,
OutputOptions,
} from 'rolldown'
- Make UserConfig non-arrayable
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request