Qualify CJS-only module imports

This commit is contained in:
Fedor Indutny
2025-09-19 13:05:51 -07:00
committed by GitHub
parent 140241b83f
commit 40eaf078cc
401 changed files with 1278 additions and 593 deletions

View File

@@ -9,7 +9,7 @@ import { CircularBuffer } from 'cirbuf';
import type { BrowserWindow } from 'electron';
import { app, ipcMain as ipc } from 'electron';
import readFirstLine from 'firstline';
import { filter, flatten, map, pick, sortBy } from 'lodash';
import lodash from 'lodash';
import {
createReadStream,
mkdirSync,
@@ -32,6 +32,8 @@ import { setPinoDestination, log } from './log.js';
import type { FetchLogIpcData, LogEntryType } from './shared.js';
import { LogLevel, isLogEntry } from './shared.js';
const { filter, flatten, map, pick, sortBy } = lodash;
const MAX_LOG_LINES = 10_000_000;
let isInitialized = false;