microsoft / microsoft/TypeScript
Support conditional compilation
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 111k
- Forks
- 14.3k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 132
Description
On codeplex this was a popular feature request:
https://typescript.codeplex.com/workitem/111
https://typescript.codeplex.com/workitem/1926
Personally I think preprocessor directives like #if, #elif, #else #endif with possibility to specify symbol to compiler would be very useful.
And a way to mark function (or ambient function declaration) as Conditional (something like [ConditionalAattribute](http://msdn.microsoft.com/en-us/library/system.diagnostics.conditionalattribute%28v=vs.110%29.aspx) in C#) would be great improvement too.
I have lot's of `console.log` like function calls that decrease performance of my application and ability to easily remove all calls to this function would be great.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the two linked CodePlex feature requests and the discussion on this issue before defining the scope. Decide whether conditional compilation, compiler symbols, conditional functions, or all of them are required, then establish acceptance criteria for supported directives and removable calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100