mirror of
https://github.com/Kong/insomnia.git
synced 2026-08-04 11:52:33 -04:00
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:
@@ -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';
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user