Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will there be support for React? #19

Closed
Hayakii opened this issue Mar 15, 2023 · 2 comments
Closed

Will there be support for React? #19

Hayakii opened this issue Mar 15, 2023 · 2 comments

Comments

@Hayakii
Copy link

Hayakii commented Mar 15, 2023

Will there be support for React? It doesn't seem possible on the tiktoken@1.0.0-alpha.3 version. Or maybe I don't understand how to use it? I'm not very familiar with coding, I'm doing a small project to improve myself

@dqbd
Copy link
Owner

dqbd commented Mar 15, 2023

Hello, React should be supported, but most likely you need to configure your bundler to support WASM ESM proposal.

@Hayakii May I ask what are you using to bundle your React app (Vite, CRA, Next.js)?

@dqbd
Copy link
Owner

dqbd commented Mar 19, 2023

As far as you are using Vite or Next.js, the support should be there with appropriate configuration changes.

For CRA, please follow progress at #21

@dqbd dqbd closed this as completed Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants