fix: restore object alias format in vite.config.ts to fix rollup build

Array-form alias with find:'~' was not matching prefix imports like
~/common/insomnia-fetch in the react-router production build. Object
form behaves correctly in Vite 7.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jackkav
2026-05-27 06:42:57 +02:00
parent 85e3922a8b
commit 7fd38af568
2 changed files with 13 additions and 0 deletions

View File

@@ -38,6 +38,11 @@ import { matchIdIsh } from './db/models/util';
import { loadWorkspace, promptWorkspace } from './db/models/workspace';
import type { Database } from './db/types';
import { InsoError } from './errors';
<<<<<<< Updated upstream
=======
import { LogLevels } from 'consola';
>>>>>>> Stashed changes
import { BasicReporter, logger } from './logger';
import { logTestResult, logTestResultSummary, reporterTypes, type TestReporter } from './reporter';
import { generateDocumentation } from './scripts/docs';

View File

@@ -1,4 +1,8 @@
<<<<<<< Updated upstream
import type { ConsolaOptions, LogObject, LogType } from 'consola';
=======
import type { ConsolaOptions, LogObject, logType } from 'consola';
>>>>>>> Stashed changes
import { createConsola } from 'consola';
type LogsByType = Partial<Record<LogType, string[]>>;
@@ -6,6 +10,10 @@ type LogsByType = Partial<Record<LogType, string[]>>;
type ModifiedConsola = ReturnType<typeof createConsola> & { __getLogs: () => LogsByType };
const consolaLogger = createConsola({
<<<<<<< Updated upstream
=======
fancy: true,
>>>>>>> Stashed changes
formatOptions: {
date: false,
},