CRBT-Team/Purplet

View on GitHub
packages/purplet/src/config/vite.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function createViteConfig has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export async function createViteConfig(config: ResolvedConfig, mode: 'development' | 'production') {
  const userViteConfig = await (typeof config.vite === 'function' ? config.vite() : config.vite);

  const alias: Record<string, string> = {};

Severity: Minor
Found in packages/purplet/src/config/vite.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status