minip-bridge 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,10 +24,22 @@ navigateTo({page: "index.html", title: "title"})
24
24
  - Directly use in html/js file
25
25
 
26
26
  ```html
27
- <script type="module">
28
- import * as minip from "https://cdn.jsdelivr.net/npm/minip-bridge/dist/index.mjs";
29
-
30
- console.log(minip);
31
- console.log(minip.navigateTo);
32
- </script>
27
+ <head>
28
+ <script type="importmap">
29
+ {
30
+ "imports": {
31
+ "minip-bridge": "https://cdn.jsdelivr.net/npm/minip-bridge/dist/index.mjs",
32
+ "kysely": "https://cdn.jsdelivr.net/npm/kysely/dist/esm/index.js"
33
+ }
34
+ }
35
+ </script>
36
+ </head>
37
+ <body>
38
+ <script type="module">
39
+ import * as minip from "minip-bridge";
40
+
41
+ console.log(minip);
42
+ console.log(minip.navigateTo);
43
+ </script>
44
+ </body>
33
45
  ```