mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: decouple pure functions from hyperlink to prevent mermaid bundling (#7710)
* move hyperlink code into its folder * move pure js functions to hyperlink/helpers and move actionLink to actions * fix tests * fix
This commit is contained in:
parent
79d9dc2f8f
commit
2e719ff671
9 changed files with 198 additions and 176 deletions
|
@ -31,8 +31,11 @@ import { getSelectedElements } from "../../scene/selection";
|
|||
import { isLinearElementType } from "../../element/typeChecks";
|
||||
import { Mutable } from "../../utility-types";
|
||||
import { assertNever } from "../../utils";
|
||||
import { createTestHook } from "../../components/App";
|
||||
|
||||
const readFile = util.promisify(fs.readFile);
|
||||
// so that window.h is available when App.tsx is not imported as well.
|
||||
createTestHook();
|
||||
|
||||
const { h } = window;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue