Loading with script tags doesn't work
Closed this issue ยท 1 comments
baobabKoodaa commented
The README says this should work:
<script src="https://unpkg.com/gpt-tokenizer"></script>
<script>
// the package is now available as a global:
const { encode, decode } = GPTTokenizer
</script>
When I try that, it fails because GPTTokenizer is undefined. There are no other errors in console.
github-actions commented
๐ This issue has been resolved in version 2.1.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐