Skip to content

Commit

Permalink
fix: import path with $FLUTTER_BASE_HREF
Browse files Browse the repository at this point in the history
  • Loading branch information
limcheekin committed Jul 17, 2024
1 parent 5353a3d commit 361e8da
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 "$FLUTTER_BASE_HREFassets/packages/surrealdb_js/assets/js/index.bundled.mjs";
import { surrealdbWasmEngines } from "$FLUTTER_BASE_HREFassets/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 361e8da

Please sign in to comment.