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

Please remove process.env.NODE_ENV in dist/immer.mjs #1141

Open
diandian18 opened this issue Sep 4, 2024 · 1 comment
Open

Please remove process.env.NODE_ENV in dist/immer.mjs #1141

diandian18 opened this issue Sep 4, 2024 · 1 comment
Labels

Comments

@diandian18
Copy link

🚀 Feature Proposal

I use import { produce } from 'immer' in vite project. After building, process.env.NODE_ENV is still in my built file.

Motivation

Could process.env.NODE_ENV be removed in dist/immer.mjs?

@markerikson
Copy link
Contributor

That inclusion is intentional, and Vite should be replacing it automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants