Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

webpack support #2430

Closed
ayroblu opened this issue Mar 1, 2024 · 0 comments
Closed

webpack support #2430

ayroblu opened this issue Mar 1, 2024 · 0 comments

Comments

@ayroblu
Copy link

ayroblu commented Mar 1, 2024

Summary

Hi, I noticed that window.__NUMBER_OF_JOTAI_INSTANCES__ was injected into our console. From a look at the details, I'm guessing that this is a vite thing where they inject an environment variable. However we use webpack that doesn't have this automatically happen. Is there a way to handle the traditional webpack case (where it would typically use process.env.NODE_ENV === 'production')

Link to reproduction

N/A

@pmndrs pmndrs locked and limited conversation to collaborators Mar 1, 2024
@dai-shi dai-shi converted this issue into discussion #2431 Mar 1, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant