Skip to content

Commit ccc69dc

Browse files
graph: package wasm file
* The `graphvizlib.wasm` file provided by `@hpcc-js/wasm` needs to be included in `dist/js`. * It is then loaded async by a JS script imported by the graph view. * At the time of writing we are using Webpack 4 which doesn't seem to play nicely with this approach so the best solution I can come up with is to symlink the wasm file into the `public/js` directory. * This symlink will be broken until you `yarn install`. * This hack might not be needed when we upgrade to Webpack 5, however, this might just be due to the way HPCC packages graphviz.
1 parent e26d672 commit ccc69dc

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44

55
# Cylc UI
66

7-
## TODO
8-
9-
I haven't managed to configure webpack to pass through the WASM files yet
10-
so for the moment you have to manually copy the wasm file over into dist
11-
the first time you build.
12-
13-
```bash
14-
cp node_modules//@hpcc-js/wasm/dist/graphvizlib.wasm dist/js/
15-
```
16-
177
## Installation
188

199
Install the [UI Server](https://github.com/cylc/cylc-uiserver) which bundles

public/js/graphvizlib.wasm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm

0 commit comments

Comments
 (0)