fix: don't bundle react and jotai when importing from scene (#7640)

* don't bundle react and jotai when importing from scene

* fix
This commit is contained in:
Aakansha Doshi 2024-02-01 18:24:17 +05:30 committed by GitHub
parent 90ad885446
commit 1c39bd5781
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 3 deletions

View File

@ -216,7 +216,6 @@ import {
getNormalizedZoom,
getSelectedElements,
hasBackground,
isOverScrollBars,
isSomeElementSelected,
} from "../scene";
import Scene from "../scene/Scene";
@ -409,6 +408,7 @@ import { LaserTrails } from "../laser-trails";
import { withBatchedUpdates, withBatchedUpdatesThrottled } from "../reactUtils";
import { getRenderOpacity } from "../renderer/renderElement";
import { textWysiwyg } from "../element/textWysiwyg";
import { isOverScrollBars } from "../scene/scrollbars";
const AppContext = React.createContext<AppClassProperties>(null!);
const AppPropsContext = React.createContext<AppProps>(null!);

View File

@ -1,4 +1,3 @@
export { isOverScrollBars } from "./scrollbars";
export {
isSomeElementSelected,
getElementsWithinSelection,

View File

@ -31,7 +31,7 @@ import type { throttleRAF } from "./utils";
import { Spreadsheet } from "./charts";
import { Language } from "./i18n";
import { ClipboardData } from "./clipboard";
import { isOverScrollBars } from "./scene";
import { isOverScrollBars } from "./scene/scrollbars";
import { MaybeTransformHandleType } from "./element/transformHandles";
import Library from "./data/library";
import type { FileSystemHandle } from "./data/filesystem";