-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Conditional compilation #4671
Comments
Dupe of #449 ? |
Just import all the things you could need and decide what to use at runtime. At best all you'd be saving with condition compilation is the overhead of an import. |
Size is a reason to prefer conditional importing and compilation, On Sun, Sep 6, 2015, 09:58 Jesse Schalken [email protected] wrote:
|
I made a proposal with a working implementation in #4691 |
Conditional compilation would be fantastic, in my opinion, for things like imports. I would really appreciate something like this:
Not asking for macros (there's not nearly as much of a use case in TypeScript as in e.g. C/C++), but merely having an if-else/define/undef preprocessor would be incredibly helpful.
The text was updated successfully, but these errors were encountered: