Support for conditional compilation (#IFDEF kind of thing) #5265
OrionGonzalez
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
No in core transform. These are typically in the territory of custom transform plugin, or bundler plugins. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have been looking around but I couldn't find anything. Is there any support/plans to support C style preprocessor directives?
It would be really useful for me because I need to compile for a lot of different platforms (node, browser, webOS, es5...) and also for debugging purposes. eg.
#IFNDEF __DEBUG console.log = ()=>{}
.C-style macros and c++ constexpr would be cool too maybe
Beta Was this translation helpful? Give feedback.
All reactions