-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
DuplicateAn existing issue was already createdAn existing issue was already created
Description
Conditional compilation would be fantastic, in my opinion, for things like imports. I would really appreciate something like this:
@if DEBUG
@define HAS_ASSERT
import assert from "assert";
@elif RELEASE
import aRandomModule from "my-cool-module";
@else
@undef FOO
@endifNot 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.
Metadata
Metadata
Assignees
Labels
DuplicateAn existing issue was already createdAn existing issue was already created