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,5 +1,5 @@
import JSZip from "jszip";
import { omit } from "lodash";
import omit from "lodash/omit";
import { NavigationNode } from "@shared/types";
import { parser } from "@server/editor";
import env from "@server/env";

View File

@@ -1,5 +1,5 @@
import fs from "fs";
import { truncate } from "lodash";
import truncate from "lodash/truncate";
import { FileOperationState, NotificationEventType } from "@shared/types";
import ExportFailureEmail from "@server/emails/templates/ExportFailureEmail";
import ExportSuccessEmail from "@server/emails/templates/ExportSuccessEmail";

View File

@@ -1,5 +1,6 @@
import JSZip from "jszip";
import { escapeRegExp, find } from "lodash";
import escapeRegExp from "lodash/escapeRegExp";
import find from "lodash/find";
import mime from "mime-types";
import { Node } from "prosemirror-model";
import { v4 as uuidv4 } from "uuid";

View File

@@ -1,5 +1,5 @@
import JSZip from "jszip";
import { escapeRegExp } from "lodash";
import escapeRegExp from "lodash/escapeRegExp";
import mime from "mime-types";
import { v4 as uuidv4 } from "uuid";
import documentImporter from "@server/commands/documentImporter";

View File

@@ -1,6 +1,7 @@
import path from "path";
import JSZip from "jszip";
import { compact, escapeRegExp } from "lodash";
import compact from "lodash/compact";
import escapeRegExp from "lodash/escapeRegExp";
import mime from "mime-types";
import { v4 as uuidv4 } from "uuid";
import documentImporter from "@server/commands/documentImporter";

View File

@@ -1,5 +1,5 @@
import { S3 } from "aws-sdk";
import { truncate } from "lodash";
import truncate from "lodash/truncate";
import {
CollectionPermission,
CollectionSort,

View File

@@ -1,5 +1,5 @@
import { subHours } from "date-fns";
import { differenceBy } from "lodash";
import differenceBy from "lodash/differenceBy";
import { Op } from "sequelize";
import { NotificationEventType } from "@shared/types";
import { createSubscriptionsForDocument } from "@server/commands/subscriptionCreator";