Skip to content

Commit

Permalink
fix: import path of js assets
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed Jul 17, 2024
1 parent b72b685 commit 5353a3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
const serviceWorkerVersion = null;
</script>
<script type="module">
import { Surreal, StringRecordId } from "/assets/packages/surrealdb_js/assets/js/index.bundled.mjs";
import { surrealdbWasmEngines } from "/assets/packages/surrealdb_wasm/assets/wasm/surrealdb/esm.bundled.js";
import { Surreal, StringRecordId } from "assets/packages/surrealdb_js/assets/js/index.bundled.mjs";
import { surrealdbWasmEngines } from "assets/packages/surrealdb_wasm/assets/wasm/surrealdb/esm.bundled.js";

// expose the type to the global scope
globalThis.SurrealJS = Surreal;
Expand Down

0 comments on commit 5353a3d

Please sign in to comment.