Skip to content

Commit 361e8da

Browse files
committed
fix: import path with $FLUTTER_BASE_HREF
1 parent 5353a3d commit 361e8da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/web/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
const serviceWorkerVersion = null;
4141
</script>
4242
<script type="module">
43-
import { Surreal, StringRecordId } from "assets/packages/surrealdb_js/assets/js/index.bundled.mjs";
44-
import { surrealdbWasmEngines } from "assets/packages/surrealdb_wasm/assets/wasm/surrealdb/esm.bundled.js";
43+
import { Surreal, StringRecordId } from "$FLUTTER_BASE_HREFassets/packages/surrealdb_js/assets/js/index.bundled.mjs";
44+
import { surrealdbWasmEngines } from "$FLUTTER_BASE_HREFassets/packages/surrealdb_wasm/assets/wasm/surrealdb/esm.bundled.js";
4545

4646
// expose the type to the global scope
4747
globalThis.SurrealJS = Surreal;

0 commit comments

Comments
 (0)