aboutsummaryrefslogtreecommitdiff
path: root/www/bootstrap.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/bootstrap.js')
-rw-r--r--www/bootstrap.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/bootstrap.js b/www/bootstrap.js
new file mode 100644
index 0000000..7934d62
--- /dev/null
+++ b/www/bootstrap.js
@@ -0,0 +1,5 @@
+// A dependency graph that contains any wasm must all be imported
+// asynchronously. This `bootstrap.js` file does the single async import, so
+// that no one else needs to worry about it again.
+import("./index.js")
+ .catch(e => console.error("Error importing `index.js`:", e));