8000 Allow comments in options file? · Issue #2945 · microsoft/TypeScript · GitHub
[go: up one dir, main page]

Skip to content
Allow comments in options file? #2945
Closed
@JoshMcCullough

Description

@JoshMcCullough

E.g. when running tsc @TSCOptions.txt, it would be cool if there was a way to include comments in the options file since they can become very long. For instance:

--sourcemap
-t ES5                 # ECMAscript 5
-d                     # Generate declarations.
--out Output\MyModule.js

# First set of files.
FileA1.ts
FileA2.ts
...

# Second set of files.
FileB1.ts
FileB2.ts
...

Comments in this example are preceded with a # and can be inline or on their own line. Antything after a # would be stripped prior to compilation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedA PR has been merged for this issueSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0