chore: Remove optimize imports to allow vite upgrade (#5691)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { escape } from "lodash";
|
||||
import escape from "lodash/escape";
|
||||
import { Node } from "prosemirror-model";
|
||||
import slugify from "slugify";
|
||||
|
||||
|
||||
@@ -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"))
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { trim } from "lodash";
|
||||
import trim from "lodash/trim";
|
||||
import env from "../env";
|
||||
|
||||
type Domain = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { escapeRegExp } from "lodash";
|
||||
import escapeRegExp from "lodash/escapeRegExp";
|
||||
import env from "../env";
|
||||
import { parseDomain } from "./domains";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user