Rust api: How to set environment variables (NODE_ENV
)?
#7377
Unanswered
MolotovCherry
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm using this bundler example.
How would I programmatically set
process.env.NODE_ENV
using this, so that I can optimize for production or use development scripts at will?https://github.com/swc-project/swc/blob/main/crates/swc_bundler/examples/bundle.rs
Beta Was this translation helpful? Give feedback.
All reactions