Skip to content

Commit

Permalink
fix: use dynamic-import rather than index in the docs (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr authored Jan 25, 2023
1 parent 34140d9 commit 0520577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Github also serves these files with a `gzip` content encoding which compresses t

We also distribute bundles that can be dynamically imported on github pages; for example
```ts
const { eyereasoner } = await import('https://eyereasoner.github.io/eye-js/2/latest/index.js');
const { eyereasoner } = await import('https://eyereasoner.github.io/eye-js/2/latest/dynamic-import.js');

// Instantiate a new SWIPL module and log any results it produces to the console
const Module = await eyereasoner.SwiplEye({ print: (str: string) => { console.log(str) }, arguments: ['-q'] });
Expand Down

0 comments on commit 0520577

Please sign in to comment.