niieani/gpt-tokenizer

Loading with script tags doesn't work

Closed this issue ยท 1 comments

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.

๐ŸŽ‰ This issue has been resolved in version 2.1.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€