Specify @hpcc-js/wasm as a contentBase in the devServer so the .wasm is loaded.
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Mar 2020 13:45:09 +0000 (09:45 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 23 Mar 2020 13:45:09 +0000 (09:45 -0400)
public/graphvizlib.wasm [deleted symlink]
src/ustaxviewer.ts

diff --git a/public/graphvizlib.wasm b/public/graphvizlib.wasm
deleted file mode 120000 (symlink)
index bd3c318..0000000
+++ /dev/null
@@ -1 +0,0 @@
-../node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm
\ No newline at end of file
index 897b0922b625915f2cc2e96e570395d563963e17..6317df315abef7027f7b77d90d9b95f7e9dbc27d 100755 (executable)
@@ -79,7 +79,10 @@ const compiler = webpack({
   },
 
   devServer: {
-    contentBase: PUBLIC,
+    contentBase: [
+      PUBLIC,
+      path.dirname(require.resolve('@hpcc-js/wasm')),
+    ],
     port: 8488
   },