mirror of
https://github.com/tnypxl/rollup.git
synced 2025-12-15 23:13:22 +00:00
Merge branch 'claude/fix-bugs-and-gaps-01DvJSzruQh49DU6XK5AykQU' (#4)
This commit is contained in:
@@ -92,6 +92,10 @@ func (c *Config) Validate() error {
|
||||
return fmt.Errorf("file_extensions or sites must be specified")
|
||||
}
|
||||
|
||||
if c.OutputType != "" && c.OutputType != "single" && c.OutputType != "separate" {
|
||||
return fmt.Errorf("output_type must be 'single' or 'separate'")
|
||||
}
|
||||
|
||||
if c.RequestsPerSecond != nil && *c.RequestsPerSecond <= 0 {
|
||||
return fmt.Errorf("requests_per_second must be positive")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user