chore: Remove optimize imports to allow vite upgrade (#5691)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { groupBy } from "lodash";
|
||||
import groupBy from "lodash/groupBy";
|
||||
import Logger from "@server/logging/Logger";
|
||||
import { timeout } from "./timers";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import fs from "fs";
|
||||
import path from "path";
|
||||
import JSZip from "jszip";
|
||||
import { find } from "lodash";
|
||||
import find from "lodash/find";
|
||||
import tmp from "tmp";
|
||||
import { bytesToHumanReadable } from "@shared/utils/files";
|
||||
import { ValidationError } from "@server/errors";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import querystring from "querystring";
|
||||
import { addMonths } from "date-fns";
|
||||
import { Context } from "koa";
|
||||
import { pick } from "lodash";
|
||||
import pick from "lodash/pick";
|
||||
import { Client } from "@shared/types";
|
||||
import { getCookieDomain } from "@shared/utils/domains";
|
||||
import env from "@server/env";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import formidable from "formidable";
|
||||
import { Request } from "koa";
|
||||
import { isArray } from "lodash";
|
||||
import isArray from "lodash/isArray";
|
||||
|
||||
/**
|
||||
* Get the first file from an incoming koa request
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { uniq, compact } from "lodash";
|
||||
import compact from "lodash/compact";
|
||||
import uniq from "lodash/uniq";
|
||||
|
||||
const attachmentRedirectRegex =
|
||||
/\/api\/attachments\.redirect\?id=(?<id>[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/gi;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Queue from "bull";
|
||||
import { snakeCase } from "lodash";
|
||||
import snakeCase from "lodash/snakeCase";
|
||||
import { Second } from "@shared/utils/time";
|
||||
import env from "@server/env";
|
||||
import Metrics from "@server/logging/Metrics";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import util from "util";
|
||||
import AWS, { S3 } from "aws-sdk";
|
||||
import fetch from "fetch-with-proxy";
|
||||
import { compact } from "lodash";
|
||||
import compact from "lodash/compact";
|
||||
import { useAgent } from "request-filtering-agent";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import Logger from "@server/logging/Logger";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import chalk from "chalk";
|
||||
import { isEmpty } from "lodash";
|
||||
import isEmpty from "lodash/isEmpty";
|
||||
import { migrations } from "@server/database/sequelize";
|
||||
import env from "@server/env";
|
||||
import Logger from "@server/logging/Logger";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { repeat } from "lodash";
|
||||
import repeat from "lodash/repeat";
|
||||
import TurndownService from "turndown";
|
||||
|
||||
const highlightRegExp = /brush: ([a-z0-9]+);/;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { existsSync } from "fs";
|
||||
import path from "path";
|
||||
import glob from "glob";
|
||||
import { startCase } from "lodash";
|
||||
import startCase from "lodash/startCase";
|
||||
import env from "@server/env";
|
||||
import Logger from "@server/logging/Logger";
|
||||
import { UnfurlResolver } from "@server/types";
|
||||
|
||||
Reference in New Issue
Block a user