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,7 @@
import { find, findIndex, remove, uniq } from "lodash";
import find from "lodash/find";
import findIndex from "lodash/findIndex";
import remove from "lodash/remove";
import uniq from "lodash/uniq";
import randomstring from "randomstring";
import { Identifier, Transaction, Op, FindOptions } from "sequelize";
import {

View File

@@ -1,4 +1,5 @@
import { compact, uniq } from "lodash";
import compact from "lodash/compact";
import uniq from "lodash/uniq";
import randomstring from "randomstring";
import type { SaveOptions } from "sequelize";
import {

View File

@@ -1,5 +1,5 @@
import crypto from "crypto";
import { isEmpty } from "lodash";
import isEmpty from "lodash/isEmpty";
import { SaveOptions } from "sequelize";
import {
Column,

View File

@@ -1,4 +1,4 @@
import { isNil } from "lodash";
import isNil from "lodash/isNil";
import vaults from "@server/database/vaults";
import Logger from "@server/logging/Logger";

View File

@@ -2,7 +2,8 @@
import path from "path";
import { glob } from "glob";
import Router from "koa-router";
import { find, sortBy } from "lodash";
import find from "lodash/find";
import sortBy from "lodash/sortBy";
import env from "@server/env";
import Team from "@server/models/Team";

View File

@@ -3,7 +3,8 @@ import {
yDocToProsemirrorJSON,
} from "@getoutline/y-prosemirror";
import { JSDOM } from "jsdom";
import { escapeRegExp, startCase } from "lodash";
import escapeRegExp from "lodash/escapeRegExp";
import startCase from "lodash/startCase";
import { Node } from "prosemirror-model";
import * as Y from "yjs";
import textBetween from "@shared/editor/lib/textBetween";

View File

@@ -1,6 +1,7 @@
import removeMarkdown from "@tommoor/remove-markdown";
import invariant from "invariant";
import { find, map } from "lodash";
import find from "lodash/find";
import map from "lodash/map";
import queryParser from "pg-tsquery";
import { Op, QueryTypes, WhereOptions } from "sequelize";
import { DateFilter } from "@shared/types";

View File

@@ -1,4 +1,4 @@
import { size } from "lodash";
import size from "lodash/size";
import { addAttributeOptions } from "sequelize-typescript";
/**

View File

@@ -1,4 +1,4 @@
import { size } from "lodash";
import size from "lodash/size";
import { Node } from "prosemirror-model";
import { addAttributeOptions } from "sequelize-typescript";
import { ProsemirrorData } from "@shared/types";