update(dist): Remove rollup and use vite to build lib

* Remove custom tsconfig paths to avoid resolving issues on published package
This commit is contained in:
Braks
2021-11-06 08:54:35 +01:00
parent 64df75d405
commit 61779638ac
59 changed files with 282 additions and 177 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ import {
NodeExtent,
Dimensions,
FlowStore,
} from '~/types'
} from '../types'
export const isInputDOMNode = (e: KeyboardEvent | MouseEvent): boolean => {
const target = e.target as HTMLElement
@@ -34,7 +34,7 @@ export const clampPosition = (position: XYPosition, extent: NodeExtent): XYPosit
export const getHostForElement = (element: HTMLElement): Document => {
const doc = element.getRootNode() as Document
if ('getElementFromPoint' in doc) return doc
else return false as any
else return window.document
}
export const isEdge = (element: Node | Connection | Edge): element is Edge =>