Cfg for Deno #15244
Closed
BlackAsLight
started this conversation in
Ideas
Cfg for Deno
#15244
Replies: 1 comment 1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So I was wondering if a Cfg, like Rust has, for Deno would be possible. I'm trying to write some code for both Deno and the browser, but to work in both it needs different imports, with the rest being the exact same. When bundling though, it would be nice if I could exclude certain imports and functions so they don't get added with to never be ran.
Beta Was this translation helpful? Give feedback.
All reactions