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 { escapeRegExp } from "lodash";
import escapeRegExp from "lodash/escapeRegExp";
import { Node } from "prosemirror-model";
import { Command, Plugin, PluginKey } from "prosemirror-state";
import { Decoration, DecorationSet } from "prosemirror-view";

View File

@@ -1,4 +1,5 @@
import { flattenDeep, padStart } from "lodash";
import flattenDeep from "lodash/flattenDeep";
import padStart from "lodash/padStart";
import { Node } from "prosemirror-model";
import { Plugin, PluginKey, Transaction } from "prosemirror-state";
import { Decoration, DecorationSet } from "prosemirror-view";

View File

@@ -1,4 +1,4 @@
import { escape } from "lodash";
import escape from "lodash/escape";
import { Node } from "prosemirror-model";
import slugify from "slugify";

View File

@@ -26,8 +26,8 @@ function isAttachment(token: Token) {
return (
// internal
href?.startsWith("/api/attachments.redirect") ||
// external (public share are pre-signed and this is a reasonable way of detecting them)
href?.startsWith("/api/attachments.redirect") ||
((href?.startsWith(env.AWS_S3_UPLOAD_BUCKET_URL) ||
href?.startsWith(env.AWS_S3_ACCELERATE_URL)) &&
href?.includes("X-Amz-Signature"))

View File

@@ -1,4 +1,4 @@
import { trim } from "lodash";
import trim from "lodash/trim";
import env from "../env";
type Domain = {

View File

@@ -1,5 +1,5 @@
import emojiRegex from "emoji-regex";
import { deburr } from "lodash";
import deburr from "lodash/deburr";
import naturalSort from "natural-sort";
type NaturalSortOptions = {

View File

@@ -1,4 +1,4 @@
import { escapeRegExp } from "lodash";
import escapeRegExp from "lodash/escapeRegExp";
import env from "../env";
import { parseDomain } from "./domains";