chore: Remove optimize imports to allow vite upgrade (#5691)

This commit is contained in:
Tom Moor
2023-08-14 14:44:58 -04:00
committed by GitHub
parent a71ad43c31
commit b7bfc4bb1a
138 changed files with 207 additions and 171 deletions

View File

@@ -1,4 +1,4 @@
import { groupBy } from "lodash";
import groupBy from "lodash/groupBy";
import Logger from "@server/logging/Logger";
import { timeout } from "./timers";

View File

@@ -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";

View File

@@ -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";

View File

@@ -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

View File

@@ -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;

View File

@@ -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";

View File

@@ -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";

View File

@@ -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";

View File

@@ -1,4 +1,4 @@
import { repeat } from "lodash";
import repeat from "lodash/repeat";
import TurndownService from "turndown";
const highlightRegExp = /brush: ([a-z0-9]+);/;

View File

@@ -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";