Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 7825292

Browse files
Merge pull request #1295 from microsoft/importsNotUsedAsValues
Add row for importsNotUsedAsValues
2 parents f8775bd + e7031d9 commit 7825292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pages/Compiler Options.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Option | Type | Default
5252
`--generateCpuProfile` | `string` | `profile.cpuprofile` | Generates a cpu profile at the given path. Passing an existing directory name instead of a file path will cause a timestamp-named profile to be generated in that directory instead.
5353
`--help`<br/>`-h` | | | Print help message.
5454
`--importHelpers` | `boolean` | `false` | Import emit helpers (e.g. `__extends`, `__rest`, etc..) from [`tslib`](https://www.npmjs.com/package/tslib)
55+
`--importsNotUsedAsValues` | `string` | `remove` | Specify emit/checking behavior for imports that are only used for types. `"remove"` and `"preserve"` specify whether to emit unused imports for side effects, and `"error"` enforces that imports used only for types are written with `import type`.
5556
`--incremental` | `boolean` | `true` if `composite` is on, `false` otherwise | Enable incremental compilation by reading/writing information from prior compilations to a file on disk. This file is controlled by the `--tsBuildInfoFile` flag.
5657
`--inlineSourceMap` | `boolean` | `false` | Emit a single file with source maps instead of having a separate file.
5758
`--inlineSources` | `boolean` | `false` | Emit the source alongside the sourcemaps within a single file; requires `--inlineSourceMap` or `--sourceMap` to be set.

0 commit comments

Comments
 (0)