feat: offload parsing elements to worker

* when we're not in ssr environment we use a web worker to parse the elements as this blocks the main thread when there's a good amount of nodes/edges to parse
* when in ssr we don't really care about the main thread blocking so we just parse them like usual
* update vite to latest

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-20 15:52:28 +01:00
parent d1e59ef322
commit d335944e56
9 changed files with 222 additions and 130 deletions

View File

@@ -59,7 +59,7 @@
"typescript": "^4.4.4",
"typescript-transform-paths": "^3.3.1",
"unplugin-auto-import": "^0.4.12",
"vite": "^2.6.10",
"vite": "^2.6.14",
"vite-svg-loader": "^2.2.0",
"vue": "^3.2.22",
"vue-router": "^4.0.12",